:root {
  color-scheme: dark;
  --bg: #000;
  --bg-soft: #0a0a0a;
  --bg-glow: rgba(255, 64, 64, 0.22);
  --text: #f5f5f2;
  --muted: #b6b6b2;
  --muted-strong: #8f8f89;
  --accent: #ff6b6b;
  --accent-strong: #ff2e2e;
  --stroke: rgba(255, 255, 255, 0.12);
  --card-overlay: rgba(12, 12, 16, 0.72);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --topbar-height: 80px;
  --info-bar-height: 96px;
  font-size: 16px;
}

html {
  overflow-y: scroll;
}

.project-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 120px clamp(20px, 4vw, 48px) 48px;
  position: relative;
  overflow-x: hidden;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: -20% -10% 0;
  background: none;
  opacity: 0.8;
  pointer-events: none;
  z-index: -2;
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.25;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

.topbar {
  display: grid;
  align-items: start;
  grid-template-rows: auto 1fr;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--topbar-height);
  z-index: 10;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.6));
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  position: relative;
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: 10px;
  margin-left: auto;
}

.topbar__nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.topbar__nav-btn,
.topbar__gallery,
.menu-toggle,
.view-toggle--p5 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  background: rgba(0, 0, 0, 0.85);
  border: none;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  opacity: 0.9;
}

.topbar__nav-btn:hover,
.topbar__gallery:hover,
.menu-toggle:hover,
.view-toggle--p5:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.95);
}

.topbar__nav-btn {
  min-width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  padding: 2px 10px 0;
}

.topbar__gallery {
  width: 40px;
  height: 40px;
  opacity: 0.9;
}

.topbar__gallery svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  display: block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  margin-left: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-family: "Syne", sans-serif;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.brand-text {
  font-size: 2.2rem;
}

