/* ==========================================================================
   Muhammad Hunzla Bin Javed — portfolio (local employers)
   Direction: "quiet ledger". Ink-green canvas, status colour carries meaning:
   amber = pending, mint = verified. One loud moment: the hero animation.
   ========================================================================== */

:root {
  --ink: #0d1311;
  --ink-2: #111915;
  --ink-3: #17211c;
  --line: #24302a;
  --line-2: #334139;
  --text: #e9e6dc;
  --muted: #9aa59e;
  --verified: #8fd3b0;
  --pending: #d9b26a;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--verified);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--verified); color: var(--ink); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: .75rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 450;
  letter-spacing: -.01em;
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-size: .975rem;
  padding-block: .4rem;
  transition: color .2s ease;
}
.site-nav a:not(.btn):hover { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .55rem 1.2rem;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  font-size: .975rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--verified); border-color: var(--verified); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: transparent; border-color: var(--text); color: var(--text); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.25rem, 4.5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 2rem clamp(2.5rem, 5vw, 4rem);
  align-items: end;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.5rem, 5.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
  max-width: 16ch;
}
.hero .lede {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}
.hero .lede strong { color: var(--text); font-weight: 500; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); border-top: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-head p { color: var(--muted); max-width: 32rem; }

/* ---------- Work index: image-led projects ---------- */

.projects { list-style: none; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2.5rem); }
.project { padding: 0; }
.project::before { display: none; }
.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--ink-2, #101815); border: 1px solid var(--line-2); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.045); }
.card:focus-visible { outline: 2px solid var(--verified); outline-offset: 6px; border-radius: 16px; }
.card-body { display: flex; flex-direction: column; gap: .75rem; padding-top: 1.35rem; flex: 1; }
.card .work-title { transition: color .2s ease; }
.card:hover .work-title { color: var(--verified); }
.card .work-desc { display: block; }
.card-foot { margin-top: auto; padding-top: .75rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.card .work-meta { display: block; }
.card-cta { font-weight: 500; white-space: nowrap; }
.card-cta i { display: inline-block; font-style: normal; transition: transform .25s ease; }
.card:hover .card-cta i { transform: translateX(.3rem); }
@media (max-width: 40rem) { .projects { grid-template-columns: 1fr; } }
.project-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, .8fr) auto;
  gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.work-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.work-title a { text-decoration: none; transition: color .2s ease; }
.work-title a:hover { color: var(--verified); }
.work-desc { color: var(--muted); max-width: 34rem; }
.work-meta { font-size: .95rem; color: var(--muted); }
.work-meta span { display: block; color: var(--text); }

/* ---------- Approach (a real sequence) ---------- */

.approach { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.approach li {
  position: relative;
  padding: 1.75rem 1.25rem 0 0;
  border-top: 1px solid var(--line-2);
}
.approach li::before {
  content: "";
  position: absolute;
  top: -.4rem;
  left: 0;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--verified);
}
.approach h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.approach p { color: var(--muted); font-size: .98rem; line-height: 1.55; }

/* ---------- More work ---------- */

.more-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 4rem; }
.more-cols h3 { font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }
.more-cols li { padding-block: .8rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.more-cols li:last-child { border-bottom: 1px solid var(--line); }
.more-cols li span:last-child { color: var(--muted); text-align: right; font-size: .95rem; }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 4rem; align-items: start; }
.about-photo { max-width: 22rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 1.75rem; }
.about-photo img { width: 100%; height: auto; }
.about-copy p { color: var(--muted); max-width: 36rem; }
.about-copy p + p { margin-top: 1rem; }
.about-copy p:first-of-type { color: var(--text); font-size: 1.2rem; line-height: 1.55; }
.facts { display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: .8rem; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 1rem; }
.facts dd { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Closing call ---------- */

.closing { padding-block: clamp(4rem, 9vw, 7.5rem); border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 16ch; line-height: 1.03; }
.closing p { margin-top: 1.25rem; color: var(--muted); max-width: 30rem; }
.closing .hero-actions { margin-top: 2rem; }

.site-footer { border-top: 1px solid var(--line); padding-block: 1.75rem; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
[hidden] { display: none !important; }

/* ==========================================================================
   Case study pages
   ========================================================================== */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--verified);
  transform-origin: left;
  transform: scaleX(0);
}

