:root {
  --paper:#eff1f5; --paper-2:#f7f9fc; --ink:#10161f; --ink-2:#47566a; --ink-3:#7c8899;
  --rule:#c7ced9; --rule-soft:#dde2ea; --foil:#8a6a2f; --foil-lift:#a3803d;
  --foil-wash:rgba(138,106,47,.10); --grain:.055; --emboss:rgba(255,255,255,.85);
  --measure:33rem; --col:44rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:#0b1017; --paper-2:#121a24; --ink:#e9edf3; --ink-2:#a0acbc; --ink-3:#78859a;
    --rule:#26313f; --rule-soft:#1a232e; --foil:#d2ae5e; --foil-lift:#e6c477;
    --foil-wash:rgba(210,174,94,.13); --grain:.035; --emboss:rgba(255,255,255,.05);
  }
}
* { box-sizing:border-box; }
body {
  margin:0; background:var(--paper); color:var(--ink);
  font-family:"Jost",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:17px; font-weight:300; line-height:1.65; -webkit-font-smoothing:antialiased;
}
body::after {
  content:""; position:fixed; inset:0; pointer-events:none; z-index:9; opacity:var(--grain);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page {
  max-width:var(--col); margin:0 auto;
  padding:clamp(2.5rem,7vw,5rem) clamp(1.25rem,5vw,2.25rem) 4rem;
  display:flex; flex-direction:column; gap:clamp(3.25rem,7vw,5rem);
}
.card-rule { display:flex; flex-direction:column; gap:3px; }
.card-rule i { display:block; background:var(--rule); }
.card-rule i:first-child { height:2px; background:var(--foil); opacity:.55; }
.card-rule i:last-child { height:1px; }

/* ---- letterhead ---------------------------------------------------- */
.letterhead { display:flex; flex-direction:column; gap:1.4rem; }
.sig-block { display:flex; flex-direction:column; gap:.5rem; }
.signature {
  font-family:"Mrs Saint Delafield","Snell Roundhand",cursive;
  font-size:clamp(3.4rem,13.5vw,7rem); line-height:.95; color:var(--ink);
  padding:.12em .24em .22em; margin:0; font-weight:400; white-space:nowrap;
  text-shadow:0 1px 0 var(--emboss);
}
.signature.sm { font-size:clamp(2.6rem,9.5vw,4.5rem); }
.surname { display:inline-grid; vertical-align:baseline; }
.surname > span {
  grid-area:1/1; white-space:nowrap;
  padding:.06em .22em .14em; margin:-.06em -.22em -.14em;
}
.sig-rule {
  height:1px; transform-origin:left center;
  background:linear-gradient(90deg,var(--foil) 0%,var(--foil-lift) 45%,var(--rule) 100%);
}
.play .signature { clip-path:inset(0 100% 0 0); animation:write 1.5s cubic-bezier(.22,.68,.28,1) .3s forwards; }
.play .was { opacity:1; animation:lift .5s ease-in 2.35s forwards; }
.play .is { opacity:0; clip-path:inset(0 100% 0 0); animation:rewrite .95s cubic-bezier(.22,.68,.28,1) 2.62s forwards; }
.play .sig-rule { transform:scaleX(0); animation:draw-rule .9s cubic-bezier(.22,.68,.28,1) 1.85s forwards; }
.play .aftermath { opacity:0; animation:settle .85s ease-out 3.62s forwards; }
.was { opacity:0; } .is { opacity:1; }
@keyframes write { to { clip-path:inset(0 0 0 0); } }
@keyframes rewrite { from { opacity:1; clip-path:inset(0 100% 0 0); } to { opacity:1; clip-path:inset(0 0 0 0); } }
@keyframes lift { from { opacity:1; transform:none; } to { opacity:0; transform:translateY(-.16em) rotate(-.6deg); } }
@keyframes draw-rule { to { transform:scaleX(1); } }
@keyframes settle { from { opacity:0; transform:translateY(.4rem); } to { opacity:1; transform:none; } }

.aftermath { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.75rem 1.5rem; }
.formerly { font-size:.7rem; font-weight:500; letter-spacing:.22em; text-transform:uppercase; color:var(--ink-3); }
.replay {
  font:inherit; font-size:.7rem; font-weight:500; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-3); background:none; border:0; padding:.25rem 0; cursor:pointer;
  display:inline-flex; align-items:center; gap:.4rem; transition:color .2s ease;
}
.replay:hover { color:var(--foil); }
.note {
  font-family:"Bodoni Moda",Didot,Georgia,serif; font-size:1.0625rem; font-style:italic;
  line-height:1.6; color:var(--ink-2); max-width:var(--measure); margin:0; text-wrap:pretty;
}

/* ---- sections ------------------------------------------------------ */
section { display:flex; flex-direction:column; gap:1.4rem; }
.label {
  display:flex; align-items:center; gap:1rem; margin:0;
  font-size:.68rem; font-weight:500; letter-spacing:.26em; text-transform:uppercase; color:var(--ink-3);
}
.label::after { content:""; flex:1; height:1px; background:var(--rule); }
.bio-stack { display:flex; flex-direction:column; gap:1rem; }
.bio { font-size:1.125rem; font-weight:300; line-height:1.75; max-width:var(--measure); margin:0; text-wrap:pretty; }

