@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400&display=swap");

@font-face {
  font-family: "Hellix";
  src: url("./assets/Hellix-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: rgb(55, 65, 81);
  --ink-strong: rgb(17, 24, 39);
  --ink-soft: rgb(107, 114, 128);
  --line: rgba(55, 65, 81, 0.16);
  --paper: #fff;
  --content: 576px;
  --media: 704px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-color: rgba(55, 65, 81, 0.52);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--ink-strong);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid rgba(47, 113, 153, 0.72);
  outline-offset: 4px;
  border-radius: 2px;
}

.backdrop {
  position: fixed;
  z-index: 0;
  inset: 0 0 auto;
  height: clamp(14rem, 28vh, 18rem);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.62;
  filter: blur(11px);
  transform: translateY(-2.75rem) scale(1.015);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 28%, rgba(0, 0, 0, 0.34) 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.92) 28%, rgba(0, 0, 0, 0.34) 72%, transparent 100%);
}

.backdrop canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 0 24px;
}

.site-header {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  row-gap: 18px;
}

.brand-mark {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin-left: -41px;
}

.brand-lockup {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: #111;
  text-decoration: none;
}

.brand-name {
  font-family: "Hellix", Arial, sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  position: static;
  width: 31px;
  height: 24px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  color: rgba(17, 24, 39, 0.92);
  font-family: Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -7px;
  transform-style: preserve-3d;
  animation: none;
  filter: drop-shadow(0 1px 1px rgba(17, 24, 39, 0.24));
}

