/* the home page and About share these styles (About moved to its own page, Ru, Nov 15: "for now just do the about keep that
   on a separate page") */
/* V1, round 2 (Ru, Nov 5: "I like v1 but the landing needs to be better ... show work up front and not have the hiring
   manager do excess work"). Josh's rules decide the layout: the first screen is her name, her line and all three case
   studies, each playing its work with its title and one number; every click opens something. The cobalt stage keeps
   her name, her line and the dots (screen to system), shorter, and opens the case study it is drawing. */
.home { display: grid; gap: var(--gap); padding: 0 var(--gut); }
.stage { height: clamp(250px, 34vh, 360px); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stage-copy { position: absolute; left: clamp(22px, 3vw, 44px); bottom: clamp(20px, 2.6vw, 34px); right: 44%; z-index: 2; display: grid; gap: 14px; pointer-events: none; }
.stage-copy h1 { font: 300 clamp(38px, 4.6vw, 76px)/1 var(--sans); letter-spacing: -0.05em; color: var(--white); min-height: 1em; white-space: nowrap; }
.stage-copy .line { max-width: 34ch; font: 400 clamp(16px, 1.3vw, 20px)/1.4 var(--sans); letter-spacing: -0.015em; color: rgba(255, 255, 255, .88); opacity: 0; translate: 0 8px; transition: opacity .8s var(--ease), translate .8s var(--ease); pointer-events: auto; }
.stage-copy .line.in { opacity: 1; translate: none; }
.stage-copy .line a { color: var(--white); text-decoration: underline; text-decoration-color: var(--chart); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.stage .now { position: absolute; right: clamp(16px, 2vw, 26px); top: clamp(16px, 2vw, 26px); z-index: 2; color: var(--white); background: rgba(255, 255, 255, .14); pointer-events: none; transition: opacity .3s ease, background-color .3s ease; }
.stage:hover .now { background: var(--chart); color: var(--navy); }

/* Round 4 (Ru, Nov 5: "2x2 so the case studies can be bigger", "get rid of play for now", "idk if we wanna repeat [the dots] up
   there"): a two by two grid, her name tile and the three case studies, sized so both rows sit on a laptop's first screen.
   The name tile keeps her name, her line and a calm dot field with her pixel asterisk; it opens About. */
.grid4 { --sth: clamp(196px, calc((100svh - 84px) / 2 - 102px), 520px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding: 0 var(--gut); }
.intro { position: relative; min-height: calc(var(--sth) + 104px); }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro .hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.intro .to { text-transform: none; letter-spacing: 0; position: absolute; left: clamp(20px, 2.6vw, 36px); top: clamp(18px, 2.2vw, 30px); z-index: 2; color: var(--white); background: rgba(255, 255, 255, .14); pointer-events: none; transition: background-color .25s ease, color .25s ease; }
.intro:hover .to { background: var(--chart); color: var(--navy); }
.intro-copy { position: absolute; left: clamp(20px, 2.6vw, 36px); right: clamp(20px, 2.6vw, 36px); bottom: clamp(20px, 2.4vw, 32px); z-index: 2; display: grid; gap: 14px; pointer-events: none; }
.intro-copy h1 { font: 300 clamp(36px, 3.9vw, 66px)/1 var(--sans); letter-spacing: -0.05em; color: var(--white); min-height: 1em; white-space: nowrap; }
.intro-copy .line { max-width: 34ch; font: 400 clamp(16px, 1.25vw, 20px)/1.4 var(--sans); letter-spacing: -0.015em; color: rgba(255, 255, 255, .88); opacity: 0; translate: 0 8px; transition: opacity .8s var(--ease), translate .8s var(--ease); pointer-events: auto; }
.intro-copy .line.in { opacity: 1; translate: none; }
.intro-copy .line a { color: var(--white); text-decoration: underline; text-decoration-color: var(--chart); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .2s ease; }
/* hovered, the name turns the pink of its underline and cursor pill (Ru, Nov 15: "have the IOU Financial be pink text too when hovered on") */
.intro-copy .line a:hover, .intro-copy .line a:focus-visible { color: var(--chart); }
html.petal .intro-copy h1 { color: var(--cobalt); } html.petal .intro-copy .line { color: var(--navy); } html.petal .intro-copy .line a { color: var(--cobalt); text-decoration-color: var(--cobalt); }
html.petal .intro .to { color: var(--cobalt); background: rgba(0, 26, 120, .1); } html.petal .intro:hover .to { background: var(--cobalt); color: var(--white); }
.grid4 .card .st { height: var(--sth); padding: 14px; }
.grid4 .card .frame { width: min(100%, calc((var(--sth) - 28px) * 16 / 9)); }
.grid4 .card .meta .h3 { font-size: clamp(20px, 1.6vw, 28px); }
/* Round 5 (Ru, Nov 5: "maybe the name card can be reduced in space even more so the case studies can stick out more ... i
   dont wanna take away from the case studies"). Two ways, ?h=bento (default) | strip | grid (the 2x2 before):
   strip: her name tile becomes a slim band across the top, the three case studies side by side under it, all on the first screen.
   bento: her name tile takes a third of the top row; the first case study takes the other two thirds. */
.grid4.strip { --striph: clamp(150px, 19vh, 196px); --sth: calc((100vw - 2 * var(--gut) - 2 * var(--gap)) / 3 * 9 / 16 + 12px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4.strip .intro { grid-column: 1 / -1; min-height: var(--striph); }
.grid4.strip .intro-copy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px clamp(24px, 4vw, 64px); }
.grid4.strip .intro-copy h1 { font-size: clamp(32px, 3.3vw, 54px); }
.grid4.strip .intro-copy .line { max-width: 40ch; font-size: clamp(15px, 1.1vw, 18px); }
.grid4.strip .card .meta .h3 { font-size: clamp(17px, 1.3vw, 22px); }
.grid4.bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid4.bento > .intro { grid-column: span 2; } .grid4.bento > .card:nth-child(2) { grid-column: span 4; } .grid4.bento > .card:nth-child(n + 3) { grid-column: span 3; }
.grid4.bento .intro-copy h1 { font-size: clamp(26px, 2.35vw, 40px); } .grid4.bento .intro-copy .line { font-size: clamp(15px, 1.05vw, 17px); }
@media (max-width: 900px) {
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .intro { min-height: 330px; } .intro-copy h1 { font-size: clamp(30px, 9.4vw, 44px); }
  .grid4.strip, .grid4.bento { grid-template-columns: minmax(0, 1fr); } .grid4.strip .intro, .grid4.bento > * { grid-column: auto !important; }
  .grid4.strip .intro, .grid4.bento .intro { min-height: 250px; } .grid4.strip .intro-copy { display: grid; } .grid4.strip .card .st { height: auto; }
  .grid4 .card .st { height: auto; padding: clamp(12px, 5%, 22px); } .grid4 .card .frame { width: 100%; }
}
/* ---------- About, three directions ---------- */
.abx { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap); }
.abx .txt { display: grid; gap: 16px; align-content: start; padding: clamp(22px, 3vw, 40px); }
.abx .cv { display: grid; margin: 6px 0 0; border-top: 1px solid var(--line); }
.abx .cv div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font: 400 14px/1.35 var(--sans); }
.abx .cv dt { color: var(--ink); } .abx .cv dd { margin: 0; color: var(--ink-2); text-align: right; } .abx .cv .y { color: var(--muted); white-space: nowrap; }
/* on a phone each row stacks, the role over where and when, so a longer row never squeezes its role into one word a line */
@media (max-width: 560px) { .abx .cv div { grid-template-columns: minmax(0, 1fr); gap: 3px; } .abx .cv dd { text-align: left; } }
.abx .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; } .abx .links a { padding: 8px 12px; border-radius: 999px; background: var(--paper); font: 400 13px/1 var(--mono); } .abx .links a:hover { background: var(--chart); }
.ph4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px; align-content: start; }
.pf { display: grid; gap: 8px; margin: 0; }
.pf .ph { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--paper-2); }
.pf .ph img, .pf .ph .fx { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* (Ru, Nov 6: "get rid of the white space in the about when the width is wider") beside the terminal, the photos take the
   terminal's height instead of staying square, so both tiles end together at any width */
@media (min-width: 901px) {
  .abx.terminal { align-items: stretch; }
  .abx.terminal .ph4 { contain: size; grid-template-rows: repeat(2, minmax(0, 1fr)); align-content: stretch; }
  .abx.terminal .pf { grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
  .abx.terminal .pf .ph { aspect-ratio: auto; min-height: 0; }
  .abx.terminal .pf .ph img { object-position: 50% 35%; }
}
.pf figcaption { font-size: 12px; color: var(--muted); }
/* the clothesline beside the terminal (Ru, Nov 6: "i like clothespin but i wanna add more in here like travel pics and pics
   without text"): polaroids with no captions pegged to dotted garlands, and placeholders for the photos to come. On a laptop
   it takes the terminal's height; on a phone clothesline.js sets its height from its width */
.clothes { --pw: 140px; --u: 2px; -webkit-tap-highlight-color: transparent; }
.clothes[data-line="drift"] { touch-action: pan-y; }
@media (min-width: 901px) { .abx.terminal .clothes { contain: size; } }
.cl-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.cl-it { position: absolute; left: 0; top: 0; z-index: 1; width: 0; height: 0; }
.cl-it.up { z-index: 10; } .cl-it.down { z-index: 8; }
.cl-sw { position: absolute; z-index: 2; left: calc(var(--pw) / -2); top: 2px; width: var(--pw); transform-origin: 50% -2px; }
.cl-it.up .cl-sw, .cl-it.down .cl-sw { z-index: 4; }   /* above its own pin until it has landed */
.cl-po { margin: 0; padding: 4.4% 4.4% 17%; border-radius: 3px; background: var(--white); cursor: pointer; outline: none;
  box-shadow: 0 1px 2px rgba(0, 12, 60, .14), 0 12px 22px -16px rgba(0, 12, 60, .5);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(var(--s, 1)); transition: transform .85s var(--ease), box-shadow .85s var(--ease); }
.cl-po.up { box-shadow: 0 2px 4px rgba(0, 12, 60, .12), 0 34px 54px -26px rgba(0, 12, 60, .6); }
/* risen: the same place and size, drawn at its real size rather than zoomed, so Safari keeps it sharp */
.cl-po.crisp { width: calc(100% * var(--s, 1)); padding: calc(4.4% * var(--s, 1)) calc(4.4% * var(--s, 1)) calc(17% * var(--s, 1)); transform: translate(calc(var(--dx, 0px) - 50% + 50% / var(--s, 1)), calc(var(--dy, 0px) - 50% + 50% / var(--s, 1))); }
.cl-po:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.cl-po .ph { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
/* the place on the strip: mono, cobalt, sized to the polaroid so it scales up with it as it lifts */
.cl-po { position: relative; container-type: inline-size; }
.cl-pl { position: absolute; left: 6%; right: 6%; bottom: 0; height: 17cqw; display: flex; align-items: center; justify-content: center; margin: 0;
  font: 500 6.2cqw/1 var(--mono); letter-spacing: -.01em; color: var(--cobalt); white-space: nowrap; overflow: hidden; opacity: 0; transition: opacity .25s ease; }
.cl-pl.on { opacity: 1; }
/* the system caret, as on the name: a thin bar in the type's own colour (Ru, Nov 6: "in my name it's white and thin") */
.cl-caret { display: inline-block; width: .09em; height: .86em; margin-left: .07em; background: currentColor; vertical-align: -0.06em; animation: caret 1.05s steps(1) infinite; }
.cl-po img, .cl-po video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
/* a placeholder: a soft pastel inside a dotted frame, with one small pixel glyph in the middle */
.cl-ph .ph { display: grid; place-items: center; background: var(--fill); }
.cl-ph .ph::after { content: ""; position: absolute; inset: 7%; border: 2px dotted rgba(255, 255, 255, .95); border-radius: 2px; }
.cl-gl { display: grid; width: 22%; opacity: .5; } .cl-gl svg { width: 100%; height: auto; }
/* the clothespin: the line runs through its jaw, and it grips the top of the polaroid */
.cl-peg { position: absolute; z-index: 3; left: calc(var(--u) * -2.5); top: calc(var(--u) * -10.5); width: calc(var(--u) * 5); height: calc(var(--u) * 13);
  transform-origin: 50% 80%; filter: drop-shadow(0 1px 1px rgba(0, 12, 60, .3)); transition: translate .45s var(--ease); }
.cl-peg.open { translate: 0 -2px; }
@media (prefers-reduced-motion: reduce) { .cl-po, .cl-peg { transition: none; } }
/* terminal */
.term { display: grid; gap: 22px; align-content: start; padding: clamp(22px, 3vw, 40px); font: 400 clamp(16px, 1.2vw, 19px)/1.55 var(--sans); }
.term .cmd { font: 400 15px/1.2 var(--mono); color: rgba(255, 255, 255, .78); } .term .cmd .sl { color: var(--chart); margin-right: 2px; }
.term .ans { margin-top: 8px; }
/* the smooth reveal: every line is in place from the start; each fades and rises a step behind the one before, the command
   typing in steps (no layout shift) and its answer easing up a beat later */
.term .tl { --step: 140ms; }
.term .cmd, .term .ans { opacity: 0; translate: 0 10px; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), translate .9s cubic-bezier(.2, .7, .2, 1); }
.term .cmd { transition-delay: calc(var(--i) * var(--step)); }
.term .ans { transition-delay: calc(var(--i) * var(--step) + 160ms); }
.term .q { display: inline-block; max-width: 0; overflow: hidden; vertical-align: bottom; white-space: nowrap; transition: max-width .55s steps(16, end); transition-delay: calc(var(--i) * var(--step) + 60ms); }
.term.on .cmd, .term.on .ans { opacity: 1; translate: none; }
.term.on .q { max-width: calc(var(--n) * 1ch + 1px); }
@media (prefers-reduced-motion: reduce) { .term .cmd, .term .ans, .term .q { transition: none; opacity: 1; translate: none; max-width: none; } }
.term .cv { border-color: rgba(255, 255, 255, .2); } .term .cv div { border-color: rgba(255, 255, 255, .2); } .term .cv dt { color: var(--white); } .term .cv dd { color: rgba(255, 255, 255, .78); } .term .cv .y { color: rgba(255, 255, 255, .6); }
.term .links a { background: rgba(255, 255, 255, .14); color: var(--white); } .term .links a:hover { background: var(--chart); color: var(--navy); }
html.petal .term { color: var(--navy); } html.petal .term .cmd { color: var(--cobalt); } html.petal .term .cmd .sl { color: var(--cobalt); }
/* cities */
.map { position: relative; min-height: 520px; overflow: hidden; color: var(--white);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 1px, transparent 1.5px); background-size: 15px 15px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .arc { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 7; transition: stroke .3s ease; }
.map .arc.on { stroke: var(--chart); }
.map .star { position: absolute; z-index: 2; translate: -50% -50%; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: var(--white); cursor: pointer; }
.map .star i { width: 9px; height: 9px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 6px rgba(255, 255, 255, .1); transition: background-color .25s ease, box-shadow .25s ease, scale .35s var(--ease); }
.map .star.home i { background: var(--chart); }
.map .star.on i { background: var(--chart); scale: 1.4; box-shadow: 0 0 0 8px rgba(247, 184, 201, .22); }
.map .star span { position: absolute; top: 30px; font: 400 12px/1 var(--mono); white-space: nowrap; color: rgba(255, 255, 255, .78); } .map .star.on span { color: var(--white); }
/* the photo sits under the stars, centred, so it never covers one */
.map .card-ph { position: absolute; left: 50%; translate: -50% 0; bottom: clamp(16px, 2.4vw, 28px); z-index: 3; width: min(40%, 250px); }
.map .card-ph .pf { padding: 8px 8px 10px; border-radius: 16px; background: var(--white); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.map .card-ph .pf figcaption { padding: 0 4px; color: var(--ink-2); }
.map .home-note { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--white); color: var(--ink); font: 450 16px/1.35 var(--sans); } .map .home-note .mono { color: var(--muted); }
@media (max-width: 900px) { .abx { grid-template-columns: minmax(0, 1fr); } .map { min-height: 460px; } .map .card-ph { width: 58%; } }
/* the case studies: all three on the first screen */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card { display: flex; flex-direction: column; background: var(--white); }
.card .st { position: relative; margin: 8px 8px 0; border-radius: 13px; display: grid; place-items: center; padding: clamp(14px, 6%, 30px);
  background-color: var(--t-deep, var(--cobalt)); background-image: radial-gradient(circle, rgba(255, 255, 255, .2) 1.1px, transparent 1.6px); background-size: 15px 15px; transition: background-position 1.2s var(--ease); }
a.card:hover .st { background-position: 7px 7px; }
/* the whole card opens the case study; a small arrow on its stage says so */
.card .arr { position: absolute; top: 10px; right: 10px; z-index: 5; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--chart); color: var(--navy); font: 500 14px/1 var(--sans); transition: scale .35s var(--ease), rotate .35s var(--ease); }
/* the arrow stays on top in its corner at its own size; on hover only its direction changes, from the corner to the right
   (Ru, Nov 10: "the arrow gets hidden when I hover... on hover the arrow direction changes, not the circle positioning") */
a.card:hover .arr { rotate: 45deg; }
/* the card motions' layers: the system image, the proof, the canvas that carries the dots or the pixels */
.card .frame > .sys, .card .frame > .proof, .card .frame > .fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .frame > .sys { object-fit: contain; opacity: 0; }
.card .frame > .fx { z-index: 3; opacity: 0; pointer-events: none; }
.card .frame > .proof { z-index: 2; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 8%; text-align: center; background: var(--t-pale); opacity: 0; }
.card .frame > .proof b { font: 450 clamp(48px, 5vw, 84px)/.9 var(--sans); letter-spacing: -0.06em; color: var(--t-mid); }
.card .frame > .proof span { max-width: 26ch; font: 400 14px/1.35 var(--sans); color: var(--t-deep); }
.card .mode { position: absolute; top: 12px; left: 12px; z-index: 4; background: rgba(255, 255, 255, .92); color: var(--t-mid); }
/* on hover the film keeps its size and only turns to dots, with the arrow turning (Ru, Nov 10: "lets not have the video zoom in
   on hover, have it be constant but turn pixelated and the arrow move") */
.card .frame { width: 100%; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 44px -24px rgba(0, 6, 40, .85); isolation: isolate; }   /* its dots stay inside it, under the arrow */
.card .meta { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.card .meta .mono { color: var(--muted); font-size: 11.5px; }
.card .meta .h3 { font-size: clamp(19px, 1.45vw, 24px); text-wrap: balance; }
.card { justify-content: flex-start; }
.card .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 4px; }
.card .kpi { display: grid; gap: 2px; min-width: 0; }
.card .kpi b { font: 450 clamp(26px, 2.2vw, 34px)/1 var(--sans); letter-spacing: -0.05em; color: var(--t-mid, var(--cobalt)); }
.card .kpi span { font: 400 13px/1.3 var(--sans); color: var(--ink-2); max-width: 26ch; }
.card .go { flex: none; }

/* the footer: a night sky where scattered stars find their places as her asterisk; her ways to reach her, large */
.sec { color: var(--muted); padding: clamp(56px, 8vw, 110px) 0 18px; }
.play, .about { padding: 0 var(--gut); }
/* Play as a list in the About terminal's voice (Ru, Nov 14, option C): cobalt, a row per project, its film small at the left */
.pl-term { border-radius: var(--r); background: var(--cobalt); color: var(--white); padding: 6px clamp(18px, 2vw, 28px); }
.pl-row { display: grid; grid-template-columns: 120px minmax(140px, 220px) minmax(0, 1fr) auto; gap: clamp(14px, 1.6vw, 22px); align-items: center; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); color: inherit; text-decoration: none; }
.pl-row:first-of-type { border-top: 0; }
/* /play sits in its card, as the About terminal's heads do; each project wears a small tag (Ru, Nov 14: "maybe tags also play
   needs to be in the card") */
