:root {
  --dot: rgba(29, 29, 29, 0.07);
  --internet-blue: #0000ee;
}

::selection {
  color: #fff;
  background: var(--internet-blue);
}

.intro-emoji {
  display: none !important;
}

.animate-fade-up {
  animation-play-state: running !important;
}

html.intro-sequence-pending .sidebar-links,
html.intro-sequence-pending .main-content,
html.intro-sequence-pending .intro-paragraph {
  opacity: 0;
  transform: translateY(14px);
}

html.intro-sequence-pending .sidebar-links,
html.intro-sequence-pending .main-content {
  animation: none !important;
}

html.intro-sequence-pending #agentation-root {
  opacity: 0 !important;
  pointer-events: none;
}

html.intro-sequence-pending .intro-greeting.is-intro-centered {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  width: min(680px, calc(100vw - 40px));
  max-width: none;
  margin: 0;
  text-align: left;
  transform: translate(-50%, -50%);
}

html.intro-sequence-pending.intro-copy-revealed .intro-paragraph,
html.intro-sequence-pending.intro-copy-revealed .sidebar-links {
  animation: intro-content-reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

html.intro-sequence-pending.intro-copy-revealed .intro-paragraph:nth-of-type(2) {
  animation-delay: 0.08s !important;
}

html.intro-sequence-pending.intro-copy-revealed .sidebar-links {
  animation-delay: 0.16s !important;
}

html.intro-sequence-pending.intro-projects-revealed .main-content {
  opacity: 1;
  transform: none;
}

html.intro-sequence-complete .sidebar-links,
html.intro-sequence-complete .main-content {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@keyframes intro-content-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-reveal-item {
  opacity: 0;
  transform: translateY(18px);
}

.project-reveal-item.is-revealed {
  animation: project-card-reveal 0.62s cubic-bezier(0.22, 1, 0.36, 1)
    var(--project-reveal-delay, 0ms) both;
}

@keyframes project-card-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-reveal-item,
  .project-reveal-item.is-revealed {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.scroll-reveal-section {
  opacity: 0;
  transform: translateY(24px);
}

.scroll-reveal-section.is-revealed {
  animation: section-scroll-reveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes section-scroll-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal-section,
  .scroll-reveal-section.is-revealed {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .intro-copy {
    width: 100%;
    margin-bottom: 64px;
  }

  .intro-paragraph {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.5;
  }

  .sidebar h1.intro-greeting {
    padding-left: 0;
    font-family: inherit;
    line-height: 1.3;
    letter-spacing: 0;
  }
}

.sidebar > h1 {
  display: none;
}

.intro-copy {
  order: -1;
  pointer-events: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-stretch: normal;
  letter-spacing: 0;
}

.intro-greeting {
  min-height: 1.3em;
}

.intro-greeting.is-typing::after {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 3px;
  background: currentColor;
  vertical-align: -0.08em;
  animation: intro-caret 0.75s steps(1, end) infinite;
  content: "";
}

@keyframes intro-caret {
  50% {
    opacity: 0;
  }
}

.intro-paragraph {
  color: var(--color-text-primary);
  font-weight: 400;
  text-wrap: pretty;
}

.intro-paragraph a,
.intro-video-link {
  margin: 0 -2px;
  padding: 0 2px;
  border-radius: 4px;
  background: linear-gradient(rgba(0, 0, 238, 0.1), rgba(0, 0, 238, 0.1)) 0 100% / 100% 0 no-repeat;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 28%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  box-decoration-break: clone;
  transition: color 0.2s ease, background-size 0.22s var(--ease-out), text-decoration-color 0.2s ease;
  -webkit-box-decoration-break: clone;
}

.intro-video-link {
  border: 0;
  color: inherit;
  background-color: transparent;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
}

.intro-video-link:focus-visible {
  outline: 2px solid rgba(0, 0, 238, 0.4);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .intro-paragraph a:hover,
  .intro-video-link:hover {
    color: var(--internet-blue);
    background-size: 100% 100%;
    text-decoration-color: transparent;
  }
}

.has-skate-video-dialog {
  overflow: hidden;
}

.skate-video-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background-color: #fff;
  background-image: radial-gradient(
    var(--dot) var(--dot-size),
    transparent var(--dot-size)
  );
  background-size: var(--dot-space) var(--dot-space);
}

.skate-video-dialog[open] {
  display: grid;
  place-items: center;
  animation: skate-dialog-enter 0.22s ease both;
}

.skate-video-dialog::backdrop {
  background: #fff;
}

.skate-video {
  display: block;
  width: min(640px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  object-fit: contain;
  animation: skate-video-enter 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.skate-video-close {
  position: fixed;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--color-text-primary);
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.skate-video-close .bookshelf-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.skate-video-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

@keyframes skate-dialog-enter {
  from {
    opacity: 0;
  }
}

@keyframes skate-video-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skate-video-dialog[open],
  .skate-video {
    animation: none;
  }
}

.intro-greeting .andrew-link {
  position: static;
  color: inherit;
  cursor: default;
}

.andrew-inline {
  display: inline;
  position: relative;
  vertical-align: baseline;
  white-space: nowrap;
}

.cursor-follow-preview {
  position: fixed;
  top: -150px;
  left: -150px;
  z-index: 100;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(31, 28, 43, 0.2);
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.78) rotate(-3deg);
  transform-origin: top left;
  transition: opacity 0.16s ease, transform 0.16s ease;
  will-change: top, left, opacity, transform;
}

.cursor-follow-preview.is-visible {
  opacity: 1;
  transform: scale(1) rotate(2deg);
}

.idle-screensaver {
  position: fixed;
  z-index: 2000;
  overflow: hidden;
  background-color: #fff;
  background-image: radial-gradient(
    rgba(29, 29, 29, 0.13) var(--dot-size),
    transparent var(--dot-size)
  );
  background-size: var(--dot-space) var(--dot-space);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  contain: strict;
  inset: 0;
}

.idle-screensaver.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.idle-screensaver-sprite {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(68px, 6.5vw, 92px);
  height: clamp(68px, 6.5vw, 92px);
  will-change: transform;
}

.idle-screensaver-sprite img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  filter: drop-shadow(0 9px 12px rgba(29, 29, 29, 0.16));
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.idle-screensaver-sprite.is-photo {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(29, 29, 29, 0.14);
}

.idle-screensaver-sprite.is-photo img {
  border-radius: 17px;
  filter: none;
  object-fit: cover;
}

body.has-idle-screensaver {
  overflow: hidden;
}

body.has-idle-screensaver #agentation-root,
body.has-idle-screensaver [class*="styles-module__toolbar___"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  .idle-screensaver-sprite {
    width: 64px;
    height: 64px;
  }

  .idle-screensaver-sprite img {
    border-radius: 10px;
  }

  .idle-screensaver-sprite.is-photo,
  .idle-screensaver-sprite.is-photo img {
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .idle-screensaver {
    display: none;
  }
}

.intro-company {
  display: inline;
  white-space: nowrap;
  vertical-align: baseline;
}

.intro-company-preview {
  width: 80px;
  height: 80px;
  border-radius: 16px;
}

.intro-amateur-hour-preview {
  width: 192px;
  height: 108px;
  border-radius: 16px;
}

.intro-pearl-preview {
  width: 192px;
  height: 120px;
  border-radius: 16px;
}

.intro-photos-preview {
  width: 192px;
  height: 128px;
  border-radius: 16px;
}

.intro-skate-preview {
  width: 192px;
  height: 144px;
  border-radius: 16px;
  background: #000;
}

.andrew-hover-photo {
  display: none !important;
}

.project-card > img[alt="Amazon"] {
  display: none;
}

.project-card:has(> img[alt="Amazon"])::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 29%;
  aspect-ratio: 1100 / 250;
  background: #ff9900;
  mask: url("/assets/amazon-arrow.png") center / contain no-repeat;
  transform: translate(-50%, -50%);
  -webkit-mask: url("/assets/amazon-arrow.png") center / contain no-repeat;
}

.project-card > img[alt="Dapper Labs"] {
  visibility: hidden;
}

.project-card:has(> img[alt="Dapper Labs"]) {
  background: #8422e0 !important;
}

.project-card:has(> img[alt="Dapper Labs"])::after {
  content: "";
  position: absolute;
  top: 38%;
  left: 50%;
  width: 82%;
  aspect-ratio: 4 / 3;
  background: url("/assets/dapper-thumbnail.gif") center / 100% 100% no-repeat;
  transform: translate(-50%, -50%);
}

.project-card > img[alt="Starbucks"] {
  display: none;
}

.project-card:has(> img[alt="Starbucks"]) {
  background: #f1f0eb !important;
}

.project-card:has(> img[alt="Starbucks"])::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 22%;
  background: url("/img/starbucks.png") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.home-work-history {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.home-work-history .work-history {
  margin-top: 0;
}

.home-work-history .work-item {
  gap: 12px;
  padding: 12px 0;
}

.home-work-history .work-logo {
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 11px;
}

.home-work-history .work-company,
.home-work-history .work-role,
.home-work-history .work-dates {
  font-family: inherit;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.home-work-history .work-dates {
  margin-top: 0;
}

.bookshelf {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 64px;
  padding: 24px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.bookshelf header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bookshelf h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.bookshelf-controls {
  display: flex;
  gap: 8px;
}

.bookshelf-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--color-text-primary);
  background: rgba(29, 29, 29, 0.05);
  cursor: pointer;
  font: 18px/1 inherit;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.bookshelf-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bookshelf-grid-toggle {
  margin-right: 4px;
}

.bookshelf-control:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .bookshelf-control:not(:disabled):hover {
    color: #7654c4;
    background: rgba(150, 120, 220, 0.15);
    transform: translateY(-1px);
  }
}

.books-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.books-viewport::-webkit-scrollbar {
  display: none;
}

.books-viewport:focus-visible {
  outline: 2px solid rgba(118, 84, 196, 0.45);
  outline-offset: 4px;
}

.books-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 16px 0 2px;
}

.book {
  position: relative;
  width: 110px;
  aspect-ratio: 2 / 3;
  flex: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(29, 29, 29, 0.08);
  overflow: visible;
  scroll-snap-align: start;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.book:hover,
.book:focus-visible {
  z-index: 1;
  outline: none;
  box-shadow: 0 8px 20px rgba(29, 29, 29, 0.14);
  transform: translateY(-5px);
}

.book img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.book-rating {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  color: #fff;
  background: rgba(22, 20, 28, 0.76);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transition: opacity 0.18s ease;
}

.book:hover .book-rating,
.book:focus-visible .book-rating {
  opacity: 1;
}

.book-rating-stars {
  color: #fff;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
}

.book-current {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  padding: 5px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(36, 34, 40, 0.9);
  font: 600 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.bookshelf-status {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.home-now-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 52px;
}

.home-listening,
.home-strava {
  min-width: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.home-listening-header,
.home-strava-header {
  min-height: 48px;
  margin-bottom: 20px;
}

.home-listening-heading,
.home-strava-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-listening h2,
.home-strava h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.home-listening-time,
.home-strava-time {
  display: block;
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.3;
}

.listening-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: 18px;
  height: 16px;
}

.listening-wave-bar {
  width: 2px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  animation: listening-wave 1.07s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-delay: calc(var(--wave-index) * -0.17s);
  transform-origin: center;
}

.listening-wave-bar:nth-child(2) {
  height: 15px;
  animation-duration: 0.83s;
}

.listening-wave-bar:nth-child(3) {
  height: 12px;
  animation-duration: 1.19s;
}

.listening-wave-bar:nth-child(4) {
  height: 16px;
  animation-duration: 0.94s;
}

.listening-wave-bar:nth-child(5) {
  height: 8px;
  animation-duration: 1.31s;
}

@keyframes listening-wave {
  0% {
    transform: scaleY(0.28) translateY(1px);
  }

  18% {
    transform: scaleY(0.82) translateY(-1px);
  }

  39% {
    transform: scaleY(0.44) translateY(1px);
  }

  64% {
    transform: scaleY(1);
  }

  82% {
    transform: scaleY(0.58) translateY(-1px);
  }

  100% {
    transform: scaleY(0.34) translateY(1px);
  }
}

.home-listening .currently-item {
  justify-content: flex-start;
  gap: 18px;
}

.home-listening .album-art {
  width: 124px;
  height: 124px;
}

.home-listening .currently-title,
.home-listening .currently-subtitle {
  font-family: inherit;
}

.strava-activity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: inherit;
}

.strava-route {
  position: relative;
  display: grid;
  flex: 0 0 124px;
  width: 124px;
  height: 124px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  background: #e8e4dd;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.strava-route svg {
  width: 100%;
  height: 100%;
}

.strava-route-casing,
.strava-route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.strava-route-casing {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 7;
}

.strava-route-line {
  stroke: #fc4c02;
  stroke-width: 4;
}

.strava-route.is-fallback {
  color: #fff;
  background: #fc4c02;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.strava-map-attribution {
  position: absolute;
  right: 2px;
  bottom: 2px;
  padding: 1px 2px;
  border-radius: 2px;
  color: rgba(29, 29, 29, 0.58);
  background: rgba(255, 255, 255, 0.58);
  font-size: 5px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.strava-activity-copy {
  min-width: 0;
}

.strava-activity-sport {
  display: block;
  margin-bottom: 5px;
  color: #8b8b93;
  font-size: 12px;
  line-height: 1.2;
}

.strava-activity-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.strava-activity-stats {
  margin-top: 2px;
  color: var(--color-text-muted);
  font-size: 20px;
  line-height: 1.2;
}

.strava-status {
  display: flex;
  align-items: center;
  min-height: 124px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .listening-wave-bar {
    animation: none;
    transform: scaleY(0.65);
  }
}

@media (max-width: 700px) {
  .home-now-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .home-listening .currently-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
  }

  .home-listening .currently-info {
    align-items: flex-start;
    text-align: left;
  }

  .home-listening .currently-title,
  .home-listening .currently-subtitle {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .strava-activity-title,
  .strava-activity-stats {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .home-listening .currently-item {
    gap: 14px;
  }

  .home-listening .album-art {
    width: 112px;
    height: 112px;
  }

  .strava-route {
    flex-basis: 112px;
    width: 112px;
    height: 112px;
  }

  .strava-status {
    min-height: 112px;
  }
}

body.has-footer-reveal {
  background: var(--internet-blue);
}

body.has-footer-reveal #root {
  position: relative;
  z-index: 1;
  box-shadow: 0 14px 28px -16px rgba(0, 0, 48, 0.42);
}

body.has-footer-reveal .bg-dots:not(.overlay-active) {
  position: absolute;
  z-index: 0;
  inset: 0;
}

body.has-footer-reveal .layout {
  z-index: 1;
}

.home-footer-reveal-space {
  position: relative;
  height: 20vh;
  height: 20dvh;
  pointer-events: none;
}

.home-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  height: 20vh;
  height: 20dvh;
  margin: 0;
  padding: 24px 32px max(24px, env(safe-area-inset-bottom));
  overflow-x: auto;
  overflow-y: hidden;
  color: #fff;
  background-color: var(--internet-blue);
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.2) var(--dot-size),
    transparent var(--dot-size)
  );
  background-size: var(--dot-space) var(--dot-space);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.home-footer::-webkit-scrollbar {
  display: none;
}

.about-footer-links.home-footer-links-list {
  display: flex;
  flex: none;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  width: max-content;
  max-width: none;
  min-width: 0;
  margin: 0 auto;
}

.home-footer-links-list .interactive-link {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 5px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: 400 clamp(22px, 2.1vw, 26px) / 1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
}

.home-footer-links-list .external-arrow,
.home-footer-links-list .interactive-link svg {
  width: 16px;
  height: 16px;
}

.email-copy-tooltip {
  position: fixed;
  z-index: 1200;
  padding: 6px 9px;
  border-radius: 7px;
  color: #fff;
  background: #242228;
  box-shadow: 0 6px 18px rgba(29, 29, 29, 0.16);
  opacity: 0;
  pointer-events: none;
  font: 500 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% + 4px));
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.email-copy-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%);
}

