:root {
  --paper: #fbf7e9;
  --paper-deep: #f2ecd7;
  --ink: #1f2933;
  --muted: #5f6670;
  --line: rgba(62, 105, 164, 0.24);
  --margin: rgba(209, 65, 65, 0.34);
  --pencil: #48515c;
  --blue-ink: #1f5d8f;
  --green-ink: #3c7452;
  --red-ink: #9f3c3c;
  --shadow: rgba(38, 32, 20, 0.18);
  --shadow-soft: rgba(38, 32, 20, 0.09);
  --graphite: rgba(31, 41, 51, 0.19);
  --hand-font: "Patrick Hand", "Ubuntu", "Ubuntu Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  --pencil-font: "Patrick Hand", "Ubuntu", "Ubuntu Sans", "Noto Sans", "DejaVu Sans", sans-serif;
  --pencil-dark: #27313a;
  --pencil-soft: #59616a;
  --grid-cell: 44px;
  --grid-half: calc(var(--grid-cell) / 2);
  --hole-x: 44px;
  --hole-radius: 16px;
  --margin-line-x: 92px;
  --content-x: calc(var(--grid-cell) * 3);
  --card-grid: 38px;
  --card-half: calc(var(--card-grid) / 2);
  --card-margin-line-x: 76px;
  --card-content-x: calc(var(--card-margin-line-x) + 26px);
  --body-pad: clamp(1.1rem, 3.2vw, 2.65rem);
  --paper-left-pad: max(var(--body-pad), var(--content-x));
  --card-left-pad: max(clamp(1rem, 2.2vw, 1.35rem), var(--card-content-x));
  --sheet-gap: clamp(2.3rem, 5.5vw, 4.75rem);
  --sidebar-width: clamp(9.5rem, 14vw, 13rem);
  --controls-width: clamp(4.8rem, 7vw, 6.25rem);
  --page-width: min(1120px, 100%);
  --cover-width: min(1290px, calc(100% + 7.4rem));
  --cover-left-bias: clamp(1.4rem, 3vw, 2.8rem);
  --rung-length: calc((var(--cover-width) - var(--page-width)) / 2 + var(--cover-left-bias) + var(--hole-x) + 7px);
  --page-rung-start: calc(var(--hole-x) - 3px);
  --page-rung-length: 58px;
  --page-top-pad: calc(var(--grid-cell) * 2);
  --page-bottom-pad: var(--grid-cell);
  --radius: 8px;
}

@font-face {
  font-family: "Patrick Hand";
  src: url("assets/Merriweather,Patrick_Hand/Patrick_Hand/PatrickHand-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: #b27b42;
  overflow: hidden;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-family: var(--hand-font);
  background: transparent;
  min-height: 100vh;
  overflow: hidden;
  touch-action: none;
}

body::before {
  content: "";
  position: fixed;
  inset: -55vh 0;
  z-index: 0;
  pointer-events: none;
  background:
    url("assets/desk-background-tall.png") center center / cover no-repeat,
    #b27b42;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 13%, rgba(255, 245, 218, 0.24), transparent 24rem),
    linear-gradient(135deg, rgba(255, 238, 195, 0.16) 0 18%, transparent 48%, rgba(39, 21, 8, 0.22) 100%),
    radial-gradient(ellipse at center, rgba(255, 244, 219, 0.06), rgba(38, 24, 10, 0.15)),
    radial-gradient(ellipse at center, transparent 42%, rgba(18, 10, 3, 0.34) 100%);
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

code {
  padding: 0.1rem 0.3rem;
  border: 1px solid rgba(72, 81, 92, 0.35);
  background: rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  top: clamp(0.85rem, 2vw, 1.35rem);
  left: 0;
  width: var(--sidebar-width);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 3vh, 1.55rem);
  padding: clamp(1rem, 2.5vw, 1.35rem) 0.85rem;
  max-height: calc(100vh - 2rem);
  border-right: 2px solid rgba(72, 81, 92, 0.48);
  border-bottom: 0;
  background: rgba(251, 247, 233, 0.88);
  backdrop-filter: blur(10px);
  box-shadow:
    10px 14px 22px -22px rgba(31, 17, 6, 0.5),
    18px 0 28px -24px rgba(0, 0, 0, 0.5);
}

main {
  position: fixed;
  inset: clamp(0.9rem, 2.5vh, 1.5rem) calc(var(--controls-width) + clamp(1.4rem, 3vw, 2.4rem))
    clamp(0.9rem, 2.5vh, 1.5rem) calc(var(--sidebar-width) + clamp(1rem, 2.4vw, 2rem));
  z-index: 2;
  display: grid;
  place-items: center;
  perspective: 1800px;
  pointer-events: none;
}

main::before {
  content: "";
  position: absolute;
  left: calc(50% - var(--cover-left-bias));
  top: 50%;
  width: var(--cover-width);
  height: calc(100% + clamp(0.75rem, 1.8vw, 1.25rem));
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 14%, rgba(255, 232, 178, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(52, 29, 12, 0.46) 0 8.2%, rgba(33, 18, 8, 0.26) 8.4% 10.4%, transparent 11.2%),
    radial-gradient(ellipse at 78% 92%, rgba(45, 24, 8, 0.2), transparent 32rem),
    url("assets/notebook-cover-3d-leather.png") center center / cover no-repeat,
    linear-gradient(135deg, #8b4c21, #5c2f14 100%);
  border: 2px solid rgba(59, 31, 12, 0.78);
  border-radius: 18px;
  box-shadow:
    0 3px 5px rgba(31, 18, 6, 0.32),
    0 18px 24px -18px rgba(20, 11, 4, 0.68),
    9px 11px 0 rgba(31, 21, 10, 0.14),
    inset 0 0 46px rgba(255, 225, 170, 0.065),
    inset 20px 0 42px rgba(38, 18, 6, 0.24),
    inset 0 0 0 4px rgba(255, 220, 155, 0.055);
  transform: translate(-50%, -50%) rotateX(0.16deg) rotateZ(-0.18deg);
}

main::after {
  content: "";
  position: absolute;
  left: calc(50% - var(--cover-left-bias));
  top: 50%;
  width: var(--cover-width);
  height: 100%;
  z-index: 140;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(58, 63, 64, 0.02) 0 2%, rgba(238, 239, 232, 0.92) 18%, rgba(74, 79, 80, 0.82) 48%, rgba(238, 239, 232, 0.86) 74%, rgba(50, 55, 56, 0.2)) 0 20% / var(--rung-length) 10px no-repeat,
    linear-gradient(90deg, rgba(58, 63, 64, 0.02) 0 2%, rgba(238, 239, 232, 0.92) 18%, rgba(74, 79, 80, 0.82) 48%, rgba(238, 239, 232, 0.86) 74%, rgba(50, 55, 56, 0.2)) 0 50% / var(--rung-length) 10px no-repeat,
    linear-gradient(90deg, rgba(58, 63, 64, 0.02) 0 2%, rgba(238, 239, 232, 0.92) 18%, rgba(74, 79, 80, 0.82) 48%, rgba(238, 239, 232, 0.86) 74%, rgba(50, 55, 56, 0.2)) 0 80% / var(--rung-length) 10px no-repeat;
  border-radius: 11px;
  filter: drop-shadow(2px 3px 2px rgba(19, 15, 10, 0.24));
  transform: translate(-50%, -50%) rotateX(0.16deg) rotateZ(-0.18deg);
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-width: 0;
  text-align: center;
}

.brand-initials {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 rgba(31, 41, 51, 0.18);
  transform: rotate(-4deg);
  font-weight: 700;
}

.brand-initials img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
}

