* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(215, 192, 150, 0.4) transparent;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: #181717;
  color: #ede5dd;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 104px 24px 24px;
}

.hyperium-frame {
  display: block;
  width: min(800px, 100%);
  height: auto;
  max-width: 100%;
  transform-origin: top center;
  animation: heading-fade-down 1100ms cubic-bezier(0.20, 1, 0.30, 1) 170ms both;
}

.hyperium-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.divider {
  width: min(600px, 100%);
  margin: 56px auto 0;
  border: 0;
  border-top: 1px solid rgba(237, 229, 221, 0.18);
}

.work {
  width: min(920px, 100%);
  align-self: flex-start;
  margin-top: 40px;
  padding-left: 32px;
  text-align: left;
}

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

.work-more {
  display: grid;
  place-items: center;
  color: #ede5dd;
  font-family: "Montaga", serif;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  transition: color 200ms ease, transform 200ms ease;
}

.work-more:hover,
.work-more:focus-visible {
  color: #d7c096;
  transform: translateX(6px);
  outline: none;
}

.site-footer {
  align-self: stretch;
  margin: 72px -24px -24px;
  padding: 26px 36px 30px;
  background-color: #ede5dd;
  color: #181717;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 44px;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-family: "Montaga", serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #181717;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-family: "Montaga", serif;
  font-size: 1.1rem;
  color: #181717;
  text-decoration: none;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease;
}

.footer-link:hover::after,
.footer-link:focus-visible::after {
  transform: scaleX(1);
}

.footer-email {
  font-size: 0.92rem;
  color: #181717;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: #b11a1f;
}

.page-body {
  margin-top: 24px;
  max-width: 640px;
}

.page-placeholder {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #7f7b77;
  font-style: italic;
}

.pricing-page {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.price {
  font-family: "Montaga", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: #ede5dd;
  white-space: nowrap;
}

.price-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #7f7b77;
}

.price-note {
  margin: 6px 0 0;
  font-family: "Montaga", serif;
  font-size: 1.2rem;
  color: #d7c096;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.work-cell {
  aspect-ratio: 1 / 1;
  border: 1px dashed rgba(237, 229, 221, 0.28);
  border-radius: 10px;
  background-color: rgba(237, 229, 221, 0.04);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.thumb {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  animation: fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.thumb:nth-child(1) { animation-delay: 60ms; }
.thumb:nth-child(2) { animation-delay: 140ms; }
.thumb:nth-child(3) { animation-delay: 220ms; }
.thumb:nth-child(4) { animation-delay: 300ms; }

.thumb:focus-visible {
  outline: 2px solid #d7c096;
  outline-offset: 4px;
}

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(237, 229, 221, 0.12);
  background-color: rgba(237, 229, 221, 0.04);
  user-select: none;
  -webkit-user-drag: none;
  transition: box-shadow 260ms ease, border-color 260ms ease, filter 260ms ease;
}

.thumb:hover img,
.thumb:focus-visible img {
  border-color: rgba(215, 192, 150, 0.4);
  box-shadow: 0 0 10px rgba(215, 192, 150, 0.16);
  filter: brightness(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(24, 23, 23, 0.92);
  backdrop-filter: blur(8px);
  animation: lb-in 240ms ease both;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-closing {
  animation: lb-out 240ms ease both;
}

.lb-main {
  display: flex;
  gap: 24px;
  width: min(1180px, 94vw);
  height: min(84vh, 760px);
  animation: lb-pop 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lb-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  transition: transform 160ms ease-out, opacity 180ms ease;
  will-change: transform;
}

.lb-stage img.is-fading {
  opacity: 0;
}

.lb-stage img.is-zoomed {
  cursor: grab;
}

.lb-stage img.is-dragging {
  cursor: grabbing;
  transition: none;
}

.lb-btn {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(237, 229, 221, 0.25);
  border-radius: 999px;
  background-color: rgba(24, 23, 23, 0.6);
  color: #ede5dd;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.lb-btn:hover,
.lb-btn:focus-visible {
  border-color: #d7c096;
  color: #d7c096;
  box-shadow: 0 0 14px rgba(215, 192, 150, 0.35);
  outline: none;
}

.lb-close {
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 1;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: rgba(237, 229, 221, 0.78);
  font-family: "Montaga", "Oranienbaum", serif;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 220ms ease, transform 220ms ease;
}

.lb-close:hover,
.lb-close:focus-visible {
  color: #d7c096;
  transform: scale(1.12);
  outline: none;
}

.lb-nav {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 1;
}

.lb-nav .lb-btn {
  position: static;
}

.lb-notes {
  width: 320px;
  display: flex;
  flex-direction: column;
  padding: 6px 4px 6px 24px;
  overflow-y: auto;
  border-left: 1px solid rgba(237, 229, 221, 0.14);
  animation: slide-in 420ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.lb-title {
  margin: 0 0 16px;
  font-family: "Montaga", serif;
  font-weight: 400;
  font-size: 1.7rem;
  color: #ede5dd;
}

.lb-note-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(237, 229, 221, 0.72);
}

.lb-note-body p {
  margin: 0 0 0.85em;
}

.lb-note-body h1,
.lb-note-body h2,
.lb-note-body h3 {
  margin: 1.1em 0 0.45em;
  font-family: "Montaga", serif;
  font-weight: 400;
  color: #ede5dd;
}

.lb-note-body h1 { font-size: 1.3rem; }
.lb-note-body h2 { font-size: 1.15rem; }
.lb-note-body h3 { font-size: 1rem; }

.lb-note-body ul,
.lb-note-body ol {
  margin: 0 0 0.85em;
  padding-left: 1.25em;
}

.lb-note-body li {
  margin-bottom: 0.3em;
}

.lb-note-body a {
  color: #d7c096;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lb-note-body code {
  font-size: 0.88em;
}

.lb-note-body blockquote {
  margin: 0 0 0.85em;
  padding-left: 0.9em;
  border-left: 2px solid rgba(215, 192, 150, 0.5);
  color: #7f7b77;
  font-style: italic;
}

.lb-note-body hr {
  border: 0;
  border-top: 1px solid rgba(237, 229, 221, 0.15);
  margin: 1.1em 0;
}

.lb-note-body strong {
  color: #ede5dd;
}

.lb-note-msg {
  color: #7f7b77;
  font-style: italic;
}

.lb-loader {
  display: flex;
  gap: 8px;
  padding: 6px 0;
}

.lb-loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #7f7b77;
  animation: note-pulse 1s ease-in-out infinite;
}

.lb-loader span:nth-child(2) {
  animation-delay: 150ms;
}

.lb-loader span:nth-child(3) {
  animation-delay: 300ms;
}

@keyframes note-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
    background-color: #ede5dd;
  }
}

.lb-note-msg code {
  font-style: normal;
}
.top-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 22px;
  background-color: #ede5dd;
  color: #181717;
  transform-origin: top center;
  animation: drop-down 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-name {
  margin: 0;
  font-family: "Oranienbaum", serif;
  font-size: clamp(.9rem, 1.35vw, 1.1rem);
  letter-spacing: -0.045em;
  line-height: .95;
}

.site-name-link {
  color: inherit;
  text-decoration: none;
}

.site-name-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links a {
  position: relative;
  display: grid;
  width: 18px;
  height: 18px;
  color: #181717;
}

.social-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease;
}