.menu-toggle {
  gap: 14px;
  padding: 10px 18px;
  margin-right: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.menu-toggle__icon {
  width: 24px;
  height: 14px;
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease;
}

.menu-toggle__icon::before {
  top: 0;
}

.menu-toggle__icon::after {
  bottom: 0;
}

.menu-toggle.is-open .menu-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-open {
}

.topbar__panel {
  border: none;
  padding: 0;
  background: transparent;
  display: grid;
  gap: 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
}

.topbar.is-open .topbar__panel {
  max-height: clamp(88px, 14vh, 150px);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.topbar__panel .menu-panel__inner,
.topbar__panel .menu-panel__footer {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.topbar.is-open .topbar__panel .menu-panel__inner,
.topbar.is-open .topbar__panel .menu-panel__footer {
  opacity: 1;
  transform: translateY(0);
}

.menu-panel__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(20px, 4vw, 48px) 2px;
  font-family: "Syne", sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  flex-wrap: wrap;
}

.menu-panel__inner a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-panel__inner a:hover {
  color: var(--accent-strong);
}

.menu-panel__footer {
  display: grid;
  gap: 8px;
  padding: 0 clamp(20px, 4vw, 48px) 12px;
  color: var(--muted);
}

.menu-panel__footer p {
  margin: 0;
  line-height: 1.2;
  font-style: italic;
}

.menu-panel__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.menu-panel__links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.hero {
  position: relative;
  margin: -120px calc(-1 * clamp(20px, 4vw, 48px)) 0;
  padding: calc(120px + clamp(48px, 10vw, 96px)) clamp(24px, 6vw, 80px);
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  overflow: hidden;
  min-height: clamp(360px, 60vh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gif {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.95) 100%);
  z-index: 1;
}

.hero__content {
  max-width: 680px;
  display: grid;
  gap: 22px;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  padding: clamp(16px, 2.5vw, 28px);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(2px);
}

.hero__text {
  display: grid;
  gap: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin: 0;
}

.hero__sub {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
}


.about-page .about-points {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.about-page .about-point {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.about-page .about-point h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.about-page .about-point p {
  margin: 0;
  line-height: 1.6;
}

.about-page .about-point span {
  font-style: italic;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.hero__actions {
  display: flex;
  position: relative;
  z-index: 2;
  gap: 12px;
  flex-wrap: wrap;
}

.pill,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
}

.pill {
  background: var(--accent-strong);
  color: #0b0b0c;
}

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.work {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.project-viewbox {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 13, 0.7);
  box-shadow: var(--shadow);
}

.project-display {
  position: relative;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  transform: none;
  margin-top: 16px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0b0c;
}

.project-page-html {
  overflow: hidden;
  height: 100%;
}

.project-page {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

.project-page .site-shell {
  height: 100vh;
  padding: 0;
}

.project-page:not(.is-scroll) .site-shell {
  padding-bottom: 0;
  min-height: 100vh;
  overflow: hidden;
}

.project-page-html.is-scroll {
  overflow-y: auto;
  height: auto;
}

.project-scroll {
  height: 100vh;
  overflow: hidden;
  width: 100%;
}

.project-page.is-scroll .project-scroll {
  height: 100vh;
  overflow-y: auto;
}

.project-page.is-scroll .site-shell {
  height: auto;
}

.project-page .project-display {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  transform: none;
  margin-top: 0;
  height: 100vh;
  border-radius: 0;
}

.project-page .project-display__frame {
  height: 100vh;
}

.project-page .project-display.is-contained {
  height: calc(100vh - var(--topbar-height));
  margin-top: var(--topbar-height);
}

.project-page .project-display.is-contained .project-display__frame {
  height: calc(100vh - var(--topbar-height) - var(--info-bar-height) - var(--info-bar-offset, 0px));
}

.project-page .project-display.is-video-contained {
  height: calc(100vh - var(--topbar-height));
  margin-top: var(--topbar-height);
}

.project-page .project-display.is-video-contained .project-display__frame {
  height: calc(100vh - var(--topbar-height) - var(--info-bar-height) - var(--info-bar-offset, 0px));
  background: #000;
}

.project-page .project-display.is-video-contained .project-display__frame video {
  object-fit: contain;
  background: #000;
}

.project-details {
  padding: 80px clamp(20px, 4vw, 48px) 120px;
  display: grid;
  gap: 48px;
}

.project-page:not(.is-scroll) .project-details {
  display: none;
}

.project-details h2 {
  margin: 0 0 16px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.project-gallery__item {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.project-gallery__item img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.project-gallery__item video {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-gallery__item:hover img {
  transform: scale(0.97);
}

.project-gallery__item:hover video {
  transform: scale(0.97);
  transition: transform 0.2s ease;
}


.project-body {
  display: grid;
  gap: 10px;
  max-width: min(75vw, 980px);
  width: 100%;
  color: var(--muted);
  line-height: 1.7;
}

.project-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.project-body video,
.project-body iframe {
  max-width: 100%;
}

.project-body p,
.project-body a,
.project-body li,
.project-body blockquote {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-body pre {
  max-width: 100%;
  overflow-x: auto;
}

.project-body__figure {
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.project-body__figure figcaption {
  text-align: center;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.project-body p {
  margin: 0 0 8px;
}

.project-body p + p {
  margin-top: 4px;
}

.project-body h1,
.project-body h2,
.project-body h3,
.project-body h4,
.project-body h5,
.project-body h6 {
  margin: 20px 0 10px;
  color: var(--text);
}

.project-body h2 {
  position: relative;
  padding-bottom: 6px;
}

.project-body h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  margin-top: 6px;
}

.project-body ul,
.project-body ol,
.project-body blockquote,
.project-body pre,
.project-body hr {
  margin: 16px 0;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.project-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__content {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
}

.lightbox__content img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox__content video {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox__nav,
.lightbox__close {
  position: absolute;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox__close {
  top: 24px;
  right: 24px;
}

.lightbox__nav--left {
  left: 24px;
}

.lightbox__nav--right {
  right: 24px;
}

.project-page .project-info-bar {
  border-radius: 0;
}

.project-display__frame {
  width: 100%;
  height: clamp(420px, 70vh, 820px);
  background: #0b0b0c;
}

.project-display__frame iframe,
.project-display__frame video,
.project-display__frame img {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

.view-toggle--p5 {
  position: fixed;
  top: calc(var(--topbar-height) + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 12;
  background: rgba(0, 0, 0, 0.45) !important;
}

.view-toggle--p5:hover {
  transform: translateX(-50%) translateY(-1px);
  background: rgba(0, 0, 0, 0.6) !important;
}

.view-toggle--p5.is-hidden {
  display: none;
}

.view-toggle--p5.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.project-info-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - var(--info-bar-height));
  bottom: auto;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  color: var(--text);
  border: none;
  text-align: left;
  padding: 20px clamp(20px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, max-height 0.25s ease, opacity 0.2s ease;
  height: var(--info-bar-height);
  max-height: var(--info-bar-height);
  overflow: hidden;
  opacity: 0.65;
  transform: translateY(0);
  will-change: transform, max-height, opacity;
}

.project-info-bar:hover {
  opacity: 0.95;
}

.project-info-bar h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 2.2rem;
}

.project-info-bar__title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}



.project-info-bar__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  margin-top: -2px;
}

.project-info-bar__date {
  border: none;
  padding: 4px 14px;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.project-info-bar__tags {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-info-bar p {
  margin: 0;
  color: var(--muted);
}

.project-info-bar__text p {
  display: block;
}

.project-info-bar__text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin: auto 0;
  width: 100%;
  text-align: right;
}

@media (max-width: 720px) {
  .project-info-bar {
    max-height: 140px;
  }

  .project-info-bar__text {
    gap: 10px;
  }

  .project-info-bar__meta {
    align-items: flex-end;
    text-align: right;
  }
}

@media (max-width: 1100px) {
  .project-info-bar {
    max-height: none;
  }
}

.project-info-bar__extra {
  display: grid;
  gap: 10px;
  color: var(--muted);
  visibility: hidden;
  opacity: 0;
  transform: translateY(0);
  max-height: 0;
  overflow: hidden;
  margin-top: 12px;
  transition: opacity 0.2s ease, max-height 0.25s ease, visibility 0s linear 0.25s;
}

.project-info-bar__desc {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.project-info-bar__desc p {
  margin: 0;
}

.project-info-bar__toggle {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.project-info-bar.is-open {
  height: auto;
  max-height: 360px;
  opacity: 1;
  transform: translateY(calc(var(--info-bar-height) - 100%));
  transition: transform 0.3s ease, max-height 0.35s ease, opacity 0.3s ease;
}

.project-info-bar.is-title-hover {
  height: auto;
  max-height: 280px;
  opacity: 0.95;
  transform: translateY(calc(var(--info-bar-height) - 100%));
}

.project-info-bar.is-open .project-info-bar__text p {
  display: block;
}

.project-info-bar.is-open .project-info-bar__extra {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  max-height: 260px;
  transition: opacity 0.2s ease, max-height 0.25s ease, visibility 0s linear 0s;
}

.project-info-bar.is-title-hover .project-info-bar__extra {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  max-height: 260px;
  transition: opacity 0.2s ease, max-height 0.25s ease, visibility 0s linear 0s;
}

.project-info-bar.is-collapsing {
  height: auto;
  max-height: calc(var(--info-bar-height) + var(--info-bar-offset, 0px));
  transform: translateY(0);
  transition: transform 0.25s ease, max-height 0.25s ease, opacity 0.2s ease;
}

.project-info-bar.is-collapsing .project-info-bar__extra {
  visibility: hidden;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.2s ease, max-height 0.25s ease, visibility 0s linear 0.25s;
}

.project-info-bar.is-hover-suppressed {
  max-height: 96px;
  opacity: 0.65;
  transition: transform 0.25s ease, max-height 0.25s ease, opacity 0.2s ease;
}

.project-info-bar.is-hover-suppressed .project-info-bar__extra {
  visibility: hidden;
  opacity: 0;
  max-height: 0;
}

.project-info-bar.is-open .project-info-bar__toggle::after {
  content: attr(data-open);
}

.project-info-bar__toggle::after {
  content: attr(data-closed);
}

.project-viewbox__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.view-toggle {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.view-toggle.is-active,
.view-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.project-viewbox__frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0b0b0c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.project-viewbox__frame iframe,
.project-viewbox__frame video,
.project-viewbox__frame img {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

.project-viewbox__meta {
  color: var(--muted);
}

.project-notes {
  display: grid;
  gap: 10px;
  padding: 18px 0 0;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-title h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
}

.work-card {
  position: relative;
  border-radius: 0;
  min-height: 260px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--bg-soft);
  overflow: hidden;
  border: none;
  box-shadow: none;
  isolation: isolate;
  transition: none;
}

.work-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  z-index: 0;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 0, 0, 0);
  transition: background 0.2s ease;
  z-index: 1;
}

.work-card:hover {
  transform: none;
}

/* .work-card:hover::after {
  background: rgba(200, 0, 0, 0.7);
} */

.work-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.work-meta {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
}

.work-card:hover .work-meta {
  opacity: 1;
  transform: translateY(0);
}

.work-card__link:focus-visible {
  outline: 2px solid rgba(255, 107, 107, 0.8);
  outline-offset: 4px;
}

.work-meta {
  display: grid;
  gap: 6px;
}

.work-meta h3 {
  margin: 0;
  font-size: 1.1rem;
}

.work-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.work-date {
  font-style: italic;
  color: #e3e3de;
  font-size: 0.95rem;
}


.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  color: var(--muted);
}

.project-footer {
  display: none;
  padding: 32px clamp(20px, 4vw, 48px) 80px;
}

.project-page.is-scroll .project-footer {
  display: grid;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 20;
}

.project-page.is-scroll .back-to-top {
  opacity: 0.85;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.85);
}

.footer-title {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.footer-copy {
  margin: 0;
  line-height: 1.6;
}

.footer-copy a {
  color: var(--accent);
  text-decoration: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateX(var(--panel-x)) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(var(--panel-x)) translateY(0);
  }
}

@media (max-width: 720px) {
  .topbar {
    top: 0;
    left: 0;
    right: 0;
  }

  .project-page .brand-text {
    display: none;
  }

  .menu-toggle__label {
    display: none;
  }

  .hero {
    padding: 36px 24px;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1200px) {
  .topbar,
  .menu-panel {
    left: 0;
    right: 0;
    width: auto;
    --panel-x: 0px;
    transform: translateX(var(--panel-x));
  }
}