.nav-links,
.tag-row,
.inline-list,
.button,
.card-actions a,
.disabled-link,
code {
  font-family: "Courier New", Courier, monospace;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0.55rem;
  font-size: 0.94rem;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(72, 81, 92, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22rem;
}

.nav-links a[aria-current] {
  color: var(--blue-ink);
  text-decoration-style: wavy;
}

.section-band {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: var(--page-width);
  height: 100%;
  max-height: 100%;
  margin: auto;
  padding: var(--page-top-pad) var(--body-pad) var(--page-bottom-pad) var(--paper-left-pad);
  color: var(--pencil-dark);
  font-family: var(--pencil-font);
  font-size: 1.08rem;
  font-style: normal;
  font-variant-ligatures: none;
  text-shadow:
    0.35px 0.28px 0 rgba(31, 41, 51, 0.075),
    -0.18px 0.1px 0 rgba(31, 41, 51, 0.04);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  line-height: var(--grid-half);
  background:
    radial-gradient(circle at var(--hole-x) 20%, rgba(42, 43, 40, 0.38) 0 9px, rgba(255, 255, 255, 0.52) 10px var(--hole-radius), transparent calc(var(--hole-radius) + 1px)),
    radial-gradient(circle at var(--hole-x) 50%, rgba(42, 43, 40, 0.38) 0 9px, rgba(255, 255, 255, 0.52) 10px var(--hole-radius), transparent calc(var(--hole-radius) + 1px)),
    radial-gradient(circle at var(--hole-x) 80%, rgba(42, 43, 40, 0.38) 0 9px, rgba(255, 255, 255, 0.52) 10px var(--hole-radius), transparent calc(var(--hole-radius) + 1px)),
    linear-gradient(90deg, rgba(235, 236, 230, 0.72), rgba(87, 92, 93, 0.42) 48%, rgba(235, 236, 230, 0.32)) var(--page-rung-start) 20% / var(--page-rung-length) 9px no-repeat,
    linear-gradient(90deg, rgba(235, 236, 230, 0.72), rgba(87, 92, 93, 0.42) 48%, rgba(235, 236, 230, 0.32)) var(--page-rung-start) 50% / var(--page-rung-length) 9px no-repeat,
    linear-gradient(90deg, rgba(235, 236, 230, 0.72), rgba(87, 92, 93, 0.42) 48%, rgba(235, 236, 230, 0.32)) var(--page-rung-start) 80% / var(--page-rung-length) 9px no-repeat,
    linear-gradient(90deg, transparent 0 var(--margin-line-x), var(--margin) var(--margin-line-x) calc(var(--margin-line-x) + 2px), transparent calc(var(--margin-line-x) + 2px)),
    radial-gradient(ellipse 78% 58% at 24% 10%, rgba(255, 255, 255, 0.42), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%, rgba(94, 64, 26, 0.08) 100%),
    radial-gradient(ellipse 70% 48% at 84% 94%, rgba(78, 58, 24, 0.09), transparent 66%),
    linear-gradient(rgba(62, 105, 164, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 105, 164, 0.13) 1px, transparent 1px),
    rgba(251, 247, 233, 0.98);
  background-size:
    auto,
    auto,
    auto,
    var(--page-rung-length) 9px,
    var(--page-rung-length) 9px,
    var(--page-rung-length) 9px,
    auto,
    auto,
    auto,
    auto,
    var(--grid-cell) var(--grid-cell),
    var(--grid-cell) var(--grid-cell),
    auto;
  border: 1px solid rgba(83, 62, 35, 0.38);
  border-radius: 6px;
  box-shadow:
    0 2px 2px rgba(48, 28, 9, 0.18),
    0 8px 10px -8px rgba(45, 26, 8, 0.48),
    5px 7px 0 rgba(64, 42, 18, 0.055),
    inset 9px 10px 42px rgba(255, 255, 255, 0.16),
    inset -18px -20px 58px rgba(78, 55, 25, 0.09),
    inset 0 0 76px rgba(79, 55, 22, 0.055);
  opacity: 0;
  transform-origin: 0 58%;
  scrollbar-width: none;
  will-change: transform, opacity, clip-path;
  transform: rotateX(0.18deg) rotateZ(-0.12deg) scale(0.985);
  backface-visibility: visible;
  --curl-opacity: 0;
  --curl-transform: rotate(0deg) scale(0.12);
  --face-opacity: 1;
  --turn-shadow-opacity: 0;
}

.section-band::-webkit-scrollbar {
  display: none;
}

.hero-section {
  margin: auto;
}

.section-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--hole-x) 20%, rgba(37, 28, 18, 0.2) 0 11px, rgba(37, 28, 18, 0.1) 12px 18px, transparent 24px),
    radial-gradient(circle at var(--hole-x) 50%, rgba(37, 28, 18, 0.2) 0 11px, rgba(37, 28, 18, 0.1) 12px 18px, transparent 24px),
    radial-gradient(circle at var(--hole-x) 80%, rgba(37, 28, 18, 0.2) 0 11px, rgba(37, 28, 18, 0.1) 12px 18px, transparent 24px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 24%, rgba(74, 49, 18, 0.075) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(72, 48, 18, 0.105) 100%),
    linear-gradient(90deg, rgba(79, 55, 22, 0.08), transparent 5%, transparent 94%, rgba(58, 40, 16, 0.09)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 9%, transparent 90%, rgba(58, 40, 16, 0.1)),
    repeating-linear-gradient(104deg, transparent 0 13px, rgba(31, 41, 51, 0.012) 14px 15px),
    repeating-radial-gradient(circle at 26% 18%, rgba(31, 41, 51, 0.016) 0 1px, transparent 1px 8px),
    radial-gradient(ellipse 44% 26% at 16% 78%, rgba(31, 41, 51, 0.026), transparent 70%),
    radial-gradient(ellipse 38% 24% at 88% 18%, rgba(31, 41, 51, 0.022), transparent 72%);
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.section-band > * {
  position: relative;
  z-index: 1;
  opacity: var(--face-opacity);
  transition: opacity 80ms linear;
}

