/* ---------- sky + grain ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 100% 15%, var(--sky-glow) 0%, color-mix(in srgb, var(--sky-glow) 40%, transparent) 28%, transparent 60%),
    radial-gradient(80% 70% at 85% 95%, rgba(242, 217, 214, 0.45), transparent 65%),
    linear-gradient(118deg, var(--sky-deep) 0%, var(--sky) 32%, var(--sky-mid) 58%, var(--sky-soft) 82%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-soft);
}
.skip:focus { transform: none; }

/* ---------- the plush card ---------- */

.stage {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(40px, 8vh, 96px);
}

.plush {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  border-radius: var(--radius-plush);
  background:
    radial-gradient(130% 80% at 50% 0%, var(--ivory), var(--cream) 55%, var(--cream-2));
  box-shadow: var(--shadow-plush);
  padding-bottom: 8px;
}


/* ---------- crest ---------- */

.crest {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 24px);
  padding: clamp(34px, 5vw, 52px) clamp(28px, 5vw, 56px) 8px;
}

.avatar {
  flex: none;
  width: clamp(84px, 10vw, 112px);
  aspect-ratio: 1;
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
}

.crest h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  color: var(--navy);
  font-weight: 650;
}

.tagline {
  margin-top: 4px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.tagline i {
  font-style: normal;
  color: var(--gold);
  margin-inline: 4px;
}

/* ---------- nav pills ---------- */

.pills {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px clamp(28px, 5vw, 56px) 8px;
}

.pill {
  --pill-bg: var(--cream-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px 11px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(var(--ivory), var(--pill-bg));
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: var(--shadow-patch), 0 0 0 1.5px rgba(45, 46, 61, 0.55);
  transition: transform 0.35s var(--ease-squish), box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.pill svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(1px) scale(0.95); }

.pill[aria-current="page"] {
  background: linear-gradient(var(--navy-2), var(--navy));
  color: var(--gold-soft);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 10px 22px -10px rgba(30, 24, 45, 0.7), 0 0 0 1.5px var(--navy);
}

/* ---------- views ---------- */

.views {
  position: relative;
  padding: 26px clamp(28px, 5vw, 56px) 34px;
}

.view h2 {
  color: var(--navy);
  font-size: clamp(1.9rem, 2.6vw + 0.9rem, 2.9rem);
}
.view h2 em {
  font-style: italic;
  color: var(--gold-deep);
}

.hand-note {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.lead {
  font-size: 1.15rem;
  margin-block: 18px 14px;
  color: var(--ink);
}
.lead strong { color: var(--navy); font-weight: 800; }
.hello p:not([class]) { color: var(--ink-soft); max-width: 56ch; }

/* ---------- home ---------- */

.home-grid {
  max-width: 760px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.35s var(--ease-squish), box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  border: 1.5px dashed currentColor;
  opacity: 0.45;
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.96); }

.btn-navy {
  background: linear-gradient(var(--navy-2), var(--navy));
  color: var(--gold-soft);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 12px 24px -12px rgba(30, 24, 45, 0.8);
}
.btn-cloth {
  background: linear-gradient(var(--ivory), var(--cream-2));
  color: var(--navy);
  box-shadow: var(--shadow-patch), 0 0 0 1.5px rgba(45, 46, 61, 0.5);
}

/* ---------- patches ---------- */

.patches {
  list-style: none;
  margin: clamp(34px, 5vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.patch {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 20px 22px 22px;
  border-radius: var(--radius-patch);
  background: linear-gradient(160deg, var(--ivory), var(--cream-2));
  box-shadow: var(--shadow-patch), 0 0 0 1px rgba(45, 46, 61, 0.12);
  transition: transform 0.45s var(--ease-squish), box-shadow 0.3s ease;
}
.patch::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: calc(var(--radius-patch) - 6px);
  border: var(--stitch-soft);
  pointer-events: none;
}
.patch:nth-child(2) { background: linear-gradient(160deg, #fbf6fb, var(--lilac-soft)); }
.patch:nth-child(3) { background: linear-gradient(160deg, #fdf7f4, var(--rose-soft)); }
.patch:hover { transform: translateY(-4px); }

.patch-icon {
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--gold);
  font-size: 1.3rem;
}
.patch-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.patch-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  color: var(--navy);
  line-height: 1.25;
}
.patch-sub {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* ---------- hem ---------- */

.hem {
  padding: 8px clamp(28px, 5vw, 56px) 22px;
}

.buttons {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 3vw, 28px);
}

.round {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.round-face {
  --face: var(--navy-2);
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(color-mix(in srgb, var(--face) 85%, #fff), var(--face));
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 10px 18px -10px rgba(30, 24, 45, 0.8);
  transition: transform 0.4s var(--ease-squish);
}
.round-face::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 15px;
  border: 1.5px dashed rgba(255, 248, 230, 0.5);
}
.buttons li:nth-child(1) .round-face { --face: #7f7593; }
.buttons li:nth-child(2) .round-face { --face: var(--navy-2); }
.buttons li:nth-child(3) .round-face { --face: #7d93a8; }
.buttons li:nth-child(4) .round-face { --face: #b08a8e; }

.round:hover .round-face { transform: translateY(-4px) scale(1.04); }
.round:active .round-face { transform: scale(0.92); }

.round-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.signoff {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-faint);
}

/* ---------- small screens ---------- */

@media (max-width: 820px) {
  .patches { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .plush { border-radius: 24px; }
  .crest { padding-inline: 22px; }
  /* on phones the first screen is all sky; the card follows with room below */
  .stage { padding: 0 20px 26vh; padding: 0 20px 26svh; }
  .avatar { width: 78px; }
  .pills { padding-inline: 18px; gap: 8px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .pill { flex-direction: column; justify-content: center; gap: 3px; padding: 10px 4px 9px; border-radius: 18px; font-size: 0.9rem; }
  .pill-bead { border-radius: 18px; }
  .pill svg { width: 19px; height: 19px; }
  .views { padding-inline: 22px; }
  .hem { padding-inline: 22px; }
}

/* ---------- sky canvas + bokeh ---------- */

.sky-canvas {
  position: absolute;
  inset: 0;
  display: block;
}

.bokeh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.bokeh span,
.bokeh i {
  position: absolute;
  display: block;
  animation: drift 18s ease-in-out infinite alternate;
}
.bokeh svg {
  width: 100%;
  height: 100%;
  fill: var(--gold-glow);
}
.bokeh span { filter: blur(14px); opacity: 0.55; }
.bokeh .b1 { right: -3vw; top: 52vh; width: 22vw; max-width: 300px; aspect-ratio: 1; rotate: 12deg; }
.bokeh .b2 { right: 18vw; top: -6vh; width: 12vw; max-width: 170px; aspect-ratio: 1; rotate: -14deg; opacity: 0.4; animation-duration: 24s; }
.bokeh .b3 { right: 8vw; top: 24vh; width: 8vw; max-width: 110px; aspect-ratio: 1; rotate: 30deg; opacity: 0.35; filter: blur(9px); animation-duration: 21s; }
.bokeh i {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 205, 0.7), rgba(255, 240, 205, 0) 70%);
  filter: blur(4px);
}
.bokeh .b4 { right: 30vw; top: 70vh; width: 70px; height: 70px; animation-duration: 15s; }
.bokeh .b5 { right: 3vw; top: 8vh; width: 120px; height: 120px; opacity: 0.6; animation-duration: 26s; }
.bokeh .b6 { left: 6vw; bottom: 6vh; width: 54px; height: 54px; opacity: 0.4; animation-duration: 19s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-18px, 14px, 0) scale(1.06); }
}

@media (max-width: 700px) {
  .bokeh .b2, .bokeh .b3, .bokeh .b4 { display: none; }
  .bokeh .b1 { width: 46vw; top: 70vh; }
}

/* ---------- switching views ---------- */

.views { transition: height 0.55s var(--ease-soft); }
.js .views { overflow: clip; overflow-clip-margin: 40px; }

.view {
  transition: opacity 0.26s ease, transform 0.26s ease, filter 0.26s ease;
}
.view.is-leaving {
  opacity: 0;
  transform: translateY(-10px) scale(0.99);
  filter: blur(6px);
}

.view [data-rise] {
  transition:
    opacity 0.6s ease calc(var(--i, 0) * 65ms),
    transform 0.8s var(--ease-soft) calc(var(--i, 0) * 65ms),
    filter 0.6s ease calc(var(--i, 0) * 65ms);
}
.view.is-entering [data-rise] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  transition: none;
}

/* ---------- the sliding bead under the active pill ---------- */

.pill-bead {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(var(--navy-2), var(--navy));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 12px 24px -10px rgba(30, 24, 45, 0.75);
  transition: transform 0.55s var(--ease-squish), width 0.45s var(--ease-soft);
  pointer-events: none;
}
.has-bead .pill { z-index: 1; }
.has-bead .pill[aria-current="page"] {
  background: transparent;
  box-shadow: none;
}

/* ---------- cursor trail ---------- */

.trail {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

/* ---------- projects ---------- */

.view-head { margin-bottom: 26px; }

.project {
  position: relative;
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: var(--radius-patch);
  background: linear-gradient(165deg, var(--ivory), var(--cream-2));
  box-shadow: var(--shadow-patch), 0 0 0 1px rgba(45, 46, 61, 0.12);
}
.project + .project { margin-top: 26px; }
.project::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius-patch) - 8px);
  border: var(--stitch-soft);
  pointer-events: none;
}
.project.feature {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(230, 222, 242, 0.85), transparent 60%),
    linear-gradient(165deg, var(--ivory), var(--cream-2));
}
.project.feature::after {
  content: "featured ✦";
  position: absolute;
  top: -13px;
  right: 26px;
  padding: 3px 14px 5px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.2;
  box-shadow: 0 0 0 1.5px var(--navy), 0 6px 12px -6px rgba(30, 24, 45, 0.6);
}

.project-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}
.project h3 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem);
  color: var(--navy);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 161, 90, 0.25);
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li,
.chip {
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1.5px rgba(45, 46, 61, 0.18);
}

