/* Viraj Tayshete — portfolio. Rebuild of the stympaul.com system (values measured from the live site, code written fresh). */

/* ---------- fonts: Mac system faces first (exact match), free look-alikes second ---------- */
@font-face { font-family: "VT Display"; src: url(../assets/fonts/display.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VT Italic"; src: local("Bodoni 72 Oldstyle Book Italic"), local("BodoniSvtyTwoOSITCTT-BookIt"), url(../assets/fonts/italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "VT Sans"; src: local("Helvetica Neue"), local("HelveticaNeue"), url(../assets/fonts/sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VT Sans"; src: local("Helvetica Neue Medium"), local("HelveticaNeue-Medium"), url(../assets/fonts/sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "VT Hand"; src: url(../assets/fonts/hand.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #fbfaf7; --ink: #1b1b1b; --soft: #6d6a64; --red: #d9261c; --paper: #fff;
  --serif: "VT Display", Newsreader, Georgia, serif;
  --italic: "VT Italic", "Bodoni Moda", Didot, Georgia, serif;
  --sans: "VT Sans", "Helvetica Neue", Inter, Arial, sans-serif;
  --hand: "VT Hand", "VT Italic", cursive;
  --hd: clamp(2.6rem, 5vw, 4.4rem);
  --settle: cubic-bezier(.2, .8, .2, 1);
  --camera: cubic-bezier(.65, 0, .25, 1);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #141413; --ink: #f1efe9; --soft: #9b978e; --red: #ff4a3d; --paper: #f6f4ee; }
}
:root[data-theme="dark"] { --bg: #141413; --ink: #f1efe9; --soft: #9b978e; --red: #ff4a3d; --paper: #f6f4ee; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: env(safe-area-inset-top, 0px); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-weight: 400; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- intro ---------- */
main { position: relative; z-index: 7; max-width: 1240px; margin: 0 auto; padding: 6svh 32px 3svh; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bio { position: relative; z-index: 4; display: flex; gap: clamp(20px, 3vw, 40px); align-items: center; justify-content: center; }
.col { width: min(56ch, 60vw); }
h1 { white-space: nowrap; font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; margin: 0 0 .6svh; text-align: left; letter-spacing: -.01em; }
h1 small { font-family: var(--italic); font-style: italic; font-size: .72em; color: var(--soft); margin-left: .35em; letter-spacing: 0; }
.say { width: 100%; font-family: var(--sans); font-size: clamp(.88rem, 1.05vw, 1rem); line-height: 1.7; text-align: left; margin: 0; min-height: 9.5em; }
.w { position: relative; display: inline-block; white-space: pre; color: var(--soft); transition: color 1s; }
.w i { position: absolute; left: 0; top: 56%; height: 2.5px; width: 0; background: var(--red); border-radius: 2px; pointer-events: none;
  transition: width .12s linear, height .4s, transform .4s, opacity 1s; }
.say.done .w i { opacity: .3; }
.say.done .w { color: var(--ink); }
.w.last i { height: 3.5px; transform: rotate(-1.6deg) scaleX(1.04); transform-origin: left center; border-radius: 3px; }
.tail { color: var(--ink); }
.final { display: block; margin-top: .4em; color: var(--ink); font-size: 1.28em; line-height: 1.38; letter-spacing: -.005em; }
.final .cap { letter-spacing: .02em; }
.final .it { font-family: var(--italic); font-style: italic; font-size: 1.36em; white-space: nowrap; }

.polaroid { position: relative; flex: 0 0 auto; width: clamp(120px, 11.5vw, 165px); margin: 0; aspect-ratio: .61; background: linear-gradient(175deg, #fbfaf6, #f1efe9 82%, #e9e7e1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22); transform: rotate(3deg) translateY(30px); opacity: 0; cursor: pointer; outline: none;
  transition: opacity .9s, transform .9s var(--settle); }
.polaroid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 40%, rgba(0,0,0,.04)); pointer-events: none; }
.polaroid img { position: absolute; left: 7.5%; right: 7.5%; top: 6.5%; width: 85%; height: 70%; object-fit: cover; display: block; filter: saturate(.92) contrast(1.02); }
.polaroid.on { opacity: 1; transform: rotate(3deg); }
.polaroid:hover, .polaroid:focus-visible { transform: rotate(-1deg) scale(1.03); }
.polaroid:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
.about { position: absolute; left: calc(100% + 18px); top: 0; width: 290px; background: #2c2c2c; color: #fff; padding: 12px 14px; border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14); font: .76rem/1.5 var(--sans); text-align: left; opacity: 0; transform: translateY(8px) rotate(-2deg);
  pointer-events: none; transition: opacity .25s, transform .25s; z-index: 8; }
.about.flip { left: auto; right: calc(100% + 18px); }
.about b { display: block; font: italic .95rem var(--italic); margin-bottom: 3px; }
.about p { margin: 0 0 .7em; } .about p:last-child { margin: 0; }
.polaroid:hover .about, .polaroid:focus-visible .about { opacity: 1; transform: rotate(-2deg); }

/* ---------- things in my vicinity ---------- */
.zone { position: relative; flex: 0 0 auto; width: 100%; height: clamp(300px, 40svh, 400px); margin-top: 3svh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.zone h2 { font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.02; letter-spacing: -.01em; margin: 0; position: relative; z-index: 3; }
.shuffle { position: relative; z-index: 3; margin-top: 2.4svh; font: 1rem var(--serif); background: none; color: var(--ink); border: 1.5px solid var(--ink);
  border-radius: 50% / 60%; padding: .45em 1.5em; cursor: pointer; transition: transform .2s, border-color .2s; }
.shuffle:hover { transform: rotate(-2deg) scale(1.05); border-color: var(--red); }
.shuffle:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.desk { position: absolute; inset: 0; margin: 0 auto; width: min(100%, 840px); pointer-events: none; }
.obj { position: absolute; width: clamp(80px, 10vw, 135px); aspect-ratio: 1; display: grid; place-items: center; background: none; border: 0; padding: 0;
  cursor: pointer; z-index: 2; pointer-events: auto; animation: enter .9s var(--settle) both; }
.s0 { left: 0; top: 4%; } .s1 { left: 19%; top: 38%; } .s2 { left: 4%; bottom: 0; }
.s3 { right: 18%; top: 0; } .s4 { right: 0; top: 38%; } .s5 { right: 20%; bottom: 0; }
.obj.leave { animation: leave .45s ease-in forwards; }
.obj .bob { display: grid; place-items: center; width: 100%; height: 100%; animation: float var(--d, 7s) ease-in-out var(--dl, 0s) infinite; transition: transform .3s; }
.obj:hover .bob, .obj:focus-visible .bob { animation-play-state: paused; transform: translateY(-12px) scale(1.12) rotate(0); }
.obj:hover, .obj:focus-visible { z-index: 6; }
.obj:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; border-radius: 12px; }
.cut { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; rotate: var(--tilt, 0deg);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .18)); transition: rotate .3s; scale: .88; }
.obj:hover .cut, .obj:focus-visible .cut { rotate: 0deg; }
.cut.wide { max-width: 128%; }
.cut.tile { max-width: 80%; max-height: 80%; }
.cap { position: absolute; top: 4%; left: calc(100% + 10px); width: max-content; max-width: 180px; text-align: left; background: #2c2c2c; color: #fff;
  padding: 10px 12px; border-radius: 3px; box-shadow: 0 6px 20px rgba(0, 0, 0, .14); font: .68rem/1.4 var(--sans); opacity: 0;
  transform: translateY(8px) rotate(-2deg); pointer-events: none; transition: opacity .25s, transform .25s; z-index: 8; }
.obj.toL .cap { left: auto; right: calc(100% + 10px); }
.cap b { display: block; font: italic .8rem var(--italic); margin-bottom: 2px; }
.obj:hover .cap, .obj:focus-visible .cap { opacity: 1; transform: rotate(-2deg); }
.hint { font: italic .85rem var(--italic); color: var(--soft); margin: 1.2svh 0 0; opacity: 0; animation: hintIn .8s ease 4.2s both; pointer-events: none; position: relative; z-index: 3; }
.polaroid .hint { position: absolute; top: 100%; left: 0; right: 0; margin: 12px 0 0; text-align: center; }
.hint.gone { animation: hintOut .4s ease forwards; }
@media (hover: none) { .hint { display: none; } }
@keyframes hintIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes hintOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r1, -3deg)); } 50% { transform: translateY(var(--y, -16px)) rotate(var(--r2, 4deg)); } }
@keyframes enter { from { opacity: 0; transform: translateY(-40px) scale(.8); } }
@keyframes leave { to { opacity: 0; transform: translateY(40px) scale(.8); } }