.section-band .section-heading::before,
.about-layout::before,
.resume-layout::before,
.demo-shelf::before,
.project-grid::before {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.38;
}

.section-band .section-heading::before {
  left: -1.15rem;
  top: 0.2rem;
  width: 0.72rem;
  height: 74%;
  border-left: 2px solid rgba(39, 49, 58, 0.48);
  border-top: 2px solid rgba(39, 49, 58, 0.36);
  border-bottom: 2px solid rgba(39, 49, 58, 0.28);
  transform: rotate(-1.2deg);
}

.about-layout::before,
.resume-layout::before {
  right: 1.25rem;
  top: -0.2rem;
  width: 3rem;
  height: 3rem;
  border: 2px solid rgba(39, 49, 58, 0.36);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.demo-shelf::before,
.project-grid::before {
  right: 0.3rem;
  top: -1.1rem;
  width: 4.2rem;
  height: 1.2rem;
  border-top: 2px solid rgba(39, 49, 58, 0.34);
  border-bottom: 2px solid rgba(39, 49, 58, 0.2);
  transform: rotate(1.6deg);
}

.section-band::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: min(30vw, 250px);
  height: min(36vh, 245px);
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(230, 220, 190, 0.66) 52%, rgba(105, 75, 39, 0.24)),
    linear-gradient(45deg, rgba(38, 25, 10, 0.18), transparent 42%),
    linear-gradient(rgba(62, 105, 164, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 105, 164, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  border-left: 1px solid rgba(83, 62, 35, 0.18);
  border-top: 1px solid rgba(83, 62, 35, 0.14);
  border-radius: 74% 0 6px 0;
  box-shadow:
    -22px -22px 34px rgb(38 32 20 / calc(var(--turn-shadow-opacity) * 0.24)),
    -9px -8px 14px rgb(38 32 20 / calc(var(--turn-shadow-opacity) * 0.18)),
    inset 12px 0 18px rgba(255, 255, 255, 0.18),
    inset -14px -12px 18px rgba(78, 55, 25, 0.14);
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
  opacity: var(--curl-opacity);
  transform-origin: 100% 100%;
  transform: var(--curl-transform);
  filter: drop-shadow(-12px -10px 14px rgb(38 32 20 / calc(var(--turn-shadow-opacity) * 0.28)));
}

.sheet,
.note-card,
.project-card,
.demo-card,
.timeline-card,
.skills-card,
.contact-sheet {
  border: 2px solid rgba(72, 81, 92, 0.76);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 0 var(--card-margin-line-x), rgba(209, 65, 65, 0.18) var(--card-margin-line-x) calc(var(--card-margin-line-x) + 2px), transparent calc(var(--card-margin-line-x) + 2px)),
    linear-gradient(rgba(62, 105, 164, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 105, 164, 0.1) 1px, transparent 1px),
    var(--paper);
  background-size: auto, var(--card-grid) var(--card-grid), var(--card-grid) var(--card-grid), auto;
  box-shadow:
    0 9px 13px -11px rgba(38, 32, 20, 0.42),
    4px 5px 0 rgba(38, 32, 20, 0.1),
    inset 0 0 42px rgba(72, 81, 92, 0.035);
}

.hero-sheet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: var(--grid-half);
  padding: 0;
  overflow: hidden;
}

.hero-sheet::before,
.hero-sheet::after,
.project-card::after,
.demo-card::after,
.timeline-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.42;
}

.hero-sheet::before {
  right: 10%;
  bottom: 14%;
  width: 155px;
  height: 28px;
  background: radial-gradient(ellipse, rgba(31, 41, 51, 0.13), transparent 68%);
  transform: rotate(-8deg);
  filter: blur(2px);
}

.hero-sheet::after {
  right: 5.5%;
  top: 13%;
  width: 72px;
  height: 72px;
  border: 2px dashed rgba(31, 93, 143, 0.34);
  border-radius: 50%;
  transform: rotate(11deg);
}

.eyebrow {
  margin: 0 0 var(--grid-half);
  color: var(--blue-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.15rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-band h1,
.section-band h2,
.section-band h3,
.section-band h4 {
  color: var(--pencil-dark);
  font-family: var(--pencil-font);
  font-weight: 600;
  text-shadow:
    0.5px 0.35px 0 rgba(31, 41, 51, 0.08),
    -0.22px 0.08px 0 rgba(31, 41, 51, 0.045);
}

.section-band p,
.section-band li,
.section-band dd,
.section-band dt,
.section-band strong,
.section-band a,
.section-band span,
.section-band code,
.section-band button {
  font-family: var(--pencil-font);
}

.section-band p,
.section-band li,
.section-band dd {
  color: var(--pencil-soft);
  font-weight: 400;
}

.section-band h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.28rem;
}

.section-band h2::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: -0.12em;
  bottom: 0;
  height: 2px;
  background:
    linear-gradient(90deg, rgba(39, 49, 58, 0.68), rgba(39, 49, 58, 0.18)),
    repeating-linear-gradient(90deg, rgba(39, 49, 58, 0.26) 0 8px, transparent 8px 12px);
  transform: rotate(-0.45deg);
}

.section-band h3 {
  position: relative;
}

.note-card h3::before,
.project-card h3::before,
.demo-card h3::before,
.timeline-card h3::before,
.skills-card h3::before {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-right: 0.42em;
  border: 2px solid rgba(39, 49, 58, 0.62);
  border-radius: 3px;
  transform: rotate(-4deg) translateY(0.06em);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.22);
}

.mark-line,
.mark-circle,
.mark-highlight {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.mark-line::after {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.08em;
  bottom: 0.02em;
  z-index: -1;
  height: 0.16em;
  border-radius: 999px;
  background: rgba(31, 93, 143, 0.25);
  transform: scaleX(0) rotate(-1deg);
  transform-origin: left center;
  animation: drawUnderline 1.1s 0.45s ease-out forwards;
}

.mark-line.ink-blue::after {
  background:
    linear-gradient(90deg, transparent, rgba(31, 93, 143, 0.32), rgba(31, 93, 143, 0.2)),
    repeating-linear-gradient(90deg, rgba(31, 93, 143, 0.12) 0 7px, rgba(31, 93, 143, 0.24) 8px 11px);
}

.mark-circle::after {
  content: none;
}

.mark-highlight::after {
  content: none;
}

@keyframes drawUnderline {
  to {
    transform: scaleX(1) rotate(-1deg);
  }
}

@keyframes circlePop {
  to {
    opacity: 1;
    transform: scale(1) rotate(-3deg);
  }
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.1;
}

h4 {
  margin: 0 0 0.35rem;
  color: var(--green-ink);
}

.lede {
  max-width: 720px;
  margin: var(--grid-half) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--grid-half) / 2);
  margin-top: var(--grid-half);
}