@media (hover: hover) and (pointer: fine) {
  .home-footer-links-list .interactive-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 640px) {
  .layout {
    padding-bottom: 24px;
  }

  .home-now-grid {
    margin-bottom: 24px;
  }

  .home-footer-reveal-space,
  .home-footer {
    height: 50vh;
    height: 50dvh;
  }

  .home-footer {
    padding: 32px 24px max(32px, env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .about-footer-links.home-footer-links-list {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0;
  }

  .home-footer-links-list .interactive-link {
    gap: 4px;
    min-height: 0;
    justify-content: flex-start;
    padding: 6px 10px;
    font-size: 24px;
    line-height: 1.15;
  }

  .home-footer-links-list .external-arrow,
  .home-footer-links-list .interactive-link svg {
    width: 14px;
    height: 14px;
  }
}

body.has-bookshelf-dialog {
  overflow: hidden;
}

.bookshelf-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--color-text-primary);
  background-color: #fff;
  background-image: radial-gradient(
    var(--dot) var(--dot-size),
    transparent var(--dot-size)
  );
  background-size: var(--dot-space) var(--dot-space);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  overscroll-behavior: contain;
}

.bookshelf-dialog[open] {
  display: block;
}

.bookshelf-dialog::backdrop {
  background: rgba(22, 20, 28, 0.2);
}

