/* Rohit Nandakumar: product portfolio.
   Rules of the build: four primary products, each fact said once, one loud thing per screen,
   amber only for actions, plain words. Type: Anton + Outfit, Marcellus only for the name on the opening screen.
   Colours come from the room: warm dark brown, sunlit cream, amber. */
:root{
  --bg:#fbf4e8;--surface:#f1e6d4;--ink:#241510;--muted:#6f5a4a;--accent:#e58a34;--accent-ink:#241510;
  --black:#120b07;--bone:#eadcc6;--paper:#f3e8d6;
  --display:"Anton","Arial Narrow",Impact,sans-serif;--text:"Outfit",system-ui,sans-serif;
  --step-small:clamp(.9375rem,.9rem + .1vw,1rem);
  --step-body:clamp(1.125rem,1.06rem + .25vw,1.25rem);
  --step-lead:clamp(1.25rem,1.1rem + .7vw,1.625rem);
  --step-state:clamp(1.5rem,1.05rem + 1.5vw,2.25rem);
  --step-head:clamp(2.5rem,1.2rem + 5vw,5.5rem);
  --m:clamp(16px,3vw,44px);--gap:clamp(16px,2vw,28px);--lintel:clamp(60px,8svh,76px);
  --ease-out:cubic-bezier(.22,1,.36,1);--ease-expo:cubic-bezier(.16,1,.3,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--bg);color:var(--ink);font:400 var(--step-body)/1.5 var(--text);overflow-x:clip}
h1,h2,h3,h4,p,figure,ul,ol,dl,dd{margin:0;padding:0}
ul,ol{list-style:none}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-underline-offset:.2em;text-decoration-thickness:2px}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
h1,h2,.lintel h3,.cover-title,.record h3,.hit-n,.steps h3,.notes h4{font-family:var(--display);font-weight:400;text-transform:uppercase;letter-spacing:-.005em;line-height:.94}
h2{font-size:var(--step-head)}
.lead{font-size:var(--step-lead);line-height:1.35;text-wrap:pretty}
.statement{font-size:var(--step-state);line-height:1.22;letter-spacing:-.012em;text-wrap:pretty}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
::selection{background:var(--accent);color:var(--accent-ink)}
.skip{position:absolute;left:-999px;top:0;background:var(--bg);padding:12px 16px;z-index:50}
.skip:focus{left:8px;top:8px}
.js-only{display:none}.js .js-only{display:grid}