.project-lede {
  margin-top: 16px;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* screenshot gallery */
.gallery {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.shot-main {
  position: relative;
  display: block;
  padding: 8px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: -2px 0 0 rgba(255, 120, 150, 0.25), 2px 0 0 rgba(110, 200, 255, 0.25), 0 20px 36px -20px rgba(30, 24, 45, 0.6);
  transition: transform 0.5s var(--ease-soft);
}
.shot-main:hover { transform: translateY(-3px); }
.shot-main img,
.shot-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 13px;
  background: var(--cream-2);
}
.shot-main img { transition: opacity 0.3s ease, filter 0.3s ease; }
.shot-main.is-swapping img { opacity: 0; filter: blur(6px); }

.shot-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.shot-thumb {
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  opacity: 0.62;
  box-shadow: 0 0 0 1.5px rgba(45, 46, 61, 0.12);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-squish), box-shadow 0.25s ease;
}
.shot-thumb img { border-radius: 9px; }
.shot-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.shot-thumb[aria-pressed="true"] {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--gold), 0 8px 16px -10px rgba(30, 24, 45, 0.6);
}

/* while a screenshot hasn't been added yet, its frame stays a soft empty slide */
.shot-missing {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent 50%),
    linear-gradient(135deg, var(--lilac-soft), var(--rose-soft));
  color: var(--ink-faint);
  font-size: 0.95rem;
}
.shot-thumb .shot-missing { border-radius: 9px; font-size: 0; }