.case-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.crumb { display: inline-flex; margin-bottom: 2rem; color: var(--muted); font-size: .95rem; text-decoration: none; }
.crumb:hover { color: var(--text); }
.case-hero h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -.025em;
  text-wrap: balance;
  max-width: 18ch;
}
.case-hero .standfirst { margin-top: 1.4rem; max-width: 40rem; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; }
.meta { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); }
.meta dt { font-size: .88rem; color: var(--muted); margin-bottom: .2rem; }
.meta dd { font-weight: 500; }

.tabs { display: flex; gap: .5rem; margin-top: 2.5rem; padding: .3rem; width: fit-content; border: 1px solid var(--line-2); border-radius: 99px; }
.tab {
  background: transparent;
  border: 0;
  padding: .5rem 1.25rem;
  border-radius: 99px;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--ink); }

.case-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }

/* the status tracker */
.tracker { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; font-size: .95rem; }
.tracker p { color: var(--muted); font-size: .88rem; margin-bottom: 1rem; }
.tracker ol { display: grid; }
.tracker li { position: relative; padding: 0 0 1.35rem 1.9rem; }
.tracker li:last-child { padding-bottom: 0; }
.tracker li::before {
  content: "";
  position: absolute;
  left: .45rem; top: 1.15rem; bottom: -.15rem;
  width: 1px;
  background: var(--line-2);
}
.tracker li:last-child::before { display: none; }
.tracker li::after {
  content: "";
  position: absolute;
  left: 0; top: .28rem;
  width: .95rem; height: .95rem;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: var(--ink);
  transition: background .25s ease, border-color .25s ease;
}
.tracker a { text-decoration: none; color: var(--muted); transition: color .2s ease; }
.tracker li[data-s="done"]::before { background: var(--verified); }
.tracker li[data-s="done"]::after { background: var(--verified); border-color: var(--verified); }
.tracker li[data-s="done"] a { color: var(--text); }
.tracker li[data-s="active"]::after { border-color: var(--pending); background: var(--ink); box-shadow: 0 0 0 4px rgba(217,178,106,.18); }
.tracker li[data-s="active"] a { color: var(--text); font-weight: 600; }

.case-main { min-width: 0; }
.case-main section { padding-block: 0 clamp(2.5rem, 5vw, 3.75rem); }
.case-main h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 1.25rem; }
.case-main h3 { font-size: 1.05rem; font-weight: 600; }
.case-main section > :not(h2) + :not(h2) { margin-top: 1.5rem; }
.case-main section > p { max-width: 40rem; color: var(--muted); }
.case-main section > p strong { color: var(--text); font-weight: 600; }
.case-main section > p.strong { color: var(--text); }
.case-main section > h3 { margin-top: 2rem; }
.case-main section > h3:first-of-type { margin-top: 0; }
.case-main section > p + p { margin-top: .75rem; }
.case-main section > h3 + p { margin-top: .5rem; }
.case-main section > .list { margin-top: .9rem; }
.case-main section > p + .list, .case-main section > .list + p { margin-top: .9rem; }
ol.list { list-style: decimal; padding-left: 1.4rem; }
ol.list li { padding-left: .35rem; }
ol.list li::before { display: none; }
.prose { max-width: 40rem; }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--muted); }
.prose p.strong, .prose .strong { color: var(--text); }