.bookshelf-dialog-shell {
  min-height: 100%;
}

.bookshelf-dialog-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 20px clamp(88px, 9vw, 128px);
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bookshelf-dialog-close {
  position: absolute;
  top: 20px;
  right: clamp(24px, 4vw, 64px);
  width: 52px;
  height: 52px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(29, 29, 29, 0.1);
}

.bookshelf-dialog-close .bookshelf-icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}

.bookshelf-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.bookshelf-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(29, 29, 29, 0.09);
  border-radius: 999px;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.bookshelf-filter.is-active {
  border-color: #242228;
  color: #fff;
  background: #242228;
}

.bookshelf-filter:disabled {
  opacity: 0.35;
  cursor: default;
}

.bookshelf-filter:focus-visible,
.bookshelf-control:focus-visible {
  outline: 2px solid rgba(118, 84, 196, 0.5);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .bookshelf-filter:not(:disabled, .is-active):hover {
    border-color: rgba(29, 29, 29, 0.14);
    color: var(--color-text-primary);
    background: #eeecef;
  }

  .bookshelf-dialog-close:not(:disabled):hover {
    color: var(--color-text-primary);
    background: #fff;
  }
}

.bookshelf-dialog-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px clamp(24px, 4vw, 64px) 64px;
}

.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.bookshelf-grid-book {
  width: 100%;
}