.play { margin-top: clamp(40px, 6vw, 80px); }
/* About's head lives in its card too, as /play's does; the label above it repeated it (Ru, Nov 14: "should we take out the [/about]
   tag at the top") */
.about { margin-top: clamp(40px, 6vw, 80px); }
.pl-q { padding: 20px 0 2px; font-size: 13.5px; color: rgba(255, 255, 255, .72); } .pl-q span:first-child { color: var(--pink); }
.pl-cmd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pl-tag { font-style: normal; padding: 4px 9px 3px; border-radius: 999px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .86); font: 400 11.5px/1.2 var(--mono); letter-spacing: .02em; }
.pl-th { position: relative; width: 120px; aspect-ratio: 10 / 7; border-radius: 10px; overflow: hidden; background: var(--f); }
/* the whole film shows, never cropped, at rest and grown (Ru, Nov 14: "i wanna make sure no part of the video is cut off"): it
   fits inside its frame, the frame filled in the film's own colour around it */
.pl-th video, .pl-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain !important; }
.pl-cmd { font-size: 15px; } .pl-cmd .pl-c > span { color: var(--pink); }
.pl-ln { font: 400 16px/1.4 var(--sans); color: rgba(255, 255, 255, .9); text-wrap: pretty; }
/* the case cards' arrow, so the two read alike: it turns from the corner to the right as you hover (Ru, Nov 14: "i want the same
   hover arrow feature in play section so its consistent") */