.button,
.card-actions a,
.disabled-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 3px 3px 0 rgba(31, 41, 51, 0.16);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--ink);
}

.hero-actions .button {
  min-height: 38px;
  padding: 0.5rem 0.72rem;
  font-size: 0.88rem;
}

.section-band .button,
.section-band .card-actions a,
.section-band .disabled-link {
  color: var(--pencil-dark);
  font-family: var(--pencil-font);
  font-weight: 600;
  text-shadow: 0.35px 0.25px 0 rgba(31, 41, 51, 0.08);
}

.section-band .button.primary {
  color: var(--paper);
}

.hero-card {
  align-self: center;
  position: relative;
  padding: var(--grid-half);
  border: 2px solid var(--pencil);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(1.2deg);
}

.overview-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--grid-half) / 2);
  margin-top: var(--grid-half);
}

.hero-photo-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--grid-half) / 1.25);
  margin-top: calc(var(--grid-half) / 1.35);
  align-items: start;
}

.hero-photo-strip .photo-frame {
  min-height: clamp(174px, 24vh, 230px);
}

.mini-note {
  position: relative;
  display: grid;
  gap: calc(var(--grid-half) / 3);
  min-height: calc(var(--grid-cell) * 1.45);
  padding: calc(var(--grid-half) / 2) var(--grid-half);
  border: 1px solid rgba(72, 81, 92, 0.3);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 46%),
    #fff0a8;
  box-shadow:
    0 10px 14px -14px rgba(38, 32, 20, 0.48),
    3px 4px 0 rgba(38, 32, 20, 0.08);
  transform: rotate(-0.45deg);
}

.mini-note:nth-child(2) {
  transform: rotate(0.35deg);
}

.mini-note:nth-child(3) {
  transform: rotate(-0.15deg);
}

.mini-note strong {
  color: var(--red-ink);
  font-size: 1rem;
}

.mini-note span {
  color: #4d4f44;
  line-height: 1.25;
}

.pencil-label {
  position: absolute;
  top: -0.8rem;
  left: 1rem;
  padding: 0 0.35rem;
  background: var(--paper);
  color: var(--red-ink);
  font-weight: 700;
}

.snapshot-list {
  margin: 0;
}

.snapshot-list div {
  padding: calc(var(--grid-half) / 2) 0;
  border-bottom: 1px dashed rgba(72, 81, 92, 0.42);
}

.snapshot-list div:last-child {
  border-bottom: 0;
}

.snapshot-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.snapshot-list dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.section-heading {
  max-width: 780px;
  margin-bottom: var(--grid-half);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.with-rule {
  position: relative;
  padding-bottom: var(--grid-half);
}

.with-rule::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(360px, 100%);
  border-bottom: 3px solid rgba(31, 41, 51, 0.64);
  transform: rotate(-0.6deg);
}

.achievement-grid,
.project-grid,
.demo-shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-half);
}

.note-card,
.project-card,
.demo-card,
.timeline-card,
.skills-card,
.contact-sheet {
  padding: var(--card-half) var(--card-half) var(--card-half) var(--card-left-pad);
}

.note-card:nth-child(2) {
  transform: rotate(-0.7deg);
}

.note-card:nth-child(3) {
  transform: rotate(0.8deg);
}

.card-number {
  display: inline-block;
  margin-bottom: var(--card-half);
  color: var(--red-ink);
  font-size: 1.8rem;
  font-weight: 700;
}

.note-card p,
.project-card p,
.demo-card p,
.timeline-card p,
.skills-card p,
.about-copy p,
.contact-sheet p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

.project-grid {
  align-items: stretch;
}

#projects.section-band {
  padding-top: var(--grid-half);
  padding-bottom: calc(var(--grid-half) * 1.5);
}

#projects .section-heading {
  margin-bottom: calc(var(--grid-half) / 1.6);
}

#projects h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.72rem);
}

#projects .section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin-block: calc(var(--grid-half) / 3) 0;
  line-height: 1.18;
}

#projects .project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--grid-half) / 1.35);
}

.project-card {
  display: grid;
  gap: var(--card-half);
}

.project-card.featured {
  grid-column: span 2;
  grid-template-columns: minmax(180px, 0.46fr) minmax(0, 1fr);
}

#projects .project-card {
  gap: calc(var(--card-half) / 2);
  padding-top: calc(var(--card-half) / 1.45);
  padding-bottom: calc(var(--card-half) / 1.45);
}

#projects .project-card:not(.featured) {
  grid-template-columns: minmax(104px, 0.3fr) minmax(0, 1fr);
}

#projects .project-card h3 {
  margin-bottom: calc(var(--card-half) / 2);
  font-size: clamp(1.04rem, 1.72vw, 1.28rem);
}

#projects .project-card p {
  margin-block: 0;
  font-size: 0.91rem;
  line-height: 1.15;
}

#projects .project-card .tag-row {
  margin-bottom: calc(var(--card-half) / 2);
}

#projects .inline-list {
  margin-top: calc(var(--card-half) / 3);
}

#projects .button,
#projects .card-actions a {
  min-height: 34px;
  padding: 0.42rem 0.68rem;
}

.sketch-window,
.demo-preview,
.portrait-frame {
  position: relative;
  min-height: 210px;
  border: 2px solid var(--pencil);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 93, 143, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.photo-frame {
  position: relative;
  margin: 0;
  overflow: visible;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  --photo-origin-x: 50%;
  --photo-origin-y: 50%;
  --photo-rotation: -0.55deg;
  --photo-shift-x: 0px;
  --photo-shift-y: 0px;
  --photo-pan-x: 0px;
  --photo-pan-y: 0px;
  --photo-scale: 1;
  border: 2px solid rgba(72, 81, 92, 0.72);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(235, 226, 203, 0.5)),
    var(--paper);
  box-shadow:
    0 13px 17px -15px rgba(38, 32, 20, 0.62),
    4px 5px 0 rgba(38, 32, 20, 0.12);
  transform:
    translate(
      calc(var(--photo-shift-x) + var(--photo-pan-x)),
      calc(var(--photo-shift-y) + var(--photo-pan-y))
    )
    rotate(var(--photo-rotation))
    scale(var(--photo-scale));
  transform-origin: var(--photo-origin-x) var(--photo-origin-y);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    filter 170ms ease;
}