.lightbox {
  max-width: min(1200px, 94vw);
  padding: 10px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(20, 16, 30, 0.7);
}
.lightbox::backdrop {
  background: rgba(40, 36, 52, 0.6);
  backdrop-filter: blur(6px);
}
.lightbox[open] { animation: pop 0.4s var(--ease-soft); }
.lightbox img { border-radius: 12px; max-height: 84vh; width: auto; margin: auto; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  cursor: pointer;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
}

/* how it came together */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  right: 18px;
  border-top: 2px dashed color-mix(in srgb, var(--gold) 60%, transparent);
}
.steps li {
  position: relative;
  counter-increment: step;
  padding-top: 48px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 5.5px var(--gold);
}
.steps h4,
.mini-head {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0;
}
.steps p {
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- mimi ---------- */

.mimi {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}
.gallery-single { margin-top: 0; }
.gallery-single .shot-main img {
  aspect-ratio: auto;
  object-fit: contain;
}
.mini-head { margin-top: 18px; }
.mini-head:first-child { margin-top: 4px; }
.mimi-text p { margin-top: 6px; color: var(--ink-soft); }
.mimi-text strong { color: var(--navy); }

.star-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.star-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}
.star-list li::before {
  content: "✦";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--gold);
}
.star-list b { color: var(--navy); }


@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .steps::before { display: none; }
  .mimi { grid-template-columns: 1fr; }
  .gallery-single { max-width: 420px; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .shot-thumbs { gap: 6px; }
  .project.feature::after { right: 16px; }
}

/* ---------- resume ---------- */

.resume-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.resume-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.resume-actions button.btn { border: 0; cursor: pointer; }