/* ---------- the repository ---------- */
.repo { position: relative; height: 100svh; min-height: 560px; display: flex; flex-direction: column; transition: height 1.1s var(--camera); }
.rhead { position: sticky; top: 0; z-index: 6; text-align: center; padding: 3svh 24px 2.5svh; background: linear-gradient(var(--bg) 70%, transparent); pointer-events: none; }
.rhead button { pointer-events: auto; }
.rh { font-weight: 400; font-size: var(--hd); line-height: 1; letter-spacing: -.01em; margin: 0; }
.sub { font: .9rem var(--sans); color: var(--soft); margin: .7em 0 0; }
.tabs { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin-top: 1.6svh; }
.tabs.t2 { margin-top: 2px; transition: opacity .3s; }
.tab { font: 1rem var(--serif); background: none; border: 1.5px solid transparent; border-radius: 50% / 60%; padding: .3em 1em; cursor: pointer; color: var(--ink); transition: border-color .2s, transform .2s; }
.t2 .tab { font-size: .88rem; color: var(--soft); }
.tab[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.tab:hover { border-color: var(--red); transform: rotate(-2deg); }
.tab:focus-visible, .pin:focus-visible, .zl:focus-visible, .zoomc button:focus-visible, .bts:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.stage { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: pan-y; }
.world { position: absolute; left: 0; top: 0; width: 4000px; height: 2200px; transform-origin: 0 0; transition: transform 1.1s var(--camera); }
.world.drag { transition: none; }
.zl { white-space: nowrap; position: absolute; z-index: 3; font: 2rem var(--serif); background: none; color: var(--ink); border: 1.5px solid var(--ink);
  border-radius: 50% / 60%; padding: .15em .9em; cursor: pointer; text-decoration: none; transform: rotate(var(--rot, 0deg)); transition: border-color .2s, transform .2s; }
.zl:hover { border-color: var(--red); transform: rotate(-2deg); }
.zl.sm { font-size: 1.4rem; }
.sh { position: absolute; z-index: 3; translate: -50%; white-space: nowrap; font: 7rem/1 var(--hand); background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; transition: color .2s, transform .2s; }
.sh:hover { color: var(--red); transform: rotate(-1.5deg); }
.pin { position: absolute; z-index: 2; width: 210px; background: var(--paper); padding: 10px 10px 12px; border: 0; color: #222; text-align: left; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2); transform: rotate(var(--rot, 0deg)); transition: transform .3s, box-shadow .3s; }
.pin:hover, .pin:focus-visible { transform: rotate(0) scale(1.05); box-shadow: 0 16px 30px rgba(0, 0, 0, .28); z-index: 6; }
.pin::before, .bts::before { content: ""; position: absolute; left: 50%; border-radius: 50%; background: var(--red); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); transform: translateX(-50%); }
.pin::before { top: -7px; width: 13px; height: 13px; }
.th { aspect-ratio: var(--ar, 4/5); background: linear-gradient(135deg, hsl(var(--h, 30) 10% 84%), hsl(var(--h, 30) 12% 70%)); display: grid; place-items: center; font: .7rem var(--sans); color: #555; overflow: hidden; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin b { display: block; font: 400 1.05rem var(--serif); margin-top: 9px; }
.pin small { font: .74rem var(--sans); color: #666; }
.bts { position: absolute; z-index: 1; background: var(--paper); padding: 6px 6px 14px; border: 0; cursor: pointer; box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  transform: rotate(var(--rot, 0deg)); transition: transform .3s, box-shadow .3s; }
.bts::before { top: -5px; width: 11px; height: 11px; }
.bts:hover, .bts:focus-visible { transform: rotate(0) scale(1.08); z-index: 5; box-shadow: 0 12px 24px rgba(0, 0, 0, .28); }
.bts img { display: block; width: 100%; height: auto; }
.bts .th { --ar: 4/3; font-size: .6rem; }
.sticky { position: absolute; z-index: 4; width: 124px; min-height: 124px; padding: 14px 10px 10px; background: var(--tint, #fff3a8); color: #2a2a2a;
  font: italic 1.1rem/1.15 var(--italic); overflow: hidden; box-shadow: 0 5px 12px rgba(0, 0, 0, .18); transform: rotate(var(--rot, 0deg)); text-align: left; }
.sticky.note { width: 260px; min-height: 0; padding: 22px 20px; font-size: 1.25rem; line-height: 1.35; overflow: visible; }
/* essays: sticky notes you open */
.wn { position: absolute; z-index: 3; display: flex; flex-direction: column; width: 300px; height: 300px; padding: 32px 26px 22px; background: var(--tint, #fff3a8); color: #2a2a2a; text-decoration: none; text-align: left;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .18); transform: rotate(var(--rot, 0deg)); transition: transform .3s, box-shadow .3s; }
.wn::before { content: ""; position: absolute; left: 50%; top: -7px; width: 13px; height: 13px; border-radius: 50%; background: var(--red); box-shadow: 0 2px 3px rgba(0, 0, 0, .35); transform: translateX(-50%); }
.wn::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; background: linear-gradient(315deg, rgba(0, 0, 0, .07) 0 45%, transparent 46%); pointer-events: none; }
.wn small { font: 500 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(42, 42, 42, .55); }
.wn b { flex: 1; margin-top: 14px; font: italic 400 1.6rem/1.12 var(--italic); overflow-wrap: break-word; }
.wn em { font: normal .9rem var(--sans); color: #b3261e; opacity: .85; transition: opacity .2s, letter-spacing .2s; }
.wn:hover, .wn:focus-visible { transform: rotate(0) scale(1.05); box-shadow: 0 16px 30px rgba(0, 0, 0, .26); z-index: 6; }
.wn:hover em, .wn:focus-visible em { opacity: 1; letter-spacing: .04em; }
.wn:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.mbw { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 10px 10px 2svh; }
.wn.m { position: relative; width: auto; height: auto; aspect-ratio: 1; padding: 22px 14px 12px; }
.wn.m b { margin-top: 10px; font-size: 1.15rem; }
.divs, .thread { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.divs { z-index: 0; } .thread { z-index: 1; }
.divs path { fill: none; stroke: var(--soft); stroke-width: 2; stroke-dasharray: 12 10; stroke-linecap: round; opacity: .7; }
.thread path { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; opacity: .85; }
.zoomc { position: absolute; right: 16px; bottom: 14px; z-index: 7; display: flex; gap: 6px; cursor: default; }
.repo > .zoomc { position: sticky; right: auto; bottom: 14px; margin: auto 16px 14px auto; }   /* rides along the bottom of the screen while you are in the board */
.zoomc button { font: .9rem var(--serif); min-width: 34px; height: 34px; padding: 0 10px; background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50% / 60%; cursor: pointer; transition: border-color .2s; }
.zoomc button:hover { border-color: var(--red); }

.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: grid; place-items: center; z-index: 50; padding: 24px; }
.sheet[hidden] { display: none; }
.box { background: #2c2c2c; color: #fff; max-width: 540px; width: 100%; max-height: calc(100svh - 48px); overflow-y: auto; padding: 22px 24px; border-radius: 3px; text-align: left; font: .85rem/1.55 var(--sans); }
.box .th { margin-bottom: 14px; aspect-ratio: 4 / 3 !important; max-height: 40svh; width: 100%; }
.box .th { position: relative; display: block; }
.box .th img { position: absolute; inset: 0; object-position: 50% var(--fy, 62%); }
.box h3 { font: 400 1.5rem var(--serif); margin: 0 0 4px; }
.box .meta { font: italic .95rem var(--italic); color: #cfcfcf; margin: 0 0 10px; }
.box .desc { margin: 0 0 4px; color: #e9e9e9; }
.box button, .box a { display: inline-block; margin: 14px 8px 0 0; font: .8rem var(--sans); background: none; color: #fff; border: 1px solid #888; border-radius: 50% / 60%; padding: .35em 1.2em; cursor: pointer; text-decoration: none; }
.box a[hidden] { display: none; }
.bh { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font: italic .95rem var(--italic); color: #cfcfcf; }
.bh[hidden], .strip[hidden] { display: none; }
.bh button { margin: 0 0 0 6px; padding: .05em .7em; font-size: 1rem; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 8px; padding-bottom: 6px; scrollbar-width: thin; }
.strip img { height: 200px; width: auto; flex: 0 0 auto; scroll-snap-align: start; border-radius: 2px; }

/* mobile repository: stacked collages */
.repo.mob { height: auto !important; min-height: 0; overflow: visible; display: block; }
.repo.mob .stage, .repo.mob .zoomc { display: none; }
.repo.mob .rhead { position: static; background: none; padding: 64px 14px 1svh; }
.repo.mob .tab { font-size: .95rem; padding: .3em .85em; }
.mbl { padding: 1svh 8px 4svh; }
.mbg { margin: 0 0 5svh; } .mbg[hidden] { display: none; }
.mbt { display: table; margin: 3svh auto 2svh; font: 400 1.3rem var(--serif); text-align: center; border: 1.5px solid var(--ink); border-radius: 50% / 60%; padding: .15em .9em; }
.mbh { display: block; margin: 4svh auto 0; font: 4rem/1 var(--hand); text-align: center; }
.mbc { position: relative; margin: 0 auto 3svh; }
.mbn { margin: 1svh 6px 3svh; padding: 20px 18px; background: #fff3a8; color: #2a2a2a; font: italic 1.1rem/1.45 var(--italic); transform: rotate(-1deg); white-space: pre-line; text-align: left; }

/* ---------- chrome ---------- */
.toc { position: fixed; top: 16px; left: 18px; z-index: 30; }
.toc-b, .ct-b { font: .95rem/1 var(--serif); background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50% / 60%; height: 34px; padding: 0 1.15em;
  display: inline-flex; align-items: center; cursor: pointer; transition: border-color .2s, transform .2s, opacity .4s, filter .4s, background-color .4s; }
.toc-b:hover, .toc-b[aria-expanded="true"], .ct-b:hover, .ct.on .ct-b { border-color: var(--red); }
.toc-b:hover { transform: rotate(-2deg); } .ct-b:hover { transform: rotate(2deg); }
.toc-b:focus-visible, .toc-p a:focus-visible, .ct-b:focus-visible, .ct-p a:focus-visible, .ct-p button:focus-visible, .ig:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.toc-p, .ct-p { position: absolute; top: calc(100% + 10px); background: var(--bg); border: 1px solid rgba(0, 0, 0, .14); border-radius: 3px; opacity: 0; transform: translateY(-6px);
  pointer-events: none; transition: opacity .25s, transform .25s; }
.toc-p::before, .ct-p::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.toc-p { left: 0; min-width: 236px; padding: 12px 10px; }
.toc.on .toc-p, .ct.on .ct-p { opacity: 1; transform: none; pointer-events: auto; }
.toc-p a { display: flex; align-items: baseline; gap: 12px; padding: .32em .95em; font: 1.2rem var(--serif); color: var(--ink); text-decoration: none; border: 1.5px solid transparent; border-radius: 50% / 60%; white-space: nowrap; transition: color .2s; }
.toc-p a span { font: .68rem var(--sans); letter-spacing: .08em; color: var(--soft); }
.toc-p a:hover { color: var(--red); }
.toc-p a[aria-current="true"] { border-color: var(--ink); }
.ct { position: fixed; top: 16px; right: 62px; z-index: 30; }
.ct-p { right: 0; min-width: 250px; width: max-content; padding: 16px 18px 14px; text-align: left; }
.ct-t { margin: 0 0 4px; font: italic 1.05rem var(--italic); color: var(--soft); }
.ct-m { display: block; font: 1.35rem var(--serif); color: var(--ink); text-decoration: none; margin-bottom: 12px; white-space: nowrap; }
.ct-m:hover { color: var(--red); }
.ct-r { display: flex; gap: 8px; }
.ct-r button, .ct-r a { font: .85rem var(--serif); color: var(--ink); background: none; border: 1.5px solid var(--ink); border-radius: 50% / 60%; padding: .28em 1em; cursor: pointer; text-decoration: none; transition: border-color .2s; }
.ct-r button:hover, .ct-r a:hover { border-color: var(--red); }
.ig { position: fixed; top: 16px; right: 18px; z-index: 30; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 50% / 60%; transition: border-color .2s, transform .2s, opacity .4s, filter .4s, background-color .4s; }
.ig:hover { border-color: var(--red); transform: rotate(2deg); }
.ig svg { width: 16px; height: 16px; }
.away .toc:not(.on):not(:hover):not(:focus-within) .toc-b, .away .pt:not(.on):not(:hover):not(:focus-within) .pt-b, .away .ct:not(.on):not(:hover):not(:focus-within) .ct-b, .away .ig:not(:hover):not(:focus-visible) { opacity: .42; filter: blur(1.8px); background-color: transparent; }

@media (max-width: 700px) {
  main { height: auto; min-height: 0; padding-top: 70px; }
  .bio { flex-direction: column; }
  .col { width: 100%; }
  .say { min-height: 13em; }
  .zone { height: 470px; }
  .obj { width: 27vw; }
  .cut.wide { max-width: 100%; }
  .s0 { left: 2%; top: 0; } .s1 { left: 35%; top: 0; } .s3 { right: 2%; top: 0; }
  .s2 { left: 2%; bottom: 0; } .s5 { left: 35%; bottom: 0; } .s4 { right: 2%; bottom: 0; }
  .about { left: 50%; top: calc(100% + 34px); width: min(290px, 84vw); transform: translate(-50%, 8px) rotate(-2deg); }
  .polaroid:hover .about, .polaroid:focus-visible .about { transform: translate(-50%, 0) rotate(-2deg); }
  .toc { top: 10px; left: 10px; } .ct { top: 10px; right: 50px; } .ig { top: 10px; right: 10px; width: 30px; height: 30px; }
  .toc-b, .ct-b { font-size: .85rem; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .obj .bob { animation: none !important; }
  .world, .repo { transition: none; }
}

/* project sheet: case-study sections and reference files */
.box .secs { margin: 12px 0 0; display: grid; gap: 12px; }
.box .secs[hidden], .box .refs[hidden] { display: none; }
.box .sec b { display: block; font: italic 1rem var(--italic); color: #f4e9d6; margin-bottom: 2px; }
.box .sec p { margin: 0; color: #e2e2e2; }
.box .refs { margin-top: 18px; padding-top: 12px; border-top: 1px solid #444; display: flex; flex-wrap: wrap; gap: 6px; }
.box .refs b { width: 100%; font: italic .95rem var(--italic); color: #cfcfcf; }
.box .refs a { margin: 0; font-size: .74rem; padding: .25em .9em; }
.box #sL { border-color: #f4e9d6; }

/* builds: tagline, stack chips, a GitHub card in the sheet, and a paper tag on the board */
.box .tagl { margin: -4px 0 12px; font: italic 1.2rem/1.35 var(--italic); color: #fff; }
.box .tagl[hidden], .box .chips[hidden], .box .gh[hidden] { display: none; }
.box .chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; }
.box .chips span { font: .7rem/1 var(--sans); color: #dcdcdc; border: 1px solid #5a5a5a; border-radius: 999px; padding: .45em .8em; }
.box .sec ul { margin: 4px 0 0; padding-left: 1.05em; color: #e2e2e2; }
.box .sec li { margin: 0 0 4px; } .box .sec li::marker { color: #ff6a5c; }
.box .gh { margin-top: 18px; border: 1px solid #555; border-radius: 6px; background: #1d1d1d; overflow: hidden; }
.box .ghh { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; }
.box .ghh svg { width: 22px; height: 22px; color: #fff; flex: 0 0 auto; }
.box .ghp { font: 1.15rem var(--serif); color: #fff; } .box .ghp i { font-style: normal; color: #9a9a9a; }
.box .ghc { display: flex; align-items: center; gap: 8px; margin: 0 14px; padding: 8px 10px; background: #111; border-radius: 4px; }
.box .ghc .dl { color: #ff6a5c; font: .78rem ui-monospace, Menlo, monospace; }
.box .ghc code { flex: 1 1 auto; min-width: 0; overflow-x: auto; white-space: nowrap; font: .74rem ui-monospace, Menlo, monospace; color: #e8e8e8; scrollbar-width: none; }
.box .ghc button { margin: 0; flex: 0 0 auto; font-size: .7rem; padding: .2em .9em; }
.box .ghr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 0 14px 12px; }
.box .ghr a { border-color: #f4e9d6; }
.box .ghr a.up { border: 0; padding: 0; margin-top: 14px; font-size: .72rem; color: #a9a9a9; text-decoration: underline; text-underline-offset: 3px; }
.rtag { position: absolute; z-index: 3; display: block; width: 128px; padding: 8px 10px 9px 22px; background: #f3ead6; color: #2a2a2a; text-decoration: none;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); box-shadow: 0 4px 10px rgba(0, 0, 0, .18); transform: rotate(var(--rot, 0deg)); transform-origin: 8px 50%; transition: transform .25s; filter: drop-shadow(0 3px 4px rgba(0,0,0,.18)); }
.rtag .hole { position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px #b8ac93; }
.rtag small { display: block; font: 500 .56rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8a7f68; }
.rtag b { display: block; margin-top: 3px; font: 400 .74rem/1.2 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.rtag em { position: absolute; right: 8px; top: 6px; font: normal .8rem var(--sans); color: var(--red); }
.rtag:hover, .rtag:focus-visible { transform: rotate(0deg) scale(1.06); z-index: 7; }
.rtag:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* GrowthX: the three Notion case studies as a fanned stack of pages */
.box .docs[hidden] { display: none; }
.box .docs { margin-top: 20px; }
.box .docs .dh { display: block; font: italic 1rem var(--italic); color: #f4e9d6; margin-bottom: 10px; }
.box .fan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.box a.doc { position: relative; display: flex; flex-direction: column; min-height: 156px; margin: 0; padding: 12px 12px 10px; border: 0; border-radius: 2px;
  background: #fbfaf7; color: #1b1b1b; text-decoration: none; transform: rotate(var(--r)); box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  transition: transform .3s var(--settle), box-shadow .3s; animation: docIn .6s var(--settle) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
.box a.doc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--red); opacity: .85; }
.box a.doc::after { content: ""; position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; background: linear-gradient(135deg, #e3ded2 50%, #2c2c2c 50%); }
.box a.doc:hover, .box a.doc:focus-visible { transform: rotate(0) translateY(-6px) scale(1.04); box-shadow: 0 14px 26px rgba(0, 0, 0, .45); z-index: 2; }
.box a.doc .dn { font: 400 1.6rem/1 var(--serif); color: #b9b4aa; }
.box a.doc small { margin-top: 10px; font: 500 .6rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.box a.doc strong { margin-top: 4px; font: 400 1.18rem/1.1 var(--serif); }
.box a.doc .df { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; padding-right: 14px; }
.box a.doc .df i { font: italic .78rem var(--italic); color: #6d6a64; }
.box a.doc .df em { font: normal .72rem var(--sans); color: #1b1b1b; }
@keyframes docIn { from { opacity: 0; transform: translateY(14px) rotate(var(--r)); } }
@media (max-width: 520px) { .box .fan { grid-template-columns: 1fr; } .box a.doc { min-height: 0; } }

/* corner palette (a twin of the garden's switcher) */
.pt { position: fixed; top: 16px; right: 170px; z-index: 30; }
.pt-b { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50% / 60%; cursor: pointer;
  transition: border-color .2s, transform .2s, opacity .4s, filter .4s, background-color .4s; }
.pt-b:hover, .pt.on .pt-b { border-color: var(--red); transform: rotate(-4deg); }
.pt-b:focus-visible, .tpal button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.pt-dot { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, var(--f, var(--red)) 0 3.4px, var(--b, var(--bg)) 3.9px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent); }
.pt-p { position: absolute; top: calc(100% + 10px); right: 0; width: max-content; padding: 14px 16px 16px; background: var(--bg); border: 1px solid rgba(0, 0, 0, .14); border-radius: 3px; text-align: left;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .25s, transform .25s, background-color .6s; }
.pt-p::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.pt.on .pt-p { opacity: 1; transform: none; pointer-events: auto; }
.tpal { display: grid; grid-template-columns: repeat(5, 22px); gap: 8px; margin-top: 6px; }
.tpal button { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle, var(--f) 0 4.2px, var(--b) 4.8px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); transition: transform .2s, box-shadow .2s; }
.tpal button:hover { transform: scale(1.12); }
.tpal button[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--ink); }
.reading #pt { visibility: hidden; }
@media (max-width: 700px) { .pt { top: 10px; } .pt-b { width: 30px; height: 30px; } }
.xlb video { max-width: min(86vw, 1100px); max-height: 78svh; background: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.xlb video[hidden], .xlb img[hidden] { display: none; }

.ct-s { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0, 0, 0, .1); }
.ct-s a { font: italic .95rem var(--italic); color: var(--ink); text-decoration: none; }
.ct-s a:hover { color: var(--red); }
.ct-s a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* clearer section headings inside the cards: plain, medium-weight sans, no italics */
.box .sec b, .box .docs .dh, .box .refs b, .box .bh, .box .mapsw .dh, .box .demo .dh { font: 600 .82rem/1.3 var(--sans); font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.box .sec b { margin-bottom: 5px; }
.box .bh { margin-top: 22px; }
.box .mapsw[hidden], .box .demo[hidden] { display: none; }
.box .mapsw { margin-top: 20px; }
.box .mapsw .dh, .box .demo .dh { display: block; margin-bottom: 10px; }
.box .maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.box .maps a { display: block; margin: 0; padding: 6px 6px 8px; border: 0; border-radius: 0; background: #fff; color: #222; text-decoration: none; transform: rotate(var(--r)); box-shadow: 0 6px 14px rgba(0, 0, 0, .35); transition: transform .3s var(--settle); }
.box .maps a:hover, .box .maps a:focus-visible { transform: rotate(0) scale(1.04); }
.box .maps img { display: block; width: 100%; height: 92px; object-fit: cover; background: #111; }
.box .maps span { display: block; margin-top: 6px; font: .72rem/1.3 var(--sans); color: #333; }
.box .demo { margin-top: 22px; }
.box .demo .sub2 { display: block; margin: -4px 0 8px; font: 500 .8rem var(--sans); color: #cfcfcf; }
.box .win { border: 1px solid #555; border-radius: 8px; overflow: hidden; background: #fff; }
.box .wbar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #1d1d1d; }
.box .wbar i { width: 9px; height: 9px; border-radius: 50%; background: #555; }
.box .wbar i:nth-child(1) { background: #ff5f57; } .box .wbar i:nth-child(2) { background: #febc2e; } .box .wbar i:nth-child(3) { background: #28c840; }
.box .wurl { margin-left: 8px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: .7rem ui-monospace, Menlo, monospace; color: #bdbdbd; background: #111; border-radius: 4px; padding: 3px 8px; }
.box .wview { position: relative; display: block; margin: 0; padding: 0; border: 0; border-radius: 0; aspect-ratio: 1470 / 802; overflow: hidden; }
.box .wview img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--settle); }
.box .wview:hover img { transform: scale(1.03); }
.box .wview iframe { position: absolute; left: 0; top: 0; width: 200%; height: 200%; border: 0; transform: scale(.5); transform-origin: 0 0; background: #fff; }
.box a.wgo { border-color: #f4e9d6; }