.brand-mark::before {
  content: ",,,";
  padding-right: 7px;
  background: linear-gradient(105deg, #111 4%, #f8fafc 32%, #64748b 49%, #fff 67%, #111 94%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.25px rgba(17, 24, 39, 0.65);
}

.brand-mark.has-artwork {
  width: 40px;
  height: 30px;
  right: calc(100% + 12px);
  overflow: hidden;
  border-radius: 3px;
  filter: drop-shadow(0 2px 5px rgba(17, 24, 39, .22));
}

.brand-mark.has-artwork::before { content: none; }

.brand-mark.has-artwork img {
  display: block;
  width: 40px;
  height: 30px;
  object-fit: cover;
}

.brand-mark.is-webgl {
  width: 120px;
  height: 60px;
  flex-basis: 120px;
  animation: none;
  filter: drop-shadow(0 1px 5px rgba(15, 23, 42, 0.55)) drop-shadow(0 0 12px rgba(15, 23, 42, 0.3));
  font-size: 0;
  letter-spacing: 0;
}

.brand-mark.is-webgl::before {
  content: none;
}

.brand-mark canvas {
  display: block;
  width: 120px;
  height: 60px;
  pointer-events: none;
}

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

.site-header,
.intro,
.contact-copy,
.carousel-shell .carousel {
  animation: fade-up-in 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-header { animation-delay: 0ms; }
.intro { animation-delay: 70ms; }
.carousel-shell .carousel { animation-delay: 140ms; }
.contact-copy { animation-delay: 220ms; }

@keyframes mark-turn {
  to { transform: perspective(240px) rotateY(360deg) rotateX(7deg); }
}

.primary-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  overflow: visible;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a,
.primary-nav button.nav-link {
  color: #4f46e5;
  font-size: 15px;
  line-height: 28px;
  text-decoration: none;
  transition: color 160ms ease;
}

.primary-nav button.nav-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.primary-nav button.nav-link:hover {
  color: #4338ca;
}

.recommend-icon {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin-right: -6px;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  color: var(--ink-strong);
  text-decoration: none;
  margin-left: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  transform: perspective(300px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

.recommend-icon__glow {
  position: absolute;
  z-index: -1;
  inset: -13px;
  background: radial-gradient(circle, rgba(255,255,255,.96), rgba(157,215,255,.56) 24%, rgba(191,157,255,.28) 46%, transparent 70%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: blur(7px);
  opacity: 0;
  transform: scale(.55) rotate(12deg);
  transition: opacity 220ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.recommend-icon.glow-active,
.recommend-icon.glow-pulse {
  filter: drop-shadow(0 0 7px rgba(129, 201, 255, .72));
}

.recommend-icon.glow-active .recommend-icon__glow,
.recommend-icon.glow-pulse .recommend-icon__glow {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@keyframes diamond-pulse {
  50% { filter: drop-shadow(0 0 18px rgba(163, 211, 255, .9)); }
}

.glow-pulse { animation: diamond-pulse 620ms ease both; }

.recommend-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.home-main,
.page-main {
  width: min(100%, var(--content));
  margin: 0 auto;
}

.home-main {
  padding-top: 26px;
  padding-bottom: 32px;
}

.intro {
  font-size: 16px;
  line-height: 28px;
  letter-spacing: normal;
  text-align: justify;
}

.intro p {
  margin: 0 0 18px;
}

.carousel-shell {
  width: min(calc(100vw - 48px), var(--media));
  margin: 16px 50% 0;
  transform: translateX(-50%);
}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid #000;
  background: #e5e7eb;
  isolation: isolate;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms cubic-bezier(0.4, 0, 0.2, 1), visibility 450ms;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

@media (min-width: 641px) {
  .carousel-slide:first-of-type img {
    object-position: top;
  }
}

.carousel-holo-shimmer,
.carousel-holo-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.carousel-holo-shimmer {
  mix-blend-mode: color-dodge;
}

.carousel-holo-glare {
  mix-blend-mode: screen;
}

.carousel-slide--contain img {
  object-fit: contain;
  background: #171717;
}

.carousel-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.carousel-arrow,
.carousel-dot {
  appearance: none;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.carousel-arrow {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  opacity: 0.8;
  transition: opacity 160ms ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  opacity: 1;
}

.carousel-arrow svg {
  width: 100%;
  height: 100%;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.carousel-dot[aria-current="true"] {
  background: #fff;
}

.contact-copy {
  margin-top: 22px;
  font-size: 16px;
  line-height: 28px;
  text-align: justify;
}

.contact-copy p {
  margin: 0;
}

.site-footer {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 22px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.page-main {
  padding: 66px 0 88px;
}

.page-heading {
  margin: 0;
  color: var(--ink-strong);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.page-kicker {
  margin: 6px 0 40px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 24px;
}

.entry-group + .entry-group,
.entry-group-row + .entry-group {
  margin-top: 48px;
}

.entry-group-row {
  display: contents;
}

.entry-group h2 {
  margin: 0 0 16px;
  color: var(--ink-strong);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: entries;
}

.entry {
  position: relative;
  padding: 0;
  counter-increment: none;
}

.entry:last-child {
  border-bottom: 0;
}

.entry::before {
  display: none;
}

.editorial-list {
  display: grid;
  gap: 31px;
}

.entry-title {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 27px;
  font-weight: 500;
}

.entry-title a {
  text-decoration: underline;
  text-decoration-color: rgba(17, 24, 39, 0.35);
  text-underline-offset: 3px;
}

.entry-title a:hover {
  text-decoration-color: currentColor;
}

.entry-description,
.entry-subtitle {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 26px;
}

.entry-subtitle {
  color: var(--ink-soft);
}

.entry-subtitle a {
  color: inherit;
  text-decoration-color: rgba(107, 114, 128, 0.4);
}

.entry-meta {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 22px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.project-tile {
  margin: 0;
}

.project-tile-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.project-tile-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #e5e7eb;
  transform: scale(1);
  transition: transform 420ms ease;
}

.project-tile-trigger:hover .project-tile-img,
.project-tile-trigger:focus-visible .project-tile-img {
  transform: scale(1.03);
}

.project-tile-title {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
}

.lightbox {
  position: relative;
  width: auto;
  max-width: min(70vw, 760px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  overflow: visible;
  opacity: 1;
  transform: scale(1);
  transition: opacity 320ms cubic-bezier(0.34, 1.56, 0.64, 1), transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), overlay 320ms ease allow-discrete, display 320ms ease allow-discrete;
}

.lightbox:not([open]) {
  opacity: 0;
  transform: scale(0.92);
}

@starting-style {
  .lightbox[open] {
    opacity: 0;
    transform: scale(0.92);
  }
}

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 640px);
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.lightbox::backdrop {
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.lightbox-close svg {
  width: 14px;
  height: 14px;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(17, 24, 39, 0.65);
  transform: scale(1.08);
}

.quote-list {
  display: grid;
  gap: 34px;
  margin-top: 28px;
}

.quote-item h2 {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 23px;
  font-weight: 400;
}

.quote-item h2::before { content: "— "; }

.quote-item blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink-strong);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 27px;
}

.quote-item { display: flex; flex-direction: column; }
.quote-item blockquote { order: 1; }
.quote-item h2 { order: 2; }

.quote-item p {
  margin: 0 0 8px;
}

.quote-item p:last-child {
  margin-bottom: 0;
}

.library-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.library-list li {
  min-width: 0;
  font-size: 15px;
  line-height: 25px;
}

.library-list a,
.library-list span {
  color: var(--ink);
}

.library-list a {
  text-decoration-color: transparent;
}

.library-list a:hover {
  text-decoration-color: currentColor;
}

.recommend-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  display: grid;
  gap: 6px;
}

.entry-line {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 25px;
}

.recommend-invitation {
  margin: 40px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.recommend-invitation button {
  appearance: none;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(55,65,81,.45);
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.recommend-modal {
  width: min(92vw, 610px);
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.recommend-modal::backdrop {
  background: rgba(15, 23, 42, .28);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
}

.recommend-glass {
  position: relative;
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 38px 40px 40px;
  border: 1px solid rgba(255,255,255,.65);
  border-top-color: rgba(255,255,255,.92);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.75), rgba(248,250,252,.48)),
    radial-gradient(circle at 12% 0%, rgba(183,225,255,.5), transparent 45%),
    radial-gradient(circle at 92% 4%, rgba(232,185,255,.35), transparent 42%);
  box-shadow: 0 32px 90px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.78);
  backdrop-filter: blur(34px) saturate(1.55);
  -webkit-backdrop-filter: blur(34px) saturate(1.55);
}

.recommend-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: rgba(17,24,39,.65);
  background: transparent;
  font-size: 26px;
  line-height: 30px;
  cursor: pointer;
}

.recommend-glass h2 {
  margin: 0 0 26px;
  color: var(--ink-strong);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 38px;
  font-weight: 400;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13px;
  color: var(--ink-soft);
}

.field label span { opacity: .72; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(55, 65, 81, 0.18);
  border-radius: 7px;
  background: rgba(255,255,255,.52);
  color: var(--ink-strong);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(65,115,158,.58);
  box-shadow: 0 0 0 3px rgba(142,195,235,.16);
  background: rgba(255,255,255,.72);
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.submit-button {
  padding: 9px 15px;
  border: 1px solid var(--ink-strong);
  border-radius: 5px;
  background: var(--ink-strong);
  color: white;
  cursor: pointer;
}

.submit-button:disabled { opacity: .58; cursor: wait; }
.modal-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.form-status { color: var(--ink-soft); font-size: 13px; line-height: 20px; }

.past-modal {
  width: min(92vw, 640px);
  max-height: min(86vh, 720px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.past-modal::backdrop {
  background: rgba(15, 23, 42, .12);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.past-window {
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 720px);
  border: 1px solid rgba(255, 255, 255, .6);
  border-top-color: rgba(255, 255, 255, .95);
  border-radius: 12px;
  background: rgba(255, 255, 255, .32);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .45), inset 0 1px 0 rgba(255, 255, 255, .85);
  backdrop-filter: blur(38px) saturate(2.2);
  -webkit-backdrop-filter: blur(38px) saturate(2.2);
  overflow: hidden;
}

.past-titlebar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  cursor: grab;
  touch-action: none;
}

.past-window.is-dragging .past-titlebar {
  cursor: grabbing;
}

.window-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: inset 0 0 1.5px 0 rgba(0, 0, 0, .35);
}

.window-dot--red {
  background: radial-gradient(circle at 32% 28%, #ff8a4d, #ff5f57 62%);
}
.window-dot--green {
  background: radial-gradient(circle at 32% 28%, #4ee06a, #28c840 62%);
}

.window-dot:hover { filter: brightness(1.08); }

.past-title {
  flex: 1;
  margin-right: 24px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.past-body {
  padding: 30px 34px 36px;
  overflow-y: auto;
}

.past-list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.past-list li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 25px;
}

.past-list li:last-child {
  margin-bottom: 0;
}

.past-list a[data-image-modal] {
  cursor: zoom-in;
}

.project-popup {
  width: min(90vw, 420px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  overflow: visible;
  opacity: 1;
  transform: scale(1);
  transition: opacity 260ms cubic-bezier(0.34, 1.56, 0.64, 1), transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), overlay 260ms ease allow-discrete, display 260ms ease allow-discrete;
}

.project-popup:not([open]) {
  opacity: 0;
  transform: scale(0.94);
}

@starting-style {
  .project-popup[open] {
    opacity: 0;
    transform: scale(0.94);
  }
}

.project-popup::backdrop {
  background: rgba(15, 23, 42, .18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.project-popup-window {
  border: 1px solid rgba(255, 255, 255, .6);
  border-top-color: rgba(255, 255, 255, .95);
  border-radius: 12px;
  background: rgba(255, 255, 255, .38);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .4), inset 0 1px 0 rgba(255, 255, 255, .8);
  backdrop-filter: blur(34px) saturate(2);
  -webkit-backdrop-filter: blur(34px) saturate(2);
  overflow: hidden;
}

.project-popup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
}

.project-popup-body {
  padding: 18px 20px 22px;
  max-height: 78vh;
  overflow-y: auto;
}

.project-popup-body img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 32vh;
  margin: 0 auto 14px;
  object-fit: contain;
  border-radius: 6px;
}

.project-popup-body h2 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 24px;
  font-weight: 400;
}

.project-popup-body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 22px;
}

.project-popup-body p:last-child {
  margin-bottom: 0;
}

.project-popup-links {
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 840px) {
  .site-header {
    width: min(100%, var(--content));
  }

  .primary-nav {
    gap: 15px;
  }

  .primary-nav a {
    font-size: 14px;
  }
}

@media (max-width: 1100px) {
  :root {
    --content: 528px;
    --media: 528px;
  }

  .carousel-shell {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }
}

@media (max-width: 640px) {
  .site {
    padding: 0 20px;
  }

  .backdrop {
    height: 14rem;
  }

  .site-header {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: center;
    padding-top: 18px;
    column-gap: 10px;
    row-gap: 8px;
  }

  .brand-lockup {
    gap: 6px;
  }

  .brand-mark {
    position: static;
    right: auto;
    width: 28px;
    flex-basis: 28px;
    margin-left: -36px;
  }

  .brand-mark.has-artwork,
  .brand-mark.has-artwork img {
    width: 36px;
    height: 27px;
  }

  .brand-mark.is-webgl,
  .brand-mark canvas {
    width: 104px;
    height: 52px;
  }

  .brand-mark.is-webgl {
    flex-basis: 104px;
  }

  .brand-name {
    font-size: 16px;
  }

  .recommend-icon {
    margin: 0 -4px 0 0;
  }

  .primary-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0 6px;
  }

  .primary-nav a,
  .primary-nav button.nav-link {
    font-size: 10.5px;
    line-height: 20px;
    white-space: nowrap;
  }

  .home-main {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .intro,
  .contact-copy {
    text-align: left;
  }

  .intro p {
    margin-bottom: 10px;
  }

  .carousel-shell {
    margin-top: 10px;
  }

  .carousel {
    border-radius: 12px;
    aspect-ratio: 16 / 11;
  }

  .contact-copy {
    margin-top: 12px;
  }

  .site-footer {
    padding-bottom: 14px;
  }

  .quote-item blockquote {
    font-size: 14px;
    line-height: 22px;
  }

  .page-main {
    padding-top: 52px;
  }

  .page-heading {
    font-size: 22px;
  }

  .entry-title {
    font-size: 15px;
    line-height: 22px;
  }

  .entry-subtitle,
  .entry-description {
    font-size: 13px;
    line-height: 20px;
  }

  .entry-group h2 {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 10px;
  }

  .library-list {
    grid-template-columns: 1fr;
    row-gap: 7px;
  }

  .library-list li {
    font-size: 13px;
    line-height: 21px;
  }

  .entry-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    align-items: start;
  }

  .entry-group-row .entry-group + .entry-group {
    margin-top: 0;
  }

  .entry-group-row + .entry-group {
    margin-top: 24px;
  }

  .recommend-glass {
    padding: 32px 23px 27px;
    border-radius: 14px;
  }

  .recommend-glass h2 { font-size: 26px; line-height: 34px; }

  .recommend-close { top: 13px; right: 14px; }

  .past-body {
    padding: 22px 20px 28px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .site-footer {
    font-size: 11px;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand-mark {
    animation: none;
  }

  .carousel-slide {
    transition: none;
  }

  .site-header,
  .intro,
  .carousel-shell .carousel,
  .contact-copy {
    animation: none;
  }
}