.paper-wrap {
  position: relative;
  max-width: 860px;
  margin: 20px auto 0;
}
/* laid out like the classic one-page latex template, in html */
.sheet {
  position: relative;
  padding: clamp(26px, 5vw, 54px) clamp(20px, 5.5vw, 60px) clamp(30px, 5vw, 56px);
  background: #fffefb;
  color: #1d1b22;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.93rem;
  line-height: 1.42;
  box-shadow: 0 1px 2px rgba(30, 24, 45, 0.12), 0 24px 50px -24px rgba(30, 24, 45, 0.55);
}
.sheet a { text-decoration: none; }
.sheet a:hover { text-decoration: underline; }
.sheet-head { text-align: center; }
.sheet-head h3 {
  font-size: clamp(1.8rem, 3vw + 0.6rem, 2.4rem);
  font-weight: 500;
  font-variant: small-caps;
  letter-spacing: 0.01em;
}
.sheet-contact {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 0;
  font-size: 0.86rem;
}
.sheet-contact > * + *::before {
  content: "|";
  margin-inline: 8px;
  color: #6b6772;
  text-decoration: none;
  display: inline-block;
}
.sheet-contact a { text-decoration: underline; text-decoration-color: #c3bfc9; text-underline-offset: 2px; }

.sheet section { margin-top: 16px; }
.sheet h4 {
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 500;
  font-variant: small-caps;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  border-bottom: 1px solid #1d1b22;
}
.sheet .item { margin-top: 8px; }
.sheet .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 16px;
}
.sheet .row b { font-weight: 650; }
.sheet .row > :last-child:not(:first-child) { margin-left: auto; text-align: right; white-space: nowrap; }
.sheet .row.sub { font-size: 0.88rem; }
.sheet .sep { margin-inline: 4px; color: #6b6772; }
.sheet .note { margin-top: 3px; }
.sheet .note b { font-weight: 650; }
.sheet ul {
  margin: 3px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 2px;
}
.sheet li::marker { content: "•  "; font-size: 0.8em; }

@media (max-width: 600px) {
  .sheet .row { flex-direction: column; }
  .sheet .row > :last-child:not(:first-child) { margin-left: 0; text-align: left; white-space: normal; }
  .sheet-contact { flex-direction: column; align-items: center; }
  .sheet-contact > * + *::before { display: none; }
  .sheet .row.sub i + i { font-size: 0.84rem; color: #4a4652; }
}

/* ---------- printing prints just the resume ---------- */

@media print {
  @page { margin: 0.45in; }
  body { background: #fff; }
  .sky, .grain, .trail, .crest, .pills, .hem, .view-head, .skip, .lightbox { display: none !important; }
  .stage { padding: 0; }
  .plush { box-shadow: none; background: none; max-width: none; }
  .views { padding: 0; height: auto !important; }
  .view { display: none !important; }
  #resume { display: block !important; opacity: 1 !important; filter: none !important; transform: none !important; }
  #resume [data-rise] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .paper-wrap { margin: 0; max-width: none; }
  .sheet { box-shadow: none; padding: 0; font-size: 10pt; }
  .sheet .row { flex-wrap: nowrap; }
  .sheet .row > * { white-space: nowrap; }
  .sheet .row > :first-child:not(:last-child) { white-space: normal; flex: 1; min-width: 0; }
  .sheet-contact { font-size: 8.6pt; flex-wrap: nowrap; white-space: nowrap; }
  .sheet-contact > * + *::before { margin-inline: 5px; }
}

/* ---------- square corners everywhere, except the nav pills,
   the social buttons and the resume download/print buttons ---------- */

*, *::before, *::after { border-radius: 0 !important; }

.pill, .pill-bead { border-radius: var(--radius-pill) !important; }
.round-face { border-radius: 20px !important; }
.round-face::after { border-radius: 15px !important; }
.resume-actions .btn { border-radius: 16px !important; }
.resume-actions .btn::after { border-radius: 12px !important; }

/* circles stay circles */
.avatar img, .kicker .dot, .steps li::before, .lightbox-close { border-radius: 50% !important; }

@media (max-width: 520px) {
  .pill, .pill-bead { border-radius: 18px !important; }
}

.pill:not(:has(svg)) { padding-left: 22px; }
@media (max-width: 520px) { .pill:not(:has(svg)) { padding-inline: 4px; } }

/* ---------- title screen: the sky and a name, before the card ---------- */

.sky-intro {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  height: 100vh;
  height: 100svh;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 24px 6vh;
  text-align: center;
  color: #fffaf0;
  will-change: opacity, transform;
}
.sky-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw + 1rem, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 28px rgba(30, 24, 45, 0.55), 0 0 2px rgba(30, 24, 45, 0.3);
  animation: sky-rise 1.2s var(--ease-soft) both;
}
.sky-tag {
  margin: 14px 0 0;
  font-size: clamp(0.82rem, 0.3vw + 0.75rem, 1rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 250, 240, 0.88);
  text-shadow: 0 1px 12px rgba(30, 24, 45, 0.6);
  animation: sky-rise 1.2s var(--ease-soft) 0.15s both;
}
.sky-tag i { font-style: normal; color: var(--gold-soft); margin-inline: 4px; }
.sky-line {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 250, 240, 0.92);
  text-shadow: 0 1px 14px rgba(30, 24, 45, 0.65);
  animation: sky-rise 1.2s var(--ease-soft) 0.3s both;
}
.sky-cue {
  position: absolute;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: rgba(255, 250, 240, 0.8);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: sky-rise 1s ease 0.6s both;
}
.sky-cue:hover { color: #fff; }
.sky-cue svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: sky-bob 2.2s ease-in-out 1.6s infinite;
}
@media (max-width: 520px) {
  .sky-intro { margin-inline: -20px; }
}

@keyframes sky-rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
}
@keyframes sky-bob {
  50% { transform: translateY(6px); }
}