/* ---- project index ------------------------------------------------- */
.index { display:flex; flex-direction:column; gap:1.75rem; }
.entry {
  display:flex; flex-direction:column; overflow:hidden;
  background:var(--paper-2); border:1px solid var(--rule-soft);
  text-decoration:none; color:inherit; position:relative;
  transition:border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.entry::before {
  content:""; position:absolute; left:-1px; top:-1px; bottom:-1px; width:2px; background:var(--foil);
  transform:scaleY(0); transform-origin:top center; transition:transform .35s cubic-bezier(.22,.68,.28,1);
  z-index:2;
}
a.entry:hover { border-color:var(--rule); transform:translateY(-2px); box-shadow:0 12px 28px -18px rgba(16,22,31,.5); }
a.entry:hover::before { transform:scaleY(1); }

/* Screenshot plate. The frame and its caption are drawn in CSS underneath the
   image, so a missing or still-loading shot degrades to a deliberate-looking
   blank rather than a broken-image glyph. */
.shot {
  position:relative; aspect-ratio:16/10; overflow:hidden; margin:0;
  background:linear-gradient(140deg,var(--foil-wash),transparent 55%),var(--paper);
  border-bottom:1px solid var(--rule-soft);
  display:flex; align-items:center; justify-content:center;
}
.shot img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:top center; display:block;
  opacity:0; transition:opacity .4s ease;
}
.shot img.ready { opacity:1; }
.shot figcaption {
  font-size:.62rem; font-weight:500; letter-spacing:.22em; text-transform:uppercase;
  color:var(--ink-3); padding:0 1rem; text-align:center;
}

.entry-body { display:flex; flex-direction:column; gap:.6rem; padding:1.75rem; }
.entry-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:.7rem; }
.entry-title {
  font-family:"Bodoni Moda",Didot,Georgia,serif; font-size:clamp(1.35rem,3.4vw,1.7rem);
  font-weight:500; margin:0; letter-spacing:.005em; transition:color .2s ease;
}
.entry-kind { font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-3); font-weight:500; }
.chip {
  margin-left:auto; font-size:.62rem; font-weight:500; letter-spacing:.18em; text-transform:uppercase;
  color:var(--foil); background:var(--foil-wash); padding:.3rem .6rem; white-space:nowrap;
}
.entry-desc { margin:0; color:var(--ink-2); max-width:var(--measure); font-size:.9875rem; font-weight:300; line-height:1.7; }
.entry-go {
  font-size:.68rem; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:var(--foil);
  display:inline-flex; align-items:center; gap:.45rem; margin-top:.2rem;
}
.entry-go .arrow { transition:transform .25s ease; }
a.entry:hover .entry-title { color:var(--foil); }
a.entry:hover .arrow { transform:translateX(4px); }

/* ---- links, contact, colophon -------------------------------------- */
.quiet-link {
  font-size:.68rem; font-weight:500; letter-spacing:.18em; text-transform:uppercase;
  color:var(--ink-3); text-decoration:none;
  display:inline-flex; align-items:center; gap:.45rem; transition:color .2s ease;
}
.quiet-link:hover { color:var(--foil); }
.quiet-link .arrow { transition:transform .25s ease; }
.quiet-link:hover .arrow { transform:translateX(4px); }
.quiet-link.back:hover .arrow { transform:translateX(-4px); }

.contact { display:flex; flex-wrap:wrap; gap:.75rem 2.5rem; }
.contact a {
  color:var(--ink); text-decoration:none; font-weight:400; font-size:1.0625rem;
  border-bottom:1px solid var(--foil-wash); padding-bottom:2px;
  transition:border-color .25s ease,color .25s ease;
}
.contact a:hover { color:var(--foil); border-bottom-color:var(--foil); }

.colophon { display:flex; flex-direction:column; align-items:center; gap:.9rem; padding-top:1rem; }
.mark { font-family:"Mrs Saint Delafield",cursive; font-size:2.5rem; line-height:1; color:var(--foil); opacity:.75; }
.colophon small { font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; color:var(--ink-3); }

a.entry:focus-visible, .contact a:focus-visible, .replay:focus-visible, .quiet-link:focus-visible {
  outline:2px solid var(--foil); outline-offset:4px;
}

@media (prefers-reduced-motion: reduce) {
  .play .signature { clip-path:none; animation:none; }
  .play .was { opacity:0; animation:none; }
  .play .is { opacity:1; clip-path:none; animation:none; }
  .play .sig-rule { transform:scaleX(1); animation:none; }
  .play .aftermath { opacity:1; animation:none; }
  .replay { display:none; }
  .entry, .entry::before, .entry-go .arrow, .entry-title, .contact a, .shot img, .quiet-link .arrow { transition:none; }
}