.photo-frame:nth-child(even) {
  --photo-rotation: 0.45deg;
}

.photo-frame:hover {
  --photo-scale: 1.82;
  --photo-pan-x: var(--photo-hover-x, 0px);
  --photo-pan-y: var(--photo-hover-y, 0px);
  z-index: 70;
  box-shadow:
    0 24px 28px -18px rgba(38, 32, 20, 0.7),
    8px 9px 0 rgba(38, 32, 20, 0.14);
  filter: saturate(1.03);
  transition-delay: 520ms;
}

.photo-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 6px solid rgba(255, 255, 255, 0.68);
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
  background: rgba(255, 255, 255, 0.34);
  filter: saturate(0.94) contrast(1.02);
}

.taped-photo::before,
.taped-photo::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: clamp(52px, 22%, 88px);
  height: 20px;
  pointer-events: none;
  border: 1px solid rgba(117, 101, 66, 0.18);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 42%, rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(90deg, rgba(139, 124, 86, 0.16) 0 1px, transparent 1px 7px),
    rgba(229, 210, 150, 0.48);
  box-shadow: 0 2px 4px rgba(38, 32, 20, 0.12);
  mix-blend-mode: multiply;
}

.taped-photo::before {
  top: -10px;
  left: 12%;
  transform: rotate(-5deg);
}

.taped-photo::after {
  right: 10%;
  bottom: -9px;
  transform: rotate(4deg);
}

.hero-photo-strip .photo-frame img {
  aspect-ratio: auto;
}

.hero-photo-strip .photo-frame {
  aspect-ratio: 16 / 7.5;
}

.project-media,
.demo-preview.photo-frame {
  aspect-ratio: 16 / 8.6;
}

#projects .project-card:not(.featured) .project-media {
  aspect-ratio: 1 / 1;
}

#projects .project-card:nth-child(2) .project-media img {
  object-position: center top;
}

#projects .project-card:nth-child(3) .project-media img {
  object-position: center;
}

#projects .project-card {
  overflow: visible;
}

#projects .project-media {
  z-index: 4;
  width: calc(100% + 76px);
  justify-self: start;
}

#projects .project-card.featured .project-media {
  --photo-rotation: -2.6deg;
  --photo-shift-x: -126px;
  --photo-shift-y: -12px;
}

#projects .project-card:not(.featured) .project-media {
  --photo-shift-x: -122px;
  --photo-shift-y: 18px;
  width: calc(100% + 84px);
}

#projects .project-card:nth-child(2) .project-media {
  --photo-rotation: -4.2deg;
}

#projects .project-card:nth-child(3) .project-media {
  --photo-rotation: 3.4deg;
}

#projects .project-card .project-content {
  position: relative;
  z-index: 2;
  padding-left: calc(var(--grid-half) / 1.2);
}

#projects .project-card.featured .project-content {
  padding-left: 0;
}

.sketch-window.small {
  min-height: 150px;
}

#projects .sketch-window {
  min-height: calc(var(--grid-cell) * 3);
}

#projects .sketch-window.small {
  min-height: calc(var(--grid-cell) * 3);
}

.sketch-toolbar,
.sketch-line,
.sketch-graph,
.sketch-grid,
.sketch-cards,
.control-lines,
.portrait-lines {
  position: absolute;
  display: block;
}

.sketch-toolbar {
  left: 14px;
  right: 14px;
  top: 16px;
  height: 18px;
  border-bottom: 2px solid var(--pencil);
}

.sketch-graph {
  left: 22px;
  right: 28px;
  bottom: 35px;
  height: 74px;
  border-left: 2px solid var(--green-ink);
  border-bottom: 2px solid var(--green-ink);
}

.sketch-graph::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 12px;
  top: 8px;
  height: 44px;
  border-top: 3px solid var(--blue-ink);
  border-right: 3px solid var(--blue-ink);
  transform: skew(-20deg) rotate(-7deg);
}

.sketch-line.one {
  left: 30px;
  top: 58px;
  width: 58%;
  border-top: 2px solid var(--pencil);
  transform: rotate(-1deg);
}

.sketch-line.two {
  left: 30px;
  top: 84px;
  width: 42%;
  border-top: 2px solid var(--pencil);
  transform: rotate(1deg);
}

.sketch-grid {
  inset: 22px;
  background:
    linear-gradient(var(--pencil), var(--pencil)) 0 0 / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(72, 81, 92, 0.4) 37px 39px),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(72, 81, 92, 0.4) 29px 31px);
}

.sketch-cards {
  inset: 24px;
}

.sketch-cards::before,
.sketch-cards::after {
  content: "";
  position: absolute;
  width: 45%;
  height: 62%;
  border: 2px solid var(--pencil);
  border-radius: 7px;
}

.sketch-cards::before {
  left: 0;
  top: 8px;
  transform: rotate(-5deg);
}

.sketch-cards::after {
  right: 0;
  top: 24px;
  transform: rotate(4deg);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}

.tag-row span,
.inline-list li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(72, 81, 92, 0.42);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--green-ink);
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(-0.35deg);
}

.section-band .tag-row span,
.section-band .inline-list li,
.section-band code,
.section-band .eyebrow,
.section-band .timeline-date,
.section-band .card-number {
  font-family: var(--pencil-font);
  font-weight: 600;
  text-shadow:
    0.35px 0.25px 0 rgba(31, 41, 51, 0.07),
    -0.2px 0.05px 0 rgba(31, 41, 51, 0.04);
}

.section-band .tag-row span:nth-child(even),
.section-band .inline-list li:nth-child(even) {
  transform: rotate(0.4deg);
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--grid-half) / 2);
  padding: 0;
  margin: var(--grid-half) 0 0;
  list-style: none;
}

.unity-section {
  position: relative;
  padding-top: calc(var(--grid-half) * 3);
  padding-bottom: calc(var(--grid-half) * 2);
}

.demo-card {
  display: grid;
  gap: var(--card-half);
}

.demo-preview {
  display: grid;
  place-items: center;
  min-height: calc(var(--grid-cell) * 4);
}

.unity-section .section-heading {
  margin-bottom: var(--grid-half);
}

.unity-section .demo-preview {
  min-height: calc(var(--grid-cell) * 3);
}

.unity-section .demo-preview.photo-frame {
  min-height: 0;
}

.unity-section .demo-card p {
  font-size: 0.98rem;
  line-height: 1.28;
}

.unity-section .demo-shelf {
  overflow: visible;
  gap: calc(var(--grid-half) / 1.15);
}