.bookshelf-grid-book[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .bookshelf-dialog-header {
    justify-content: flex-start;
    min-height: 80px;
    padding: 14px 76px 14px 16px;
  }

  .bookshelf-dialog-close {
    top: 14px;
    right: 16px;
  }

  .bookshelf-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bookshelf-filters::-webkit-scrollbar {
    display: none;
  }

  .bookshelf-filter {
    flex: none;
  }

  .bookshelf-dialog-content {
    padding: 24px 16px 48px;
  }

  .bookshelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 12px;
  }

  .bookshelf-grid .book-rating-stars {
    font-size: 11px;
    letter-spacing: 0;
  }
}

@media (hover: none) {
  .book-rating {
    top: auto;
    min-height: 42%;
    justify-content: flex-end;
    background: linear-gradient(transparent, rgba(22, 20, 28, 0.82));
    opacity: 1;
  }

}

@media (min-width: 901px) {
  .layout {
    display: block;
    max-width: 1320px;
    margin: 0 auto;
    padding: 96px 40px 120px;
  }

  .sidebar {
    position: relative;
    top: auto;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .sidebar h1 {
    max-width: none;
    padding-left: 0;
  }

  .intro-copy {
    width: 100%;
    max-width: 680px;
    text-align: left;
  }

  .intro-greeting {
    font-family: inherit;
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .intro-paragraph {
    margin-top: 28px;
    font-size: 20px;
    line-height: 1.55;
  }

  .sidebar-links {
    justify-content: flex-start;
    width: 100%;
    max-width: 680px;
    margin: 24px 0 0;
    padding-left: 0;
  }

  .main-content {
    width: 100%;
    min-height: auto;
    margin-left: 0;
    padding: 64px 0 0;
  }

  .project-list[data-view="large"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  .project-list[data-view="large"] .project-card {
    aspect-ratio: 3 / 2;
    width: 100%;
    height: auto;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .project-list[data-view="large"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