.shot {
  margin-block: 0 clamp(2.5rem, 5vw, 3.75rem);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img { width: 100%; height: auto; }
.shot.is-empty { display: grid; place-items: center; min-height: 18rem; padding: 2rem; text-align: center; }
.shot.is-empty img { display: none; }
.shot.is-empty::after {
  content: attr(data-hint);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .82rem;
  max-width: 28rem;
}

.persona { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding-block: 1.5rem; display: grid; gap: .4rem; max-width: 40rem; }
.persona h3 { font-family: var(--serif); font-weight: 420; font-size: 1.5rem; letter-spacing: -.01em; }
.persona .who { color: var(--text); font-size: .98rem; }
.persona p:last-child { color: var(--muted); margin-top: .35rem; }

.defs { display: grid; max-width: 44rem; }
.defs > div { padding-block: 1.1rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: .5rem 1.5rem; }
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 600; }
.defs dd { color: var(--muted); }
.list { display: grid; gap: .7rem; max-width: 40rem; }
.list li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 0; top: .72em; width: .6rem; height: 1px; background: var(--verified); }

.flows { display: grid; gap: 1.75rem; }
.flow h3 { margin-bottom: .75rem; }
.flow ol { display: flex; flex-wrap: wrap; gap: .5rem 0; }
.flow li {
  position: relative;
  padding: .4rem .9rem;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-size: .94rem;
  margin-right: 1.25rem;
  background: var(--ink-2);
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 1.25rem;
  height: 1px;
  background: var(--line-2);
}

.test { max-width: 44rem; }
.test > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .35rem 1.5rem; padding-block: 1.1rem; border-top: 1px solid var(--line-2); }
.test > div:last-child { border-bottom: 1px solid var(--line-2); }
.test dt { font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.test dt i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--pending); flex: none; }
.test > div:last-child dt i { background: var(--verified); }
.test dd { color: var(--muted); }
.test dd strong { color: var(--text); font-weight: 600; }
.test-tasks { max-width: 44rem; margin-bottom: 1.5rem; }

.pull { max-width: 40rem; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.3; letter-spacing: -.01em; color: var(--text); padding-left: 1.25rem; border-left: 2px solid var(--verified); }

.pager { border-top: 1px solid var(--line); }
.pager .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.pager a { display: block; padding-block: 2.25rem; text-decoration: none; }
.pager a:last-child { text-align: right; }
.pager small { display: block; color: var(--muted); font-size: .92rem; margin-bottom: .35rem; }
.pager strong { font-family: var(--serif); font-weight: 380; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.015em; transition: color .2s ease; }
.pager a:hover strong { color: var(--verified); }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; align-content: center; padding-block: 4rem; }
.lost h1 { font-family: var(--serif); font-weight: 350; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: -.02em; }
.lost p { color: var(--muted); margin: 1rem 0 2rem; max-width: 30rem; }

/* ---------- Responsive ---------- */

@media (max-width: 64rem) {
  .case-layout { grid-template-columns: minmax(0, 1fr); }
  .tracker { display: none; }
  .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
}