.unity-section .demo-card {
  overflow: visible;
  padding-top: calc(var(--card-half) / 1.45);
  gap: calc(var(--card-half) / 2);
}

.unity-section .demo-card > div {
  position: relative;
  z-index: 2;
}

.unity-section .demo-preview.photo-frame {
  z-index: 4;
  width: calc(100% + 58px);
  max-width: none;
  justify-self: center;
  margin-bottom: calc(var(--grid-half) / 2);
  aspect-ratio: 16 / 7.5;
}

.unity-section .demo-card:nth-child(1) .demo-preview {
  --photo-rotation: -3.2deg;
  --photo-shift-x: -28px;
  --photo-shift-y: -10px;
}

.unity-section .demo-card:nth-child(2) .demo-preview {
  --photo-rotation: 2.8deg;
  --photo-shift-x: -2px;
  --photo-shift-y: -16px;
}

.unity-section .demo-card:nth-child(3) .demo-preview {
  --photo-rotation: -1.9deg;
  --photo-shift-x: 12px;
  --photo-shift-y: -12px;
}

.unity-section .tag-row {
  margin-bottom: calc(var(--card-half) / 2);
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 28px solid transparent;
  border-bottom: 28px solid transparent;
  border-left: 46px solid var(--ink);
  filter: drop-shadow(4px 3px 0 rgba(31, 41, 51, 0.18));
}

.control-lines {
  left: 20px;
  right: 20px;
  bottom: 22px;
  height: 20px;
  border-top: 2px solid rgba(72, 81, 92, 0.58);
  border-bottom: 2px solid rgba(72, 81, 92, 0.58);
}

.demo-preview.secondary .play-triangle {
  border-left-color: var(--blue-ink);
}

.demo-preview.tertiary .play-triangle {
  border-left-color: var(--green-ink);
}

.disabled-link {
  width: fit-content;
  margin-top: calc(var(--grid-half) / 2);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.resume-layout,
.about-layout,
.about-contact-layout,
.contact-sheet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: var(--grid-half);
  align-items: start;
}

.timeline-list {
  padding: 0;
  margin: var(--grid-half) 0 0;
  list-style: none;
}

.timeline-list li {
  position: relative;
  padding: 0 0 var(--grid-half) var(--grid-half);
  border-left: 2px solid rgba(72, 81, 92, 0.54);
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.timeline-date {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--red-ink);
  font-weight: 700;
}

.skill-groups {
  display: grid;
  gap: var(--grid-half);
  margin: var(--grid-half) 0;
}

.resume-button {
  width: fit-content;
}

.about-layout {
  align-items: center;
}

.about-contact-section {
  padding-top: var(--grid-cell);
  padding-bottom: var(--grid-half);
}

.about-contact-layout {
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1fr);
  align-items: start;
  row-gap: var(--grid-half);
}

.about-contact-layout .portrait-frame {
  min-height: calc(var(--grid-cell) * 5);
}

.about-contact-layout .portrait-head {
  top: 36px;
  width: 72px;
  height: 72px;
}

.about-contact-layout .portrait-body {
  top: 124px;
  width: 140px;
  height: 78px;
}

.about-contact-section .about-copy h2 {
  font-size: clamp(1.8rem, 3.35vw, 3rem);
}

.about-contact-section .about-copy p {
  line-height: 1.35;
}

.portrait-frame {
  min-height: calc(var(--grid-cell) * 7);
  background:
    repeating-linear-gradient(135deg, rgba(72, 81, 92, 0.08) 0 8px, transparent 8px 18px),
    rgba(255, 255, 255, 0.3);
  transform: rotate(-1deg);
}

.portrait-photo {
  min-height: calc(var(--grid-cell) * 7.6);
  aspect-ratio: 9 / 10.5;
  width: min(100%, 420px);
  justify-self: start;
  align-self: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(235, 226, 203, 0.5)),
    var(--paper);
}

.portrait-photo img {
  object-position: center 18%;
}

.portrait-head,
.portrait-body {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--pencil);
}

.portrait-head {
  top: 52px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

.portrait-body {
  top: 165px;
  width: 170px;
  height: 106px;
  border-radius: 70px 70px 12px 12px;
}

.portrait-lines {
  left: 26px;
  right: 26px;
  bottom: 24px;
  height: 24px;
  border-top: 2px solid var(--blue-ink);
  border-bottom: 2px solid var(--blue-ink);
}

.about-copy {
  padding-left: var(--grid-half);
}

.contact-sheet {
  align-items: center;
}

.compact-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  column-gap: var(--grid-half);
  row-gap: calc(var(--grid-half) / 2);
  grid-column: 1 / -1;
  align-items: start;
}

.compact-contact .eyebrow,
.compact-contact h2,
.compact-contact p:not(.eyebrow) {
  grid-column: 1;
}

.compact-contact h2 {
  font-size: clamp(1.35rem, 2.45vw, 2rem);
}

.compact-contact p:not(.eyebrow) {
  max-width: 600px;
  margin-bottom: 0;
  line-height: 1.4;
}

.compact-contact .social-list {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin-top: 0;
  align-self: stretch;
}

.social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--grid-half) / 2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-list a {
  display: flex;
  align-items: center;
  min-height: calc(var(--grid-half) * 1.6);
  padding: calc(var(--grid-half) / 3) var(--grid-half);
  border: 2px solid rgba(72, 81, 92, 0.76);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 3px 3px 0 rgba(31, 41, 51, 0.14);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  position: fixed;
  left: calc(var(--sidebar-width) + 1rem);
  right: calc(var(--controls-width) + 1.5rem);
  bottom: 0.75rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  pointer-events: none;
}