.pl-row .arr { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--chart); color: var(--navy); font: 500 14px/1 var(--sans); transition: rotate .35s var(--ease); }
.pl-row:hover .arr, .pl-row:focus-visible .arr { rotate: 45deg; }
/* where a pointer can hover, the project's film grows to three times its size from its left edge so it can be seen ("on hover
   should the video blow up so the user can see it better?", then "the video can be even bigger") */
@media (hover: hover) and (pointer: fine) {
  .pl-th { transform-origin: left center; transition: scale .45s var(--ease), box-shadow .45s var(--ease); }
  .pl-row:hover .pl-th { z-index: 3; scale: 3; box-shadow: 0 26px 56px -16px rgba(0, 0, 0, .6); }
}
@media (prefers-reduced-motion: reduce) { .pl-th, .pl-row .arr { transition: none; } }
@media (max-width: 700px) {
  .pl-row { grid-template-columns: 92px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px; align-items: start; }
  .pl-th { width: 92px; grid-row: 1 / 3; } .pl-cmd { grid-column: 2; grid-row: 1; } .pl-row .arr { grid-column: 3; grid-row: 1; } .pl-ln { grid-column: 2 / 4; grid-row: 2; font-size: 15px; }
}
/* an experiment's row: her title, and a line about it under (Ru, Nov 15) */
.pl-row.ex-r { grid-template-columns: 120px minmax(0, 1fr) auto; }
.pl-tt { display: grid; gap: 6px; max-width: 72ch; }
.pl-t { font: 400 clamp(18px, 1.45vw, 22px)/1.25 var(--sans); letter-spacing: -0.02em; color: var(--white); text-wrap: balance; }
.pl-b { font: 400 15px/1.45 var(--sans); color: rgba(255, 255, 255, .72); text-wrap: pretty; }
/* on a phone the title sits beside the picture and the line runs the full width under both */
@media (max-width: 700px) {
  .pl-row.ex-r { grid-template-columns: 92px minmax(0, 1fr) auto; row-gap: 12px; align-items: center; }
  .pl-row.ex-r .pl-tt { display: contents; } .pl-row.ex-r .pl-th { grid-row: 1; }
  .pl-row.ex-r .pl-t { grid-column: 2; grid-row: 1; font-size: 17px; } .pl-row.ex-r .arr { grid-column: 3; grid-row: 1; align-self: start; }
  .pl-row.ex-r .pl-b { grid-column: 1 / 4; grid-row: 2; font-size: 14px; }
 
}
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.pt { display: flex; flex-direction: column; background: var(--white); }
.pt .pm { aspect-ratio: 5 / 4; margin: 8px 8px 0; border-radius: 13px; background: var(--f); overflow: hidden; } .pt .pm video { width: 100%; height: 100%; object-fit: contain; }
.pt .pc { display: grid; gap: 8px; padding: 14px 18px 18px; } .pt .pc .mono { color: var(--muted); font-size: 11.5px; } .pt .pc p:last-child { font: 450 18px/1.3 var(--sans); letter-spacing: -0.02em; }
.ab { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); }
.ab .txt { display: grid; gap: 16px; align-content: start; padding: clamp(22px, 3vw, 40px); background: var(--white); }
.ab .cv { display: grid; margin: 6px 0 0; border-top: 1px solid var(--line); }
.ab .cv div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font: 400 14px/1.35 var(--sans); }
.ab .cv dt { color: var(--ink); } .ab .cv dd { margin: 0; color: var(--ink-2); } .ab .cv .y { font: 400 12.5px/1.5 var(--mono); color: var(--muted); }
.ab .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; } .ab .links a { padding: 8px 12px; border-radius: 999px; background: var(--paper); font: 400 13px/1 var(--mono); } .ab .links a:hover { background: var(--chart); }
.ab .pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; place-items: center; padding: clamp(18px, 2.4vw, 32px); background: var(--paper-2); border-radius: var(--r); }
.ab .pics figure { display: grid; gap: 8px; justify-items: center; width: min(100%, 220px); } .ab .pics img { width: 100%; height: auto; } .ab .pics figcaption { font: 400 12px/1.3 var(--mono); color: var(--muted); text-align: center; }

