:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #6b6b6b;
  --ink-3: #a3a3a3;
  --line: #e6e6e6;
  --pad: clamp(20px, 4.5vw, 72px);
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- Animation stage (right side) ---------- */
.stage {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 60vw;
  pointer-events: none;
  z-index: 0;
}
.stage canvas { display: block; width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
}
.intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40rem;
}

/* Name — the loudest thing on the page */
.name {
  font-size: clamp(3.5rem, 0.8rem + 5.6vw, 7.25rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-left: -0.05em;           /* optical alignment with the text below */
  font-feature-settings: "ss01", "cv11";
}
.name .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.name .line > span { display: block; }

.role {                            /* small serif eyebrow above the name */
  margin-bottom: clamp(0.9rem, 2vh, 1.25rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink-2);
}
.role .dot { font-style: normal; color: var(--ink-3); margin: 0 0.3em; }

/* Where he has worked / studied — a quiet monochrome logo row */
.places {
  margin-top: clamp(2.5rem, 6vh, 3.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.places-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.logos {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;               /* the +4 pill opens sideways, never wraps */
  gap: 0.9rem 2.5rem;
}
.logos li { display: flex; align-items: center; height: 26px; flex-shrink: 0; }
.logos img {
  display: block;
  height: var(--h, 22px);
  width: auto;
  max-width: 150px;
  /* logos are pre-flattened to one ink tone so brand colours never clash */
  opacity: 0.55;
  transition: opacity .4s ease;
}
.logos li:hover img { opacity: 1; }
.wordmark {                       /* shown until the logo file is added */
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  opacity: 0.42;
  transition: opacity .4s ease;
}
.logos li:hover .wordmark { opacity: 0.9; }

/* "+2" — the rest of the list, revealed on hover, links to the CV */
.logos-more a {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  position: relative; z-index: 2;
  color: var(--ink-2);
  transition: border-color .4s ease, color .4s ease, padding .6s cubic-bezier(.19,1,.22,1);
}
.more-count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.more-reveal {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns .7s cubic-bezier(.19,1,.22,1);
}
.more-reveal > span {
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  white-space: nowrap;
}
.more-reveal img, .more-reveal .wordmark {
  height: var(--h); width: auto;
  opacity: 0;
  transition: opacity .4s ease;
}
.more-reveal > span > :first-child { margin-left: 0.8rem; }
.wordmark-sm { height: auto !important; font-size: 1.1875rem; line-height: 1; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #000; }
.logos-more a:hover, .logos-more a:focus-visible { border-color: var(--ink-3); color: var(--ink); padding-right: 0.9rem; }
.logos-more a:hover .more-reveal, .logos-more a:focus-visible .more-reveal { grid-template-columns: 1fr; }
.logos-more a:hover .more-reveal img, .logos-more a:focus-visible .more-reveal img,
.logos-more a:hover .more-reveal .wordmark, .logos-more a:focus-visible .more-reveal .wordmark { opacity: .55; transition-delay: .15s; }

/* ---------- Menu ---------- */
.menu {
  margin-top: clamp(2.75rem, 7vh, 4.25rem);
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  width: min(21rem, 100%);
}
.menu a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1875rem;
  font-weight: 450;
  letter-spacing: -0.025em;
  position: relative;
}
.menu a::after {           /* ink line that draws in on hover */
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s cubic-bezier(.19,1,.22,1);
}
.menu .num {
  width: 1.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: color .3s;
}
.menu .label { transition: transform .5s cubic-bezier(.19,1,.22,1); }
.menu .arrow {
  margin-left: auto;
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .35s, transform .5s cubic-bezier(.19,1,.22,1);
}
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
.menu a:hover .num, .menu a:focus-visible .num { color: var(--ink); }
.menu a:hover .label, .menu a:focus-visible .label { transform: translateX(4px); }
.menu a:hover .arrow, .menu a:focus-visible .arrow { opacity: 1; transform: translateX(0); }
.menu a:focus-visible { outline: none; }

/* ---------- Load-in ---------- */
.name .line > span {
  transform: translateY(105%);
  animation: lineUp 1.2s cubic-bezier(.19,1,.22,1) forwards;
}
.name .line:nth-child(1) > span { animation-delay: .15s; }
.name .line:nth-child(2) > span { animation-delay: .25s; }
@keyframes lineUp { to { transform: none; } }

.role, .places, .menu a {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 1.1s cubic-bezier(.19,1,.22,1) forwards;
}
.role                { animation-delay: .05s; }
.places              { animation-delay: .55s; }
.menu a:nth-child(1) { animation-delay: .6s; }
.menu a:nth-child(2) { animation-delay: .68s; }
.menu a:nth-child(3) { animation-delay: .76s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Pattern card — frosted glass resting on the bottom edge ---------- */
.plabel {
  position: fixed;
  right: clamp(24px, 4vw, 64px);
  bottom: 0;
  z-index: 3;
  width: 20.5rem;                   /* one size for every pattern */
  padding: 1.1rem 1.4rem 1.2rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px -18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(0);
  transition: transform .7s cubic-bezier(.19,1,.22,1), box-shadow .7s ease, background-color .5s ease;
  opacity: 0;
  animation: fadeIn 1.4s ease 1s forwards;
}
.plabel:hover {
  transform: translateY(-14px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 -18px 60px -16px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.plabel:hover { border-bottom: 1px solid rgba(255,255,255,.7); border-radius: 18px; }
.plabel::after {                   /* keeps the hover zone steady while the card lifts */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px;
}
.plabel-head { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.plabel-date {
  position: absolute; bottom: 0; right: 0; line-height: 1.6;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
  transition: opacity .5s ease, filter .6s ease;
}
.plabel.is-changing .plabel-date { opacity: 0; filter: blur(4px); }
.plabel-name, .plabel-place, .plabel-story {
  transition: opacity .5s ease, filter .6s ease, transform .8s cubic-bezier(.19,1,.22,1);
}
.plabel-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.1;
  white-space: nowrap;
}
.plabel-place {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition-delay: .05s;
}
/* the story unfolds upward on hover */
.plabel-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .7s cubic-bezier(.19,1,.22,1);
}
.plabel-more > div { overflow: hidden; }
.plabel:hover .plabel-more { grid-template-rows: 1fr; }
.plabel-story {
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  height: calc(0.85rem + 4.8em);     /* same height for every story (3 lines) */
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #2b2b2b;
  opacity: 0;
  transform: translateY(8px);
}
.plabel:hover .plabel-story { opacity: 1; transform: none; transition-delay: .12s; }
.plabel.is-changing .plabel-name,
.plabel.is-changing .plabel-place,
.plabel.is-changing .plabel-story { opacity: 0; filter: blur(4px); transform: translateY(6px); }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Custom cursor ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor {
  position: fixed; left: 0; top: 0;
  z-index: 100;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s;
}
.cursor.is-visible { opacity: 1; }
.cursor span {
  position: absolute; left: 0; top: 0;
  width: 10px; height: 10px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  transition: width .5s cubic-bezier(.19,1,.22,1), height .5s cubic-bezier(.19,1,.22,1),
              border-radius .5s cubic-bezier(.19,1,.22,1), transform .5s cubic-bezier(.19,1,.22,1),
              background-color .3s;
}
.cursor.is-link span { width: 44px; height: 44px; }   /* over links the dot swells and inverts the text */
.cursor.is-down span { transform: translate(-50%, -50%) scale(.8); }
/* over the CV the dot folds into a small ink diamond carrying a download arrow */
.cursor-dl { position: absolute; left: 0; top: 0; width: 20px; height: 20px; transform: translate(-50%, -50%) translateY(-4px); opacity: 0;
  fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .25s ease, transform .5s cubic-bezier(.19,1,.22,1); }
.cursor.is-dl { mix-blend-mode: normal; }
.cursor.is-dl span { width: 46px; height: 46px; border-radius: 12px; border-color: #111; background: #111;
  transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 10px 26px -10px rgba(0,0,0,.45); }
.cursor.is-dl .cursor-dl { opacity: 1; transform: translate(-50%, -50%); transition-delay: .08s; }
.cursor.is-dl.is-down span { transform: translate(-50%, -50%) rotate(45deg) scale(.86); }
.cursor.is-dl.is-down .cursor-dl { transform: translate(-50%, -50%) translateY(2px); }
/* over a link that leaves the site, the dot becomes a small ink diamond with an outward arrow, set just off the pointer so the tile stays visible */
.cursor-ext { position: absolute; left: 0; top: 0; width: 18px; height: 18px; opacity: 0;
  fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transform: translate(-50%, -50%) translate(22px, 22px) translate(-3px, 3px);
  transition: opacity .25s ease, transform .5s cubic-bezier(.19,1,.22,1); }
.cursor.is-ext { mix-blend-mode: normal; }
.cursor.is-ext span { width: 34px; height: 34px; border-radius: 9px; border-color: #111; background: #111;
  transform: translate(-50%, -50%) translate(22px, 22px) rotate(45deg); box-shadow: 0 8px 22px -8px rgba(0,0,0,.45); }
.cursor.is-ext .cursor-ext { opacity: 1; transform: translate(-50%, -50%) translate(22px, 22px); transition-delay: .08s; }
.cursor.is-ext.is-down span { transform: translate(-50%, -50%) translate(22px, 22px) rotate(45deg) scale(.86); }
.cursor.is-ext.is-down .cursor-ext { transform: translate(-50%, -50%) translate(24px, 20px); }

/* ---------- Page transition veil ---------- */
.veil {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 90;
  pointer-events: none;
  display: none;
}
.veil.is-on { display: block; pointer-events: auto; background: transparent; }
.next-page {                       /* the destination, uncovered behind the wave */
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  border: 0;
  z-index: 89;
  background: var(--bg);
  pointer-events: none;
}
/* arriving after the wave: skip the load-in so the page matches what the wave revealed */
html.is-arriving .name .line > span, html.is-arriving .role, html.is-arriving .menu a,
html.is-arriving .stub > *, html.is-arriving .back { animation: none !important; opacity: 1 !important; transform: none !important; }

/* ---------- Mobile: animation behind, faded ---------- */
@media (max-width: 820px) {
  .stage { width: 100vw; opacity: 0.5; }
  .stage::after {            /* keep the text zone clean, pattern lives up top */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, #fff 0%, #fff 48%, rgba(255,255,255,0.6) 64%, rgba(255,255,255,0) 86%);
  }
  .hero { align-items: flex-end; padding-bottom: 16vh; }
  .plabel { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .name .line > span, .role, .places, .menu a, .plabel { animation: none; opacity: 1; transform: none; }
}

/* ---------- Placeholder sub-pages (until each page is designed) ---------- */
.subpage .back {
  position: fixed; top: 32px; left: var(--pad);
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em;
  display: inline-flex; gap: 0.5rem;
}
.stub {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
}
.stub-num { font-size: 0.75rem; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.stub h1 { margin-top: 0.75rem; font-size: clamp(3.5rem, 1rem + 5.6vw, 7.25rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.9; }
.stub p { margin-top: 1.25rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.375rem, 1rem + 0.8vw, 1.875rem); color: var(--ink-2); }

/* ---------- Affiliations — a quiet signature at the foot of the left column ---------- */
.affil {
  position: fixed;
  left: var(--pad);
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  opacity: 0;
  animation: fadeIn 1.4s ease .9s forwards;
}
.affil img { display: block; height: var(--h); width: auto; opacity: .38; transition: opacity .4s ease; }
.affil img:hover { opacity: .85; }
.affil-rule { width: 1px; height: 14px; background: var(--line); }
@media (max-width: 820px) { .affil { bottom: 20px; left: 16px; } }

.blank { min-height: 100vh; min-height: 100svh; background: var(--bg); }
.next-sheet .back { position: absolute; top: 32px; left: var(--pad); font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em; display: inline-flex; gap: 0.5rem; }
html.sheet-open .cursor { display: none; }   /* the sheet has its own cursor */

/* ---------- Dock — four tiles stacked down the left edge: Home, Projects, CV, About ---------- */
.dock {
  position: fixed;
  left: var(--pad);                   /* same column as the contact tile and the home page text */
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  animation: fadeIn 1.2s ease .2s both;
}
.dock a {
  position: relative;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: color .3s ease;
}
.dock a::before {                  /* the tile: a rounded diamond of frosted glass */
  content: ""; position: absolute;
  width: 40px; height: 40px;
  border-radius: 9px;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.dock svg { position: relative; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dock a:hover, .dock a:focus-visible { color: var(--ink); outline: none; }
.dock a:hover::before, .dock a:focus-visible::before { background: rgba(255, 255, 255, 0.85); }
.dock a[aria-current="page"] { color: #fff; }
.dock a[aria-current="page"]::before { background: var(--ink); border-color: var(--ink); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.45); }
.dock-tip {
  position: absolute; left: calc(100% + 14px); top: 50%;
  transform: translate(-4px, -50%);
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .25s ease, transform .4s cubic-bezier(.19,1,.22,1);
}
.dock a:hover .dock-tip, .dock a:focus-visible .dock-tip { opacity: 1; transform: translate(0, -50%); }
.dock-tip { left: calc(100% + 8px); }
@media (max-width: 860px) {
  .dock { top: auto; bottom: 16px; left: 50%; transform: translateX(-50%); flex-direction: row; }
  .dock-tip { display: none; }
}

/* ---------- Contact tile — top left on every page ---------- */
.contact {
  all: unset;
  position: fixed;
  left: var(--pad);                   /* the diamond's left point sits on the home page's text edge */
  top: calc(24px + env(safe-area-inset-top, 0px));
  z-index: 40;                       /* same layer as the page tiles: the transition passes over it */
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .3s ease;
  animation: fadeIn 1.2s ease .2s both;
}
.contact::before {
  content: ""; position: absolute;
  width: 40px; height: 40px;
  border-radius: 9px;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background-color .3s ease;
}
.contact svg { position: relative; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact:hover, .contact:focus-visible { color: var(--ink); }
.contact:hover::before, .contact:focus-visible::before { background: rgba(255, 255, 255, 0.85); }
.contact.is-copied { color: #fff; }
.contact.is-copied::before { background: var(--ink); }
.contact-tip {
  position: absolute; left: calc(100% + 8px); top: 50%;
  transform: translate(-4px, -50%);
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink);
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .25s ease, transform .4s cubic-bezier(.19,1,.22,1);
}
.contact:hover .contact-tip, .contact:focus-visible .contact-tip, .contact.is-copied .contact-tip { opacity: 1; transform: translate(0, -50%); }
.contact-done { display: none; }
.contact.is-copied .contact-mail { display: none; }
.contact.is-copied .contact-done { display: inline; }
/* LinkedIn takes the first place on the page edge; the email tile sits one diamond to its right */
.contact:not(.contact--li) { left: calc(var(--pad) + 62px); }
.contact--li { text-decoration: none; }
@media (max-width: 860px) { .contact { left: 12px; top: 12px; } .contact:not(.contact--li) { left: 74px; } }

/* ---------- Tiles stretch sideways on hover: left point stays, the right point travels ---------- */
@property --w { syntax: '<length>'; inherits: true; initial-value: 56px; }
.dock a, .contact { --w: 56px; transition: --w .55s cubic-bezier(.19,1,.22,1), color .3s ease; }
.dock a:hover, .dock a:focus-visible, .contact:hover, .contact:focus-visible, .contact.is-copied { --w: var(--wo, 56px); }
.dock a::before, .contact::before { content: none; }
.ts { position: absolute; left: 0; top: 0; width: 56px; height: 56px; pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.10)) drop-shadow(0 0 .6px rgba(0,0,0,.28)); }
.ts i { position: absolute; display: block; background: var(--tile, #fff); transition: background-color .3s ease; }
.ts .l, .ts .r { left: 8px; top: 8px; width: 40px; height: 40px; border-radius: 9px; transform: rotate(45deg); }
.ts .r { transform: translateX(calc(var(--w) - 56px)) rotate(45deg); }
.ts .m { left: 28px; top: calc(28px - 24.55px); height: 49.1px; width: calc(var(--w) - 56px); }
.dock a:hover, .dock a:focus-visible, .contact:hover, .contact:focus-visible { --tile: #fff; }
.dock a[aria-current="page"], .contact.is-copied { --tile: var(--ink); color: #fff; }
.dock svg, .contact svg { position: absolute; left: 19px; top: 19px; z-index: 1; }
.dock-tip, .contact-tip {
  left: 50px; top: 50%; z-index: 1;
  transform: translate(-6px, -50%);
  padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  color: inherit;
  transition: opacity .2s ease, transform .45s cubic-bezier(.19,1,.22,1);
}
.dock a:hover .dock-tip, .dock a:focus-visible .dock-tip,
.contact:hover .contact-tip, .contact:focus-visible .contact-tip, .contact.is-copied .contact-tip {
  opacity: 1; transform: translate(0, -50%); transition-delay: .12s;
}
.dock a { z-index: 1; }
.dock a:hover, .dock a:focus-visible { z-index: 2; }
/* page-tile labels: clean sans; the email keeps the italic serif */
.dock-tip { font-family: var(--font); font-style: normal; font-size: 0.875rem; font-weight: 500; letter-spacing: -0.01em; }