.site-footer p {
  max-width: min(420px, 34vw);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-footer a {
  font-weight: 700;
  pointer-events: auto;
}

.page-controls {
  position: fixed;
  right: clamp(0.45rem, 1.3vw, 0.9rem);
  top: 50%;
  z-index: 1100;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem;
  border: 2px solid rgba(72, 81, 92, 0.6);
  border-radius: 8px;
  background: rgba(251, 247, 233, 0.88);
  box-shadow:
    5px 9px 15px -12px rgba(31, 17, 6, 0.52),
    0 14px 20px -18px rgba(0, 0, 0, 0.58);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.page-control {
  min-width: 62px;
  min-height: 34px;
  border: 2px solid rgba(72, 81, 92, 0.72);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(31, 41, 51, 0.12);
  font: 700 0.85rem "Courier New", Courier, monospace;
  cursor: pointer;
}

.page-control:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.page-status {
  min-width: 54px;
  color: var(--muted);
  font: 700 0.86rem "Courier New", Courier, monospace;
  text-align: center;
}

.margin-doodles {
  position: fixed;
  top: 140px;
  height: min(1080px, calc(100% - 180px));
  z-index: 1;
  width: clamp(44px, 7vw, 96px);
  pointer-events: none;
  color: rgba(31, 41, 51, 0.29);
}

.left-doodles {
  left: calc(var(--sidebar-width) + 0.45rem);
}

.right-doodles {
  right: 0.65rem;
}

.doodle {
  position: absolute;
  display: block;
}

.doodle::before,
.doodle::after {
  content: "";
  position: absolute;
  display: block;
}

.doodle.iso-stack {
  top: 9%;
  left: 12px;
  width: 64px;
  height: 64px;
  background:
    linear-gradient(30deg, transparent 46%, currentColor 47% 50%, transparent 51%),
    linear-gradient(150deg, transparent 46%, currentColor 47% 50%, transparent 51%),
    linear-gradient(90deg, transparent 46%, currentColor 47% 50%, transparent 51%),
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(31, 41, 51, 0.17) 13px 14px),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(31, 41, 51, 0.17) 13px 14px);
  border: 2px solid currentColor;
  transform: rotate(-12deg) skewY(-8deg);
}

.doodle.iso-stack::before {
  inset: 10px;
  border: 2px solid currentColor;
  transform: translate(8px, -8px);
}

.doodle.iso-stack::after {
  inset: 20px 3px 5px 20px;
  background: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 5px);
  opacity: 0.55;
}

.doodle.formula {
  top: 37%;
  left: 0;
  max-width: 82px;
  font-size: 0.76rem;
  line-height: 1.1;
  transform: rotate(-8deg);
}

.doodle.formula.small {
  top: 42%;
  right: 2px;
  left: auto;
  max-width: 78px;
  transform: rotate(8deg);
}

.doodle.impossible-corner {
  left: 24px;
  bottom: 17%;
  width: 62px;
  height: 62px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(6deg);
}

.doodle.impossible-corner::before {
  left: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.doodle.impossible-corner::after {
  left: 22px;
  bottom: 22px;
  width: 26px;
  height: 26px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  background: repeating-linear-gradient(90deg, rgba(31, 41, 51, 0.2) 0 1px, transparent 1px 5px);
}

.doodle.cube-grid {
  top: 15%;
  right: 6px;
  width: 66px;
  height: 66px;
  border: 2px solid currentColor;
  background:
    repeating-linear-gradient(0deg, transparent 0 10px, rgba(31, 41, 51, 0.18) 11px 12px),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(31, 41, 51, 0.18) 11px 12px);
  transform: skewY(-12deg) rotate(7deg);
}

.doodle.cube-grid::before {
  inset: -13px 9px 12px -11px;
  border: 2px solid currentColor;
  background: repeating-linear-gradient(135deg, rgba(31, 41, 51, 0.24) 0 1px, transparent 1px 6px);
}

.doodle.cube-grid::after {
  inset: -13px 9px 12px -11px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(12px, 12px);
}

.doodle.rigid-graph {
  right: 6px;
  bottom: 14%;
  width: 68px;
  height: 54px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background:
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(31, 41, 51, 0.15) 9px 10px),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(31, 41, 51, 0.15) 9px 10px);
}

.doodle.rigid-graph::before {
  left: 9px;
  right: 5px;
  bottom: 10px;
  height: 28px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: skew(-23deg) rotate(-8deg);
}

.doodle.rigid-graph::after {
  right: 12px;
  top: 8px;
  width: 18px;
  height: 34px;
  border: 2px solid currentColor;
  transform: skewY(28deg);
  background: repeating-linear-gradient(135deg, currentColor 0 1px, transparent 1px 5px);
  opacity: 0.5;
}

.sticky-note-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-half);
  padding-top: 0;
}

.sticky-note {
  position: relative;
  display: grid;
  gap: calc(var(--grid-half) / 2);
  min-height: calc(var(--grid-cell) * 4);
  padding: var(--grid-half);
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 46%),
    #fff0a8;
  box-shadow:
    0 19px 24px -20px rgba(38, 32, 20, 0.62),
    5px 6px 0 rgba(38, 32, 20, 0.12);
  font: inherit;
  text-align: left;
  transform: rotate(-1.1deg);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sticky-note:nth-child(2) {
  transform: rotate(0.9deg);
}

.sticky-note:nth-child(3) {
  transform: rotate(-0.25deg);
}

.sticky-note:hover,
.sticky-note.is-lifted {
  box-shadow:
    0 26px 34px -22px rgba(38, 32, 20, 0.66),
    8px 9px 0 rgba(38, 32, 20, 0.12);
  transform: translateY(-4px) rotate(0deg);
}

.sticky-note strong {
  color: var(--red-ink);
  font-size: 1.05rem;
}

.sticky-note span:last-child {
  color: #4d4f44;
  line-height: 1.45;
}

.blue-note {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 46%),
    #d9ecff;
}

.green-note {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 46%),
    #dff2cc;
}

.sticky-pin {
  position: absolute;
  top: 10px;
  right: 18px;
  width: 34px;
  height: 14px;
  border: 2px solid rgba(72, 81, 92, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(9deg);
}

.note-card,
.project-card,
.demo-card,
.timeline-card,
.skills-card,
.contact-sheet {
  position: relative;
}

.has-paperclip::before {
  content: "";
  position: absolute;
  top: -18px;
  right: 24px;
  z-index: 2;
  width: 24px;
  height: 58px;
  border: 3px solid rgba(72, 81, 92, 0.76);
  border-left-color: transparent;
  border-radius: 18px;
  transform: rotate(9deg);
  filter: drop-shadow(2px 3px 0 rgba(38, 32, 20, 0.14));
}

.has-paperclip::after {
  content: "";
  position: absolute;
  top: -8px;
  right: 34px;
  z-index: 2;
  width: 12px;
  height: 39px;
  border: 2px solid rgba(72, 81, 92, 0.6);
  border-left-color: transparent;
  border-radius: 13px;
  transform: rotate(9deg);
}

.project-card.has-paperclip::after,
.demo-card.has-paperclip::after {
  opacity: 1;
}

.project-card:not(.has-paperclip)::after,
.demo-card:not(.has-paperclip)::after,
.timeline-card::after {
  right: 18px;
  bottom: 18px;
  width: 86px;
  height: 18px;
  background: radial-gradient(ellipse, rgba(31, 41, 51, 0.09), transparent 72%);
  filter: blur(1.5px);
  transform: rotate(-6deg);
}

.tear-sheet {
  overflow: hidden;
}

.tear-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1px;
  width: 18px;
  background:
    radial-gradient(circle at 0 12px, transparent 0 6px, rgba(72, 81, 92, 0.55) 7px, transparent 8px)
      0 0 / 18px 28px repeat-y;
  opacity: 0.55;
}