/* a short laptop screen: the stage gives up height so every card's title, number and button stay on the first screen */
/* petal lead: the stage in petal, her name and dots in cobalt */
html.petal .stage-copy h1 { color: var(--cobalt); } html.petal .stage-copy .line { color: var(--navy); }
html.petal .stage-copy .line a { color: var(--cobalt); text-decoration-color: var(--cobalt); }
html.petal .stage .now { background: rgba(0, 26, 120, .1); color: var(--cobalt); } html.petal .stage:hover .now { background: var(--cobalt); color: var(--white); }
@media (min-width: 901px) and (max-height: 840px) {
  .stage { height: clamp(180px, 26vh, 240px); }
  .stage-copy { gap: 10px; } .stage-copy h1 { font-size: clamp(34px, 3.8vw, 58px); } .stage-copy .line { font-size: clamp(15px, 1.15vw, 18px); }
  .card .st { padding: clamp(10px, 4%, 18px); }
  .card .meta { gap: 7px; padding: 11px 16px 14px; } .card .meta .h3 { font-size: clamp(17px, 1.3vw, 21px); }
  .card .kpi b { font-size: clamp(22px, 1.9vw, 28px); } .card .kpi span { font-size: 12px; }
}
@media (max-width: 900px) {
  .stage { height: 310px; }
  .stage-copy { right: 22px; bottom: 22px; } .stage-copy h1 { font-size: clamp(30px, 9.4vw, 44px); }
  .cards, .pgrid, .ab { grid-template-columns: minmax(0, 1fr); }
}
/* each work card in its case study's own colour (Ru, Nov 6: "have the white cards these sit in be the color of the case
   studies cause the white is blending it too much with the cream bg"): the deep colour of the project's world, its words light */