.social-links a:hover::after,
.social-links a:focus-visible::after {
  transform: scaleX(1);
}

.social-links a:focus-visible {
  outline: 2px solid #181717;
  outline-offset: 5px;
}

.social-links img {
  width: 100%;
  height: 100%;
}

h1 {
  margin: 0;
  font-family: "Montaga", serif;
  font-weight: 400;
  font-style: normal;
  transform-origin: top center;
  animation: heading-fade-down 1100ms cubic-bezier(0.22, 1, 0.36, 1) 160ms both;
}

.hello-box {
  width: min(600px, 100%);
  padding-top: 32px;
  display: grid;
  place-items: center;
  text-align: center;
}

::selection {
  background-color: #d7c096;
  color: #181717;
}

code,
kbd,
pre {
  font-family: "Geist Mono", ui-monospace, monospace;
  background-color: #d7c096;
  color: #181717;
}

code {
  padding: 1px 5px;
  border-radius: 4px;
}

pre {
  padding: 10px 12px;
  border-radius: 8px;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background-color: transparent;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(215, 192, 150, 0.4);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(237, 229, 221, 0.75);
}

@keyframes heading-fade-down {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drop-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lb-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lb-out {
  to {
    opacity: 0;
  }
}

@keyframes lb-pop {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-bar,
  h1,
  .thumb,
  .lightbox,
  .lb-main,
  .lb-notes {
    animation: none;
  }

  .social-links a,
  .thumb img,
  .lb-stage img,
  .lb-btn,
  .lb-loader span {
    transition: none;
    animation: none;
  }
}

@media (max-width: 720px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 22px 24px 26px;
    gap: 24px;
  }

  .lb-main {
    flex-direction: column;
    height: auto;
    max-height: 88vh;
    gap: 14px;
  }

  .lb-stage {
    height: 46vh;
  }

  .lb-notes {
    width: 100%;
    padding: 14px 4px 4px;
    border-left: 0;
    border-top: 1px solid rgba(237, 229, 221, 0.14);
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 13px 18px;
  }

  .social-links {
    gap: 14px;
  }
}