.sketch-window::after,
.demo-preview::after,
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(102deg, transparent 0 23%, rgba(31, 41, 51, 0.035) 24% 25%, transparent 26%),
    repeating-linear-gradient(164deg, transparent 0 14px, rgba(31, 41, 51, 0.028) 15px 16px);
}

.portrait-photo::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.18), transparent 26%, transparent 72%, rgba(31, 41, 51, 0.05) 100%),
    linear-gradient(160deg, transparent 0 18%, rgba(31, 41, 51, 0.02) 19% 20%, transparent 21%);
}

.taped-photo::before,
.taped-photo::after {
  content: "";
  position: absolute;
  inset: auto;
  z-index: 3;
  width: clamp(52px, 22%, 88px);
  height: 20px;
  pointer-events: none;
  border: 1px solid rgba(117, 101, 66, 0.18);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 42%, rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(90deg, rgba(139, 124, 86, 0.16) 0 1px, transparent 1px 7px),
    rgba(229, 210, 150, 0.48);
  box-shadow: 0 2px 4px rgba(38, 32, 20, 0.12);
  mix-blend-mode: multiply;
}

.taped-photo::before {
  top: -10px;
  left: 12%;
  transform: rotate(-5deg);
}

.taped-photo::after {
  right: 10%;
  bottom: -9px;
  transform: rotate(4deg);
}

@keyframes notebook-pop {
  0% {
    translate: 0 0;
    scale: 1;
    rotate: 0deg;
  }

  42% {
    translate: 0 -3px;
    scale: 1.045;
    rotate: -0.7deg;
  }

  72% {
    translate: 0 1px;
    scale: 0.99;
    rotate: 0.45deg;
  }

  100% {
    translate: 0 0;
    scale: 1;
    rotate: 0deg;
  }
}

@keyframes notebook-nudge {
  0% {
    translate: 0 0;
    rotate: 0deg;
  }

  36% {
    translate: 3px 0;
    rotate: 0.35deg;
  }

  68% {
    translate: -1px 0;
    rotate: -0.2deg;
  }

  100% {
    translate: 0 0;
    rotate: 0deg;
  }
}

.nav-links a,
.button,
.card-actions a,
.page-control,
.social-list a,
.tag-row span,
.inline-list li,
.snapshot-list div,
.skill-groups > div,
.timeline-list li,
.mini-note {
  transform-origin: center;
  transition:
    box-shadow 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.nav-links a:hover,
.button:hover,
.card-actions a:hover,
.page-control:not(:disabled):hover,
.social-list a:hover {
  animation: notebook-pop 280ms cubic-bezier(0.2, 1.25, 0.34, 1);
  border-color: rgba(31, 41, 51, 0.92);
  background-color: rgba(255, 255, 255, 0.46);
  box-shadow:
    4px 5px 0 rgba(31, 41, 51, 0.16),
    0 10px 15px -14px rgba(38, 32, 20, 0.54);
}

.button.primary:hover {
  background-color: #111827;
}

.tag-row span:hover,
.inline-list li:hover,
.snapshot-list div:hover,
.skill-groups > div:hover {
  animation: notebook-pop 240ms cubic-bezier(0.2, 1.25, 0.34, 1);
  border-color: rgba(31, 93, 143, 0.44);
  background-color: rgba(255, 255, 255, 0.48);
}

.timeline-list li:hover {
  animation: notebook-nudge 250ms cubic-bezier(0.2, 1.2, 0.34, 1);
}

.mini-note:hover {
  animation: notebook-pop 260ms cubic-bezier(0.2, 1.25, 0.34, 1);
  box-shadow:
    0 14px 18px -15px rgba(38, 32, 20, 0.58),
    4px 5px 0 rgba(38, 32, 20, 0.11);
}

.project-card:hover,
.demo-card:hover,
.timeline-card:hover,
.skills-card:hover,
.contact-sheet:hover,
.hero-card:hover {
  box-shadow:
    0 13px 18px -13px rgba(38, 32, 20, 0.5),
    5px 6px 0 rgba(38, 32, 20, 0.12),
    inset 0 0 42px rgba(72, 81, 92, 0.04);
}

@media (max-width: 860px) {
  :root {
    --sidebar-width: 7.2rem;
    --controls-width: 4.4rem;
  }

  .nav-links {
    font-size: 0.78rem;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .brand-copy small {
    display: none;
  }

  .hero-sheet,
  .project-card.featured,
  .resume-layout,
  .about-layout,
  .about-contact-layout,
  .contact-sheet {
    grid-template-columns: 1fr;
  }

  .achievement-grid,
  .project-grid,
  .demo-shelf,
  .sticky-note-row {
    grid-template-columns: 1fr;
  }

  #projects .project-grid,
  #projects .project-card.featured,
  #projects .project-card:not(.featured) {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .hero-sheet {
    padding: 0;
  }

  .overview-strip {
    grid-template-columns: 1fr;
  }

  .about-contact-layout .portrait-frame,
  .compact-contact {
    grid-column: auto;
    grid-row: auto;
  }

  .compact-contact {
    grid-template-columns: 1fr;
  }

  .compact-contact .eyebrow,
  .compact-contact h2,
  .compact-contact p:not(.eyebrow),
  .compact-contact .social-list {
    grid-column: auto;
    grid-row: auto;
  }

  .about-copy {
    padding-left: 0;
  }

  .margin-doodles {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --sidebar-width: 4.4rem;
    --controls-width: 3.8rem;
    --paper-left-pad: 4.75rem;
  }

  .site-header {
    padding-inline: 0.45rem;
  }

  .brand-copy {
    display: none;
  }

  .brand-initials {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    gap: 0.4rem;
    font-size: 0.68rem;
  }

  .nav-links a {
    padding: 0.38rem 0.25rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
  }

  main {
    inset: 0.75rem calc(var(--controls-width) + 0.6rem) 4.4rem calc(var(--sidebar-width) + 0.45rem);
  }

  .section-band {
    width: 100%;
    padding-right: 0.8rem;
  }

  .social-list {
    grid-template-columns: 1fr;
  }

  .sheet,
  .note-card,
  .project-card,
  .demo-card,
  .timeline-card,
  .skills-card,
  .contact-sheet {
    box-shadow:
      0 8px 11px -10px rgba(38, 32, 20, 0.42),
      3px 4px 0 rgba(38, 32, 20, 0.1);
  }

  .site-footer {
    left: calc(var(--sidebar-width) + 0.55rem);
    right: auto;
  }

  .site-footer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