@media (max-width: 56rem) {
  .hero-copy { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero h1 { max-width: 16ch; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  :root { --header-h: 3.75rem; }
  body { font-size: 1.025rem; }
  .site-nav a:not(.btn) { display: none; }
  .approach { grid-template-columns: minmax(0, 1fr); }
  .more-cols { grid-template-columns: minmax(0, 1fr); }
  .defs > div, .test > div { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .pager .wrap { grid-template-columns: minmax(0, 1fr); }
  .pager a:last-child { text-align: left; border-top: 1px solid var(--line); }
  .tabs { width: 100%; }
  .tab { flex: 1; }
  .flow ol { flex-direction: column; align-items: flex-start; gap: 0; }
  .flow li { margin-right: 0; margin-bottom: 1.1rem; }
  .flow li:not(:last-child)::after { left: 1.2rem; top: 100%; width: 1px; height: 1.1rem; }
  .flow li:last-child { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ==========================================================================
   Drag strips, hero ribbon, drag cursor
   ========================================================================== */

main { overflow-x: clip; }

.strip {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  transition: opacity .7s ease;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-ready { opacity: 1; }
.strip:focus-visible { outline: 2px solid var(--verified); outline-offset: -2px; border-radius: 0; }

.strip-track {
  display: flex;
  gap: clamp(.75rem, 1.6vw, 1.25rem);
  width: max-content;
  margin: 0;
  padding-block: 0;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.strip[data-loop] .strip-track { padding-inline: 0; }

.tile {
  flex: none;
  height: var(--tile-h);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
}
.tile img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
}
.projects .strip { --tile-h: clamp(14rem, 30vw, 24rem); }
.ribbon .strip {
  --tile-h: clamp(15rem, 36vw, 30rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ribbon { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.ribbon-tools { display: flex; justify-content: flex-end; margin-top: .75rem; }
.ribbon-toggle {
  background: none;
  border: 0;
  padding: .5rem 0;
  color: var(--muted);
  font-size: .92rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}
.ribbon-toggle:hover { color: var(--text); text-decoration-color: var(--text); }

/* position indicator under each project strip */
.strip-bar {
  position: relative;
  height: 2px;
  width: min(calc(100% - var(--gutter) * 2), var(--wrap));
  margin: 1.1rem auto 0;
  background: var(--line-2);
  overflow: hidden;
}
.strip-bar i { display: block; height: 100%; background: var(--verified); will-change: transform; }

/* the cursor follower (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cursor.is-on { opacity: 1; }
.cursor-ring {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; border-radius: 50%;
  border: 1.5px solid #fff; background: rgba(255, 255, 255, .14); color: transparent; font-weight: 600; font-size: .95rem; white-space: nowrap;
  mix-blend-mode: difference; will-change: transform;
  transition: width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1), margin .35s cubic-bezier(.2, .8, .2, 1), background-color .25s, border-color .25s, color .2s;
}
.cursor-ring > * { opacity: 0; transition: opacity .2s; }
.cursor-dot { position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: opacity .2s; }
.cursor.is-link .cursor-ring { width: 4.25rem; height: 4.25rem; margin: -2.125rem 0 0 -2.125rem; background: #fff; }
.cursor.is-link .cursor-dot { opacity: 0; }
.cursor.is-drag .cursor-ring, .cursor.is-view .cursor-ring { width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; background: var(--verified); border-color: var(--verified); color: var(--ink); mix-blend-mode: normal; }
.cursor.is-drag .cursor-ring > *, .cursor.is-view .cursor-ring > * { opacity: 1; }
.cursor.is-drag .cursor-dot, .cursor.is-view .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { transform-origin: center; scale: .86; }
.cursor-ring svg { width: .5rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.has-cursor, .has-cursor * { cursor: none !important; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* contact: a ruled ledger of ways to reach me */
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.status { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.5rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--verified); }
.closing .status { margin-top: 0; color: var(--verified); max-width: none; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--verified); box-shadow: 0 0 0 0 rgba(143,211,176,.5); }
@media (prefers-reduced-motion: no-preference) { .status-dot { animation: status 2.4s ease-out infinite; } }
@keyframes status { 0% { box-shadow: 0 0 0 0 rgba(143,211,176,.5); } 70%, 100% { box-shadow: 0 0 0 .6rem rgba(143,211,176,0); } }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.ledger-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; align-items: baseline; gap: .25rem 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-2); }
.ledger-row[hidden] { display: none; }
.ledger-k { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ledger-v { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--text); text-decoration: none; overflow-wrap: anywhere; line-height: 1.25; }
.ledger-v:hover { text-decoration: underline; text-decoration-color: var(--verified); text-underline-offset: 5px; }
.ledger-act { font: inherit; font-family: var(--sans); font-size: .88rem; color: var(--muted); background: none; border: 1px solid var(--line-2); border-radius: 99px; padding: .3rem .85rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.ledger-act:hover, .ledger-act:focus-visible { color: var(--ink); background: var(--verified); border-color: var(--verified); }
.ledger-act.is-done { color: var(--ink); background: var(--verified); border-color: var(--verified); }
.hero-side .lede { margin-top: 0; }

@media (max-width: 56rem) {
  .project-head { grid-template-columns: minmax(0, 1fr); }
  .project-head .btn { justify-self: start; }
  .closing-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger-k { grid-column: 1 / -1; }
}