.card { background: var(--t-card, var(--t-deep, var(--white))); }
.card .st { background-color: var(--t-card, var(--t-deep, var(--cobalt))); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.card .meta .mono { color: rgba(255, 255, 255, .62); }
.card .meta .h3 { color: var(--white); }
.card .kpi b { color: var(--t-bright, var(--chart)); } .card .kpi span { color: rgba(255, 255, 255, .74); }
/* the same space under every work card's title (Ru, Nov 6: "reduce the padding under and have it match to the other case
   studies, if that means decreasing the name card too do that"): the first case study sets the top row's height, the name
   tile follows it instead of stretching the row, and the space under each title is a touch tighter */
@media (min-width: 901px) {
  .grid4.bento > .intro { min-height: 0; }
  .card .meta { padding-bottom: 14px; }
}
@media (min-width: 901px) and (max-height: 840px) { .card .meta { padding-bottom: 12px; } }
/* the label and the title sit closer (Ru, Nov 6: "have these sit a bit more tighter") */
.card .meta, .grid4 .card .meta { gap: 3px; }
.card .meta .mono { line-height: 1.35; }
/* a pointer from the words to the photo wall (Ru, Nov 6: "for off hours say check out some of the places i've been so then they
   can see the photo wall"): beside it on a laptop the arrow points right; on a phone the wall is below, so it points down and glides there */
.to-wall { color: var(--white); text-decoration: underline; text-decoration-color: var(--chart); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .2s ease; }
.to-wall:hover, .to-wall:focus-visible { color: var(--chart); }   /* pink on hover, as IOU Financial (Ru, Nov 15: "same here") */
.to-wall .aw { display: inline-block; transition: translate .35s var(--ease); }
.to-wall:hover .aw { translate: 4px 0; }
@media (max-width: 900px) { .to-wall .aw { rotate: 90deg; } .to-wall:hover .aw { translate: 0 3px; } }
/* the wall's background, to compare (Ru, Nov 6: "show me different colour backgrounds for the photo wall, like one pink"):
   ?wall= white | blush | petal | cream | sage | lilac | night; and a glow ring that answers the link, two soft pulses */
#line-card { --wall: var(--white); background: var(--wall); }
#line-card[data-wall="blush"] { --wall: #fbe3ea; } #line-card[data-wall="petal"] { --wall: #f7b8c9; } #line-card[data-wall="cream"] { --wall: #f4ecd8; }
#line-card[data-wall="sage"] { --wall: #e3ece0; } #line-card[data-wall="lilac"] { --wall: #e6e9ff; } #line-card[data-wall="night"] { --wall: #000c3c; }
#line-card[data-wall="night"] { background-image: radial-gradient(circle, rgba(255, 255, 255, .14) 1px, transparent 1.4px); background-size: 16px 16px; }
#line-card.hi { animation: wall-glow 2.2s var(--ease) both; }
@keyframes wall-glow {
  0% { box-shadow: 0 0 0 0 rgba(247, 184, 201, 0), 0 0 0 0 rgba(247, 184, 201, 0), inset 0 0 0 0 rgba(247, 184, 201, 0); }
  18% { box-shadow: 0 0 0 5px #f7b8c9, 0 0 40px 12px rgba(247, 184, 201, .8), inset 0 0 46px 6px rgba(247, 184, 201, .6); }
  45% { box-shadow: 0 0 0 3px #f7b8c9, 0 0 20px 4px rgba(247, 184, 201, .35), inset 0 0 24px 2px rgba(247, 184, 201, .3); }
  65% { box-shadow: 0 0 0 5px #f7b8c9, 0 0 40px 12px rgba(247, 184, 201, .7), inset 0 0 46px 6px rgba(247, 184, 201, .5); }
  100% { box-shadow: 0 0 0 0 rgba(247, 184, 201, 0), 0 0 0 0 rgba(247, 184, 201, 0), inset 0 0 0 0 rgba(247, 184, 201, 0); }
}
@media (prefers-reduced-motion: reduce) { #line-card.hi { animation: none; box-shadow: 0 0 0 3px #f7b8c9; } }
/* two case studies (Ru, Nov 6: Design System Tooling off for now): her name tile stands tall on the left across both rows,
   the two case studies stacked on the right at the same size */
@media (min-width: 901px) {
  .grid4.bento:not(:has(> .card:nth-child(4))) > .intro { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  /* her name never hides below the fold (Ru, Nov 6: "see how the name is hidden on the bottom"): the tile is one screen tall
     and stays pinned on the left while the two case studies scroll past beside it */
  .grid4.bento:not(:has(> .card:nth-child(4))) > .intro { position: sticky; top: var(--barh, 53px); align-self: start;
    height: calc(100svh - var(--barh, 53px) - 16px); min-height: 420px; }
  .grid4.bento:not(:has(> .card:nth-child(4))) > .card { grid-column: 3 / span 4 !important; container-type: inline-size; }
  /* the film fills its card (Ru, Nov 6: "make the videos bigger, they seem to sit smaller in the card"): the stage takes its
     height from the card's width, so the 16:9 film runs edge to edge inside it, never taller than about two thirds of the screen */
  .grid4.bento:not(:has(> .card:nth-child(4))) > .card .st { --sth: min(calc((100cqw - 44px) * 9 / 16 + 28px), 66svh); }
}
/* thumbs: the reach links keep their look but take a full-size tap on a phone; the /about pill reads at 12px (Ru, Nov 6: the phone pass) */
@media (hover: none), (max-width: 899.98px) {
  .ab .links a, .abx .links a, .term .links a { position: relative; }
  .ab .links a::after, .abx .links a::after, .term .links a::after { content: ""; position: absolute; inset: -8px -3px; }
  .intro .to { font-size: 12px; }
}
/* back home from another page (Ru, Nov 10: "seamlessly go back home, not stagger"): for its first frames nothing on the page
   eases in, so it shows settled at once; /work and /about from another page land just under the bar, where the bar's own
   glide puts them, instead of with the top of the tiles behind it */
html.nx-still *, html.nx-still *::before, html.nx-still *::after { transition: none !important; }
#work, #experiments, #about { scroll-margin-top: 72px; }