.btn{display:inline-block;font:600 var(--step-body)/1 var(--text);text-decoration:none;background:var(--accent);color:var(--accent-ink);padding:18px 28px;transition:transform .18s var(--ease-out),background-color .18s}
.btn:hover{transform:translateY(-3px);background:#f0a04e}
.btn:active{transform:translateY(1px)}
.proof{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.proof .btn{font-size:var(--step-small);padding:15px 20px}
.btn-quiet{background:var(--surface);color:var(--ink)}
.btn-quiet:hover{background:#e7d7bf}
/* The pop-up video player */
.video-pop{width:min(1120px,92vw);max-width:none;padding:0;border:0;background:var(--black);color:var(--paper);overflow:visible;margin:auto}
.video-pop::backdrop{background:rgba(18,11,7,.82)}
.video-pop video{display:block;width:100%;aspect-ratio:16/9;background:var(--black)}
.video-close{position:absolute;right:0;bottom:calc(100% + 10px);font:600 var(--step-small)/1 var(--text);color:var(--paper);background:none;border:0;padding:14px 0 10px;min-width:44px;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.video-close:hover{color:var(--accent)}

/* ---------- site navigation and text links ---------- */
.mark{font-weight:600;text-decoration:none}
.bar-links{display:flex;gap:clamp(16px,2.2vw,32px);align-items:center}
.bar-links a{position:relative;text-decoration:none;padding-bottom:2px}
.bar-links a::after,.go::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:currentColor;transform:scaleX(0);transform-origin:0 50%;transition:transform .28s var(--ease-out)}
.bar-links a:hover::after,a.go::after{transform:scaleX(1)}
a.go:hover::after{transform:scaleX(.4)}
.bar-links .bar-cv{font-weight:600}

/* ---------- outcomes ---------- */
.hits{background:var(--bg);padding:clamp(96px,12vw,190px) var(--m)}
.hits-head{display:grid;grid-template-columns:6fr 6fr;gap:var(--gap);align-items:end;margin-bottom:clamp(48px,6vw,96px)}
.mosaic{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,6vw,88px) var(--gap)}
.hit{display:flex;flex-direction:column;gap:12px}
.hit p:last-child{max-width:36ch}
.hit-n{font-size:clamp(3.5rem,1rem + 7.8vw,10rem);line-height:.9;white-space:nowrap;font-variant-numeric:tabular-nums}

/* ---------- the work: weights and a ranked list ---------- */
.work{position:relative;background:var(--paper);padding:clamp(80px,10vw,150px) var(--m)}
.work-anchor{position:absolute;top:0}
.work-inner{position:relative;z-index:3}
.slips{position:absolute;inset:0;z-index:2;pointer-events:none}
.slip{position:absolute;left:0;top:0;background:var(--bg);color:var(--ink);font:600 clamp(.8125rem,.78rem + .12vw,.9375rem)/1.2 var(--text);padding:9px 13px;white-space:nowrap;outline:1px solid transparent;-webkit-font-smoothing:antialiased}
.slip::after{content:"";position:absolute;left:8px;right:8px;top:50%;height:2px;margin-top:-1px;background:var(--accent);transform:scaleX(var(--s,0));transform-origin:0 50%}
/* Pinned while the ideas are cut and the projects land in the list */
.js .work.is-pinned{height:240svh;padding:0}
.is-pinned .work-anchor{top:calc(100% - 100svh)}
.is-pinned .work-stage{position:sticky;top:0;height:100svh;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding:0 var(--m)}
.is-pinned .desk{margin-top:clamp(20px,3vw,40px)}
.order.is-scattered a{background:var(--ink);color:#fff;outline:1px solid transparent;box-shadow:0 0 1px var(--ink);-webkit-font-smoothing:antialiased}
.work-head{display:grid;grid-template-columns:6fr 6fr;gap:var(--gap);align-items:end}
.desk{margin-top:clamp(36px,4.6vw,64px);grid-template-columns:5fr 7fr;gap:clamp(32px,6vw,96px)}
.weights{display:flex;flex-direction:column;gap:20px}
.weights-q{font-size:var(--step-lead);font-weight:600;line-height:1.2}
.faders{display:flex;flex-direction:column;gap:4px}
.ch{display:grid;grid-template-columns:8.5em 1fr;align-items:center;gap:16px;min-height:48px;cursor:pointer}
.ch span{font-weight:600;font-size:var(--step-body)}
.ch input{-webkit-appearance:none;appearance:none;width:100%;height:44px;background:none;margin:0;cursor:pointer}
.ch input::-webkit-slider-runnable-track{height:8px;background:#2e1d14;border-radius:1px;box-shadow:inset 0 1px 2px rgba(0,0,0,.6),0 1px 0 rgba(255,255,255,.55)}
.ch input::-moz-range-track{height:8px;background:#2e1d14;border-radius:1px;box-shadow:inset 0 1px 2px rgba(0,0,0,.6),0 1px 0 rgba(255,255,255,.55)}
/* Fader cap: a ridged block with a bright centre line */
.ch input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:40px;margin-top:-16px;border:0;border-radius:2px;background:linear-gradient(90deg,#4a3226 0,#241510 16%,#241510 42%,#f3e8d6 42%,#f3e8d6 58%,#241510 58%,#241510 84%,#120a07 100%);box-shadow:0 2px 4px rgba(36,21,16,.5);transition:transform .14s var(--ease-out)}
.ch input::-moz-range-thumb{width:28px;height:40px;border:0;border-radius:2px;background:linear-gradient(90deg,#4a3226 0,#241510 16%,#241510 42%,#f3e8d6 42%,#f3e8d6 58%,#241510 58%,#241510 84%,#120a07 100%);box-shadow:0 2px 4px rgba(36,21,16,.5)}
.ch input:hover::-webkit-slider-thumb{transform:scaleY(1.08)}
.reset{align-self:flex-start;font-weight:600;font-size:var(--step-small);text-decoration:underline;text-underline-offset:.2em;padding:6px 0}
.order li{margin-bottom:6px}
.order a{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;padding:12px 16px;background:var(--bg);text-decoration:none;transition:background-color .18s}
.order a:hover{background:var(--surface)}
.order li.primary a{padding-block:17px}
.order span{font:400 clamp(1.25rem,1.05rem + .6vw,1.625rem)/1.1 var(--display);text-transform:uppercase}
.order b{font-size:var(--step-small);font-weight:600;font-variant-numeric:tabular-nums}
.mix-status{margin-top:14px;font-size:var(--step-small)}

/* ---------- the projects ---------- */
.side{position:relative;background:var(--bg);color:var(--ink)}
.side[hidden],.piece[hidden],.order li[hidden]{display:none}
.piece{scroll-margin-top:calc(var(--lintel) + 8px)}
.lintel{position:sticky;top:0;z-index:4;height:var(--lintel);display:flex;align-items:center;gap:24px;padding-inline:var(--m);background:var(--bg)}
.lintel h3{font-size:clamp(1.5rem,1.1rem + 1.3vw,2.375rem);line-height:1}
.lint-cv{font-weight:600;text-underline-offset:.2em;margin-left:auto}
.piece{min-height:calc(100svh - var(--lintel));padding:8px var(--m) calc(var(--lintel) * .8);display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);align-items:center;position:relative}
.piece .sleeve{grid-column:1/7;grid-row:1;width:100%}
.piece .notes{grid-column:8/13;grid-row:1}
.piece.flip .sleeve{grid-column:7/13}
.piece.flip .notes{grid-column:1/6}
/* The first entry under a section heading needs room, or a left-hand title sits right under the heading */
.lintel + .piece{padding-top:clamp(28px,3.2vw,56px)}
.sleeve{position:relative;display:block;color:inherit;text-decoration:none;transition:transform .35s var(--ease-out)}
.cover{container-type:inline-size;position:relative;display:flex;flex-direction:column;justify-content:flex-end;background:var(--plate);color:var(--plate-ink);aspect-ratio:4/3;max-height:calc(100svh - var(--lintel)*2 - 8px);width:100%;padding:clamp(14px,1.6vw,26px);overflow:hidden}
.cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:78% 50%}
.cover.fit img{object-fit:contain;object-position:50% 50%}
.cover-title{font-size:calc(var(--fit)*1cqw);line-height:.92}
.cover-note{position:absolute;top:clamp(14px,1.6vw,26px);left:clamp(14px,1.6vw,26px);font-size:var(--step-small);font-weight:600}
/* Project records: a square sleeve with the disc resting part-way out */
.lp{--peek:13%;max-width:min(100%,calc(100svh - var(--lintel)*2 - 24px));justify-self:start;isolation:isolate}
.piece.flip .lp{justify-self:end;--peek:-13%}
.lp-cover{z-index:1;aspect-ratio:1/1;max-height:none;padding:clamp(16px,4cqw,30px);box-shadow:0 14px 34px rgba(36,21,16,.28);background:var(--ink)}
.lp-cover img{object-position:50% 50%}
.lp-title{position:relative;font-size:12cqw;line-height:.96}
.lp-disc{position:absolute;z-index:0;inset:2%;border-radius:50%;transform:translateX(var(--peek));transition:transform .7s var(--ease-expo);filter:drop-shadow(0 8px 14px rgba(36,21,16,.3))}
.lp-spin{position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,#120b07 0 1.4%,#f3e8d6 1.5% 2%,var(--label) 2.1% 17%,#17100c 17.3% 19%,transparent 19.2%),conic-gradient(from 20deg,rgba(255,255,255,0) 0 8%,rgba(255,236,206,.22) 13%,rgba(255,255,255,0) 19% 58%,rgba(255,236,206,.18) 63%,rgba(255,255,255,0) 69%),repeating-radial-gradient(circle,#17100c 0 2px,#241812 2px 3.5px);animation:lp-spin 5s linear infinite paused}
.lp:hover .lp-disc,.lp:focus-visible .lp-disc{transform:translateX(calc(var(--peek)*2.3))}
.lp:hover .lp-spin,.lp:focus-visible .lp-spin{animation-play-state:running}
/* Award sticker on a record sleeve */
.lp-sticker{position:absolute;z-index:2;top:5%;right:5%;width:30cqw;height:30cqw;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5cqw;padding:3cqw;text-align:center;background:radial-gradient(circle at 35% 30%,#ffe08a,#f2b632 62%,#d9921e);color:#241510;transform:rotate(10deg);clip-path:polygon(100.0% 50.0%,94.6% 55.9%,98.3% 62.9%,91.6% 67.2%,93.3% 75.0%,85.7% 77.4%,85.4% 85.4%,77.4% 85.7%,75.0% 93.3%,67.2% 91.6%,62.9% 98.3%,55.9% 94.6%,50.0% 100.0%,44.1% 94.6%,37.1% 98.3%,32.8% 91.6%,25.0% 93.3%,22.6% 85.7%,14.6% 85.4%,14.3% 77.4%,6.7% 75.0%,8.4% 67.2%,1.7% 62.9%,5.4% 55.9%,0.0% 50.0%,5.4% 44.1%,1.7% 37.1%,8.4% 32.8%,6.7% 25.0%,14.3% 22.6%,14.6% 14.6%,22.6% 14.3%,25.0% 6.7%,32.8% 8.4%,37.1% 1.7%,44.1% 5.4%,50.0% 0.0%,55.9% 5.4%,62.9% 1.7%,67.2% 8.4%,75.0% 6.7%,77.4% 14.3%,85.4% 14.6%,85.7% 22.6%,93.3% 25.0%,91.6% 32.8%,98.3% 37.1%,94.6% 44.1%)}
.lp-sticker b{font:400 5.6cqw/1 var(--display);text-transform:uppercase;letter-spacing:.01em}
.lp-sticker span{font:600 2.8cqw/1.15 var(--text)}
#medtrail .lp-sticker{top:auto;bottom:5%}
.lp-sticker i{font:500 2.3cqw/1.15 var(--text);font-style:normal;opacity:.8;margin-top:.4cqw}
@keyframes lp-spin{to{transform:rotate(1turn)}}
.notes h4{font-size:clamp(2.25rem,1.3rem + 3vw,4rem);line-height:1;margin-bottom:clamp(16px,2vw,28px)}
.notes dl>div{display:grid;grid-template-columns:7.6em 1fr;gap:14px;padding:9px 0}
.notes dt{font-weight:600}
.notes dd{max-width:42ch}
/* What I cut: reads like any other row; each item gives its reason on hover, tap or focus */
.cut-list{position:relative}
.cut{font:inherit;text-align:left;text-decoration:underline dotted;text-decoration-thickness:1px;text-underline-offset:.24em;cursor:help;transition:color .15s}
.cut:hover,.cut:focus-visible{color:#a8561c}
.cut-why{position:absolute;z-index:5;left:0;right:0;bottom:calc(100% + 8px);padding:10px 12px;background:var(--ink);color:#fff;font-size:var(--step-small);line-height:1.4;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .16s,transform .16s var(--ease-out),visibility .16s;pointer-events:none}
.cut:hover+.cut-why,.cut:focus+.cut-why{opacity:1;visibility:visible;transform:none}
.go{position:relative;display:inline-block;font-weight:600;margin-top:16px;padding-bottom:2px;text-decoration:none}
.go.is-soon{font-weight:400;font-style:italic}
.trio{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,4vw,64px);padding:12px var(--m) clamp(80px,10vw,140px)}
.mini-piece{min-height:0;padding:0;display:block}
.mini-piece .notes h4{font-size:clamp(1.625rem,1.2rem + 1.3vw,2.5rem);margin-bottom:10px}
.tagline{font-style:italic;margin-top:8px;font-size:var(--step-small)}

/* ---------- how I work ---------- */
.how{background:var(--bg);padding:clamp(80px,11vw,170px) var(--m)}
.how-head{display:grid;grid-template-columns:6fr 6fr;gap:var(--gap);align-items:end;margin-bottom:clamp(24px,4vw,56px)}
.how-grid{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap)}
.steps{grid-column:1/6}
.steps li{border-top:2px solid var(--surface);color:var(--muted);transition:color .25s}
.steps li:last-child{border-bottom:2px solid var(--surface)}
.steps li.is-on{color:var(--ink)}
.steps h3{font-size:clamp(1.5rem,1.15rem + 1.1vw,2.25rem);line-height:1}
.step-head{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:64px;padding:12px 0;font:inherit;text-align:left;text-transform:inherit;letter-spacing:inherit}
.step-head::after{content:"+";font-family:var(--text);font-size:.8em;font-weight:400;transition:transform .25s var(--ease-out)}
.is-on .step-head::after{transform:rotate(45deg)}
.step-head:hover{color:var(--ink)}
.step-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .32s var(--ease-out)}
.is-on .step-body{grid-template-rows:1fr}
.step-inner{min-height:0;overflow:hidden;visibility:hidden;transition:visibility .32s}
.is-on .step-inner{visibility:visible}
.step-inner p{max-width:42ch;padding-bottom:18px}
.file-stage{grid-column:7/13;position:sticky;top:7svh;align-self:start;background:var(--paper);padding:clamp(14px,1.6vw,24px)}
/* One real Ruko visual for the active step; the sheet below shows only that step's evidence */
.how-stage{position:relative;aspect-ratio:16/10;max-height:44svh;width:100%;margin-bottom:clamp(10px,1vw,16px);overflow:hidden;background:#f2f4f3}
.how-shot{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .35s}
.how-shot.is-on{opacity:1}
.how-shot picture{display:contents}
.how-shot img,.how-shot video{width:100%;height:100%;object-fit:contain}
.step-media{display:none}
@media (min-width:1041px){.js .file dl>div.is-empty{display:none}}
.file{background:var(--bg);padding:clamp(14px,1.4vw,22px)}
.file-title{font-weight:600;font-size:var(--step-lead);margin-bottom:8px}
.file dl>div{display:grid;grid-template-columns:9em 1fr;gap:16px;padding:6px 0;font-size:var(--step-small);border-top:2px solid var(--surface)}
.file dt{color:var(--muted)}
.file dd{font-weight:600;transition:opacity .32s,transform .32s var(--ease-out)}
.js .file dl>div.is-empty dd{opacity:0;transform:translateX(8px)}
.file-state{margin-top:8px;padding:10px 14px;background:var(--ink);color:#fff;font-size:var(--step-small);font-weight:600}

/* ---------- about ---------- */
.about{background:var(--paper);color:var(--ink);display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);padding:clamp(80px,11vw,170px) var(--m)}
.about-items{grid-column:1/8;display:flex;flex-direction:column;gap:clamp(40px,6vw,88px)}
.about-title{grid-column:8/13;align-self:start;position:sticky;top:18svh;justify-self:end;text-align:right}
.about-title h2{font-size:clamp(4.5rem,13vw,15rem);line-height:.86}
.about-sleeve{width:min(100%,520px)}
.about-sleeve .cover{aspect-ratio:1/1;max-height:none}
.about-bio p+p{margin-top:18px;max-width:52ch}
.record h3{font-size:var(--step-head);margin-bottom:20px}
.record dl>div{display:grid;grid-template-columns:7em 1fr;gap:16px;padding:10px 0}
.record dd{font-weight:600}

/* ---------- contact ---------- */
.contact{background:var(--ink);color:#fff;display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--gap);align-items:end;padding:clamp(88px,11vw,170px) var(--m)}
.contact-head{grid-column:1/8}
.contact-head h2{font-size:clamp(3.5rem,1rem + 8vw,9rem);margin-bottom:20px}
.contact-head .lead{max-width:28em;margin-bottom:28px}
.contact-list{grid-column:8/13}
.contact-list>div{display:grid;grid-template-columns:6em 1fr;gap:12px;padding:9px 0}
.contact-list dd{font-weight:600}

/* ---------- footer ---------- */
.foot{background:var(--ink);color:#fff;display:flex;justify-content:space-between;gap:16px;padding:20px var(--m) 28px;font-size:var(--step-small)}

/* ---------- entrances: only with script, never hiding content without it ---------- */
@media (prefers-reduced-motion:no-preference){
  .js .rise{opacity:0;transform:translateY(24px);transition:opacity .7s var(--ease-out) var(--d,0ms),transform .7s var(--ease-out) var(--d,0ms)}
  .js .rise.is-in{opacity:1;transform:none}
  .js .reveal-pic img{transform:scale(1.06);transition:transform 1.4s var(--ease-expo)}
  .js .reveal-pic.is-in img{transform:none}
  .js .piece:not(.mini-piece) .lp{transform:translateY(28px);opacity:0;transition:transform 1s var(--ease-expo),opacity .5s}
  .js .piece.is-in .lp{transform:none;opacity:1}
  /* The disc slides out once the sleeve has arrived */
  .js .piece:not(.is-in) .lp-disc{transform:none}
  .js .piece.is-in .lp-disc{transition-delay:.45s}
  .js .piece.is-in .lp:hover .lp-disc{transition-delay:0s}
}
@keyframes up{to{transform:none}}
@keyframes fade{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* ---------- tablet ---------- */
@media (max-width:1040px){
  .bar-links{gap:14px}
  .piece{min-height:0;padding-block:24px 64px}
  /* One empty column between sleeve and text, for the disc that peeks out of the sleeve */
  .piece .sleeve{grid-column:1/6;align-self:start}
  .piece .notes{grid-column:7/13}
  .piece.flip .sleeve{grid-column:8/13}
  .piece.flip .notes{grid-column:1/7}
  .steps{grid-column:1/13;order:1}
  .file-stage{grid-column:1/13;order:2;position:static;margin-top:8px}
  .how-stage{display:none}
  .step-media{display:block;margin-bottom:16px;background:#f2f4f3}
  .step-media img{width:100%}
  .how-grid{display:flex;flex-direction:column}
  .js .file dl>div.is-empty dd{opacity:1;transform:none}
  .about-items{grid-column:1/13;grid-row:2}
  .about-title{grid-column:1/13;grid-row:1;position:static;justify-self:start;text-align:left;margin-bottom:48px}
  .how-head,.work-head,.hits-head{grid-template-columns:1fr}
  .desk{grid-template-columns:1fr}
  .contact-head,.contact-list{grid-column:1/13}
  .contact-list{margin-top:36px}
}

/* below desktop, reading comes first: nothing waits for an entrance */
@media (max-width:1040px){.js .rise{opacity:1;transform:none;transition:none}}

/* ---------- small tablet: side by side squeezes the text, so the record sits above it ---------- */
@media (min-width:641px) and (max-width:860px){
  .piece{grid-template-columns:1fr;row-gap:28px}
  .piece .sleeve,.piece.flip .sleeve{grid-column:1;grid-row:1}
  .piece .notes,.piece.flip .notes{grid-column:1;grid-row:2;max-width:64ch}
  .piece .lp,.piece.flip .lp{--peek:10%;width:min(70%,440px);justify-self:start}
}

/* ---------- phone: its own composition ---------- */
@media (max-width:640px){
  .bar-links a:not(.bar-cv){display:none}
  .hit-n{font-size:15vw}
  .mosaic{grid-template-columns:1fr}
  .ch{grid-template-columns:7.4em 1fr;gap:10px}
  .piece{grid-template-columns:1fr;padding-block:16px 72px;gap:22px}
  .piece .lp,.piece.flip .lp{--peek:10%;width:86%;justify-self:start}
  .piece .sleeve,.piece.flip .sleeve{grid-column:1;grid-row:1}
  .piece .notes,.piece.flip .notes{grid-column:1;grid-row:2}
  .notes{display:flex;flex-direction:column}
  .notes h4{order:0}
  .notes .go{order:1;align-self:flex-start;margin:0 0 12px}
  .notes .proof{order:1;margin:10px 0 12px}
  .notes dl{order:2}
  .notes dl>div{grid-template-columns:1fr;gap:0;padding:8px 0}
  .trio{grid-template-columns:1fr}
  .file dl>div{grid-template-columns:1fr;gap:0}
  .file dt{font-size:.875rem}
  .foot{flex-direction:column}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* About photos as a stack of polaroids (filled from my-details.js) */
/* No plate behind the photos: they sit on the page like prints on a table */
.cover.has-polaroids{overflow:visible;padding:0;background:none}
.js .reveal-pic .polaroid img{transform:none}
.polaroids{position:absolute;inset:5%;cursor:pointer;outline:none;border-radius:2px}
.polaroids:focus-visible{box-shadow:0 0 0 3px var(--accent)}
.polaroid{position:absolute;inset:0;margin:0;background:#f6f1e7;padding:5.5% 5.5% 17%;box-shadow:0 14px 30px rgba(60,35,15,.22),0 2px 6px rgba(60,35,15,.2);transform:translate(var(--sx,0),var(--sy,0)) rotate(var(--tilt,0deg));transition:transform .5s cubic-bezier(.3,.7,.2,1)}
.cover .polaroid img{position:relative;inset:auto;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.polaroid figcaption{position:absolute;left:6%;right:6%;bottom:4%;color:#3a2a20;font-size:clamp(13px,1.15vw,17px);line-height:1.2;text-align:center}
.polaroid.is-leaving{transform:translate(-62%,-6%) rotate(-14deg)}
/* The hint is in the photos themselves: on hover the stack fans a little, the top one
   lifting and the next peeking out; the first time it is seen it does this once */
.polaroids:hover .polaroid[data-pos="0"],.polaroids.is-nudge .polaroid[data-pos="0"]{transform:translate(var(--sx,0),calc(var(--sy,0) - 2.5%)) rotate(calc(var(--tilt,0deg) - 1.8deg))}
.polaroids:hover .polaroid[data-pos="1"],.polaroids.is-nudge .polaroid[data-pos="1"]{transform:translate(calc(var(--sx,0) + 5%),var(--sy,0)) rotate(calc(var(--tilt,0deg) + 2.4deg))}
@media (prefers-reduced-motion:reduce){.polaroid{transition:none}}

/* A Background row with several entries (from my-details.js): a bulleted list */
.detail-list{margin:0;padding-left:1.1em;list-style:disc}
.detail-list li+li{margin-top:.55em}
.detail-list li::marker{color:var(--accent)}
.detail-when{display:block;margin-top:.15em;font-size:var(--step-small);font-weight:400;opacity:.65}
/* A pop-up with several points (from my-details.js): one bulleted line each */
.cut-why-points{display:block}
.cut-why-point{display:block;position:relative;padding-left:1em}
.cut-why-point::before{content:"•";position:absolute;left:0;color:var(--accent)}
.cut-why-point+.cut-why-point{margin-top:.45em}
