:root {
  color-scheme: dark;
  /* Deep Onyx */
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: rgba(16, 16, 18, 0.82);
  --text: #e8e8ed;
  --muted: #8e8e93;
  --line: #3a3a3c;
  --accent: #3a3a3c;
  --accent-bright: rgba(232, 232, 237, 0.38);
  --radius: 10px;
  --ease-premium: cubic-bezier(0.4, 0, 0.2, 1);
  --soft-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.06);
  /* Nhãn phụ ~64% độ sáng so với chữ chính */
  --label-fg: rgba(232, 232, 237, 0.64);
  --page-bg: radial-gradient(120% 100% at 50% 0%, #0d0d0f 0%, var(--bg) 52%);
  --header-bg-scrolled: rgba(5, 5, 5, 0.76);
  --control-active-bg: rgba(232, 232, 237, 0.12);
  --interactive-hover: rgba(232, 232, 237, 0.05);
  --interactive-active: rgba(232, 232, 237, 0.09);
  --text-soft: rgba(232, 232, 237, 0.94);
  --overlay-bg: rgba(0, 0, 0, 0.52);
  --modal-surface: rgba(12, 12, 14, 0.82);
  --modal-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  --arrow-bg: rgba(8, 8, 10, 0.55);
  --arrow-hover-bg: rgba(232, 232, 237, 0.1);
  --case-image-surface: rgba(10, 10, 10, 0.6);
  --media-overlay-gradient: linear-gradient(180deg, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.92));
  --case-bg-start: #121214;
  --case-bg-end: #050505;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "kern" 1, "liga" 1;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.6rem;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease-premium), border-color 0.5s var(--ease-premium);
}

.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-logo {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.header-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-nav a:hover {
  color: var(--text);
}

.header-locale-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--glass);
  width: fit-content;
  flex-shrink: 0;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  min-width: 40px;
  cursor: pointer;
  transition: color 0.5s var(--ease-premium), background 0.5s var(--ease-premium);
}

.lang-btn + .lang-btn {
  border-left: 1px solid var(--line);
}

.lang-btn.active {
  background: var(--control-active-bg);
  color: var(--text);
  font-weight: 600;
}

.main-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  padding-bottom: clamp(4rem, 14vw, 7rem);
}

.section-label {
  margin: 0 0 0.65rem;
  color: var(--label-fg);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-section {
  position: relative;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.heading-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-feature-settings: "kern" 1, "liga" 1;
}

.hero-section h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.15rem, 4.8vw, 4.25rem);
  line-height: 1.06;
}

.hero-subtext {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  line-height: 1.6;
}

.cta-btn {
  width: fit-content;
  margin-top: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.5s var(--ease-premium), background 0.5s var(--ease-premium),
    color 0.5s var(--ease-premium), border-color 0.5s var(--ease-premium);
}

.cta-btn:hover {
  transform: translateY(-2px);
  background: rgba(232, 232, 237, 0.08);
  border-color: var(--accent-bright);
  color: var(--text);
}

.tech-hint {
  position: absolute;
  right: 0;
  top: 3rem;
  width: min(380px, 45vw);
  height: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  opacity: 0.55;
  overflow: hidden;
}

.tech-dot-grid {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(232, 232, 237, 0.22) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2));
}

.showcase-section {
  margin-top: 1rem;
}

.bento-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1.15fr 1.15fr 1fr;
  grid-template-rows: minmax(170px, 220px) auto;
  align-items: stretch;
}

.bento-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  padding: 1rem;
}

.card-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.card-featured {
  grid-column: 1 / span 2;
  grid-row: 1;
  overflow: hidden;
  padding: 0.65rem;
  position: relative;
}

.card-stack {
  grid-column: 3;
  grid-row: 1;
}

.card-stats {
  grid-column: 1;
  grid-row: 2;
}

.card-links {
  grid-column: 2 / span 2;
  grid-row: 2;
}

.showcase-track {
  display: flex;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.2rem;
}

.showcase-track::-webkit-scrollbar {
  height: 6px;
}

.showcase-track::-webkit-scrollbar-thumb {
  background: rgba(232, 232, 237, 0.22);
  border-radius: 999px;
}

.showcase-slide {
  position: relative;
  min-width: min(520px, 78%);
  height: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.5s var(--ease-premium), border-color 0.5s var(--ease-premium);
}

.showcase-slide.active {
  border-color: var(--accent-bright);
}

.showcase-slide:hover {
  transform: translateY(-2px);
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: var(--media-overlay-gradient);
  padding: 0.9rem;
}

.showcase-overlay h3 {
  margin: 0.33rem 0;
  font-size: 1.04rem;
}

.showcase-overlay p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.card-stack h3 {
  margin: 0.6rem 0 0.5rem;
  font-size: 1rem;
}

.card-stack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-stats .stats-grid {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.7rem;
}

.card-stats strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
}

.card-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.card-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-links a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  transition: transform 0.5s var(--ease-premium), border-color 0.5s var(--ease-premium),
    color 0.5s var(--ease-premium);
}

.card-links a:hover {
  transform: translateX(4px);
  border-color: var(--accent-bright);
  color: var(--text);
}

.projects-section {
  margin-top: 2.6rem;
}

.projects-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.projects-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.projects-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
}

.projects-table thead tr {
  border-bottom: 1px solid var(--line);
}

.projects-table th,
.projects-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.75rem;
  font-size: 0.86rem;
}

.projects-table th {
  color: var(--label-fg);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projects-table tbody tr {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.5s var(--ease-premium), color 0.5s var(--ease-premium);
}

.projects-table tbody tr:last-child {
  border-bottom: 0;
}

.projects-table tbody tr:hover {
  background: var(--interactive-hover);
}

.projects-table tbody tr.active {
  background: var(--interactive-active);
}

.project-detail {
  margin-top: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  display: grid;
  grid-template-columns: minmax(230px, 340px) 1fr;
  gap: 1rem;
}

.project-thumb-wrap {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: var(--glass);
  overflow: hidden;
}

.project-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--bg-2);
}

.project-thumb-fallback {
  width: 100%;
  height: 220px;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  display: none;
}

.project-meta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.project-meta p {
  margin: 0.15rem 0;
  color: var(--muted);
}

.preview-links {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preview-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  padding: 0.42rem 0.56rem;
  font-size: 0.8rem;
  transition: border-color 0.5s var(--ease-premium);
}

.preview-links a:hover {
  border-color: var(--accent-bright);
}

.meta-grid {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.meta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  padding: 1rem;
}

.meta-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.meta-grid li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.5rem;
  padding: 0.32rem 0;
}

.meta-grid li span {
  color: var(--muted);
  font-size: 0.84rem;
}

.meta-grid li p,
.meta-grid li a {
  margin: 0;
  text-decoration: none;
  word-break: break-word;
}

.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1rem;
}

.skills-columns h3 {
  margin: 0 0 0.3rem;
  font-size: 0.94rem;
}

.skills-columns p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-reveal), transform 1s var(--ease-reveal);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 950px) {
  .header-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
  }

  .header-locale-row {
    align-self: flex-end;
  }

  .header-nav {
    gap: 0.7rem;
    font-size: 0.74rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 2.5rem;
  }

  .tech-hint {
    position: static;
    width: 100%;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .card-featured {
    min-height: 290px;
  }

  .card-featured,
  .card-stack,
  .card-stats,
  .card-links {
    grid-column: auto;
    grid-row: auto;
  }

  .showcase-slide {
    min-width: 86%;
  }

  .project-detail,
  .meta-grid,
  .skills-columns {
    grid-template-columns: 1fr;
  }

  .projects-table th,
  .projects-table td {
    padding: 0.72rem 0.5rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 650px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 1rem;
  }

  .header-right {
    width: 100%;
    align-items: stretch;
  }

  .header-nav {
    justify-content: space-between;
  }

  .header-locale-row {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    margin-top: 0.15rem;
  }
}

/* Deep Onyx — layout tokens (override base :root) */
:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --text: #e8e8ed;
  --muted: #8e8e93;
  --line: #3a3a3c;
  --accent: #3a3a3c;
  --accent-bright: rgba(232, 232, 237, 0.38);
  --surface: rgba(14, 14, 16, 0.88);
  --soft-shadow: 0 28px 64px rgba(0, 0, 0, 0.72);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.07);
  --page-bg: radial-gradient(120% 100% at 50% 0%, #0d0d0f 0%, var(--bg) 52%);
  --header-bg-scrolled: rgba(5, 5, 5, 0.76);
  --control-active-bg: rgba(232, 232, 237, 0.12);
  --interactive-hover: rgba(232, 232, 237, 0.05);
  --interactive-active: rgba(232, 232, 237, 0.09);
  --text-soft: rgba(232, 232, 237, 0.94);
  --overlay-bg: rgba(0, 0, 0, 0.52);
  --modal-surface: rgba(12, 12, 14, 0.82);
  --modal-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  --arrow-bg: rgba(8, 8, 10, 0.55);
  --arrow-hover-bg: rgba(232, 232, 237, 0.1);
  --case-image-surface: rgba(10, 10, 10, 0.6);
  --media-overlay-gradient: linear-gradient(180deg, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.92));
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fffcf5;
  --bg-2: #f3eee4;
  --text: #1d1713;
  --muted: #6f645b;
  --line: #dcccbc;
  --accent: #ccb8a4;
  --accent-bright: rgba(58, 44, 31, 0.28);
  --surface: rgba(255, 250, 242, 0.88);
  --soft-shadow: 0 18px 40px rgba(130, 100, 70, 0.14);
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(170, 140, 110, 0.24);
  --label-fg: rgba(42, 32, 24, 0.68);
  --page-bg: radial-gradient(120% 100% at 50% 0%, #fffaf1 0%, #fffcf5 58%);
  --header-bg-scrolled: rgba(255, 252, 245, 0.82);
  --control-active-bg: rgba(58, 44, 31, 0.1);
  --interactive-hover: rgba(58, 44, 31, 0.06);
  --interactive-active: rgba(58, 44, 31, 0.1);
  --text-soft: rgba(29, 23, 19, 0.92);
  --overlay-bg: rgba(255, 252, 245, 0.68);
  --modal-surface: rgba(255, 250, 242, 0.9);
  --modal-shadow: 0 30px 70px rgba(118, 87, 57, 0.2);
  --arrow-bg: rgba(255, 250, 242, 0.9);
  --arrow-hover-bg: rgba(58, 44, 31, 0.08);
  --case-image-surface: rgba(245, 236, 223, 0.75);
  --media-overlay-gradient: linear-gradient(180deg, rgba(255, 252, 245, 0), rgba(255, 252, 245, 0.9));
  --case-bg-start: #f5ede2;
  --case-bg-end: #fffcf5;
}

html,
body {
  background: var(--page-bg);
  color: var(--text);
  scroll-behavior: auto;
}

.hidden {
  display: none !important;
}

.site-header {
  padding: 0.9rem 1.6rem;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--header-bg-scrolled);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand-logo,
.hero-section h1,
.header-nav a,
.view-btn {
  color: var(--text);
}

.brand-tagline,
.hero-subtext,
.section-label {
  color: var(--muted);
}

.header-nav a {
  color: var(--muted);
}

.header-nav a:hover {
  color: var(--text);
}

.main-layout {
  --main-gutter: clamp(1rem, 4vw, 1.6rem);
  width: 100%;
  max-width: none;
  padding: clamp(1.25rem, 3vw, 2rem) var(--main-gutter) clamp(4.5rem, 14vw, 8rem);
}

.header-nav {
  align-items: center;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-right: 0.4rem;
}

.view-btn {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.36rem 0.62rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.view-btn + .view-btn {
  border-left: 1px solid var(--line);
}

.view-btn.active {
  background: var(--control-active-bg);
  color: var(--text);
}

.theme-toggle-btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.36rem 0.62rem;
  min-width: 46px;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  cursor: pointer;
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.theme-toggle-btn:hover {
  color: var(--text);
  border-color: var(--accent-bright);
}

.header-nav a.active-link {
  color: var(--text);
}

.hero-section {
  min-height: auto;
  padding: clamp(3.25rem, 9vw, 5.5rem) 0 clamp(3rem, 8vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-section h1 {
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  max-width: 980px;
  line-height: 1.06;
}

.hero-subtext {
  max-width: 760px;
}

.content-view {
  padding-top: clamp(2.25rem, 6vw, 4rem);
}

/* Gallery: full-bleed width; other sections keep main gutter */
#galleryView {
  margin-inline: calc(-1 * var(--main-gutter));
  width: calc(100% + 2 * var(--main-gutter));
  max-width: 100vw;
  box-sizing: border-box;
}

@media (max-width: 650px) {
  .main-layout {
    --main-gutter: 1rem;
    padding: 1rem;
  }
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.25rem) clamp(1rem, 2vw, 1.35rem);
  align-items: start;
  width: 100%;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease-reveal), opacity 0.35s var(--ease-reveal);
}

.gallery-item:hover {
  transform: translateY(-2px);
}

.gallery-item.active {
  opacity: 0.92;
}

.gallery-media {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: transparent;
  aspect-ratio: 4 / 5;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translate3d(var(--img-px, 0px), var(--img-py, 0px), 0) scale(1);
  transition: transform 0.35s var(--ease-reveal);
  will-change: transform;
}

.gallery-title {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-media img {
    transform: none !important;
  }
}

.index-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
}

.projects-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--label-fg);
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid var(--line);
}

.projects-table td {
  padding: 0.75rem 0.45rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.projects-table th:first-child,
.projects-table td:first-child {
  padding-left: 0;
}

.projects-table tbody tr {
  transition: background 0.35s ease;
}

.projects-table tbody tr:hover {
  background: var(--interactive-hover);
}

.projects-table tbody tr.active {
  background: var(--interactive-active);
}

.index-preview {
  display: none;
}

.index-preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: transparent;
}

.index-preview-meta {
  padding: 0.65rem 0;
}

.index-preview-meta p {
  margin: 0;
  font-size: 0.82rem;
}

.project-detail-section {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.project-detail-head h2 {
  margin: 0.25rem 0 0.2rem;
  font-size: 1.5rem;
}

.project-detail-head p {
  margin: 0;
}

.detail-slider {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.detail-nav {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.detail-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.detail-track {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.detail-rail {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-slide {
  min-width: 100%;
  margin: 0;
  height: min(76vh, 760px);
  display: grid;
  place-items: center;
}

.detail-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.skills-showcase {
  margin-top: clamp(3.5rem, 12vw, 7rem);
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
  display: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.skill-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.8rem;
  box-shadow: var(--soft-shadow);
}

.skill-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skill-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-card li {
  margin: 0.25rem 0;
  font-size: 0.87rem;
  line-height: 1.45;
}

.studio-info {
  margin-top: clamp(3.5rem, 11vw, 6.5rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}

.studio-info p {
  margin: 0 0 0.45rem;
  line-height: 1.55;
}

#aboutStudioBody {
  list-style: none;
  margin: 0;
  padding: 0;
}

#aboutStudioBody li {
  margin: 0.25rem 0;
  font-size: 0.87rem;
  line-height: 1.45;
}

.about-page {
  margin-top: clamp(0.6rem, 1.8vw, 1.2rem);
}

.about-skills {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.about-page .skills-grid {
  gap: clamp(0.9rem, 2vw, 1.4rem);
}

.about-page .skill-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.about-page .skill-card h3 {
  margin: 0 0 0.45rem;
}

.about-line {
  height: 1px;
  background: var(--line);
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.about-main-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.about-main-grid > article:first-child {
  grid-column: span 2;
}

.about-main-grid p {
  margin: 0 0 0.45rem;
  line-height: 1.55;
}

#aboutServicesList,
#aboutContactList {
  list-style: none;
  margin: 0;
  padding: 0;
}

#aboutServicesList li,
#aboutContactList li {
  margin: 0.25rem 0;
  font-size: 0.87rem;
  line-height: 1.45;
}

#aboutContactList .phone-reveal details {
  display: inline;
}

#aboutContactList .phone-reveal summary {
  display: inline;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#aboutContactList .phone-reveal summary::-webkit-details-marker {
  display: none;
}

#aboutContactList .phone-reveal details[open] summary {
  margin-right: 0.38rem;
}

.about-office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.about-office-grid p {
  margin: 0 0 0.45rem;
  line-height: 1.55;
}

.studio-info a {
  color: inherit;
}

@media (max-width: 960px) {
  .gallery-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .index-wrap {
    grid-template-columns: 1fr;
  }

  .index-preview {
    position: static;
    max-width: min(420px, 100%);
  }

  .studio-info {
    grid-template-columns: 1fr;
  }

  .about-main-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-main-grid > article:first-child {
    grid-column: span 2;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-slider {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .gallery-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-nav {
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
  }

  .gallery-list {
    gap: 1.35rem 1rem;
  }

  .projects-table th:nth-child(3),
  .projects-table td:nth-child(3) {
    display: none;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-main-grid,
  .about-office-grid {
    grid-template-columns: 1fr;
  }
}

.case-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.2rem;
}

.case-left-column {
  position: sticky;
  top: 0;
  align-self: start;
}

.case-info-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.case-info-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
}

.case-info-body {
  margin-top: 0.35rem;
}

.case-back {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
}

.case-hero-meta h2 {
  margin: 0.4rem 0 0.4rem;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.case-left-column h2.heading-display {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.case-hero-meta p {
  margin: 0.15rem 0;
}

.case-description {
  margin: clamp(1.25rem, 3vw, 1.85rem) 0 0;
  line-height: 1.7;
  font-size: 0.92rem;
  color: var(--text-soft);
  white-space: pre-line;
}

.case-info-body > p:not(.case-description) {
  color: var(--text);
}

.case-info-bar {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.3rem;
}

.case-info-bar p {
  margin: 0;
  font-size: 0.82rem;
}

.case-info-bar strong {
  margin-right: 0.3rem;
  color: var(--label-fg);
  font-weight: 600;
}

.next-project-btn {
  margin-top: 0.9rem;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--control-active-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.next-project-btn:hover {
  background: var(--arrow-hover-bg);
  border-color: var(--accent-bright);
}

/* Case study modal overlay */
body.case-open {
  overflow: hidden;
}

.case-study {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: clamp(0.8rem, 2.2vw, 1.6rem);
  background: var(--overlay-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
}

.case-panel {
  width: min(1220px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--modal-surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 1.2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--modal-shadow);
}

.case-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.case-slider-wrap {
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(86vh, 920px);
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

.case-slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 40;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--arrow-bg);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.case-slide-arrow:hover:not(:disabled) {
  background: var(--arrow-hover-bg);
  border-color: var(--accent-bright);
}

.case-slide-arrow:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.case-slide-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.case-slide-arrow--prev {
  left: clamp(0.45rem, 1.8vw, 0.85rem);
}

.case-slide-arrow--next {
  right: clamp(0.45rem, 1.8vw, 0.85rem);
}

.case-slide-track {
  position: relative;
  height: min(90vh, 960px);
  background: radial-gradient(120% 110% at 50% 18%, var(--case-bg-start) 0%, var(--case-bg-end) 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
  touch-action: pan-y;
  transition: background 0.5s ease;
}

.case-stack-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(300px, 52vw, 640px);
  max-height: min(82vh, 880px);
  aspect-ratio: 3 / 4;
  transform: translate3d(calc(var(--card-x, 0px) + var(--drag-x, 0px)), 0, 0)
    perspective(1300px)
    scale(var(--card-scale, 1)) rotateY(var(--card-ry, 0deg)) rotate(var(--drag-rot, 0deg));
  opacity: var(--card-opacity);
  z-index: var(--card-z, 1);
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
  filter: blur(var(--card-blur, 0px));
  pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-origin: center center;
  contain: layout paint style;
  user-select: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.case-slide-track.no-motion .case-stack-card {
  transition: none !important;
}

.case-stack-card.is-top {
  z-index: 30;
  pointer-events: auto;
  cursor: grab;
  transform: translate3d(var(--drag-x, 0px), 0, 0) perspective(1300px)
    scale(1) rotateY(0deg) rotate(var(--drag-rot, 0deg));
}

.case-stack-card.is-top.dragging {
  cursor: grabbing;
}

.case-stack-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(var(--img-parallax-x, 0px), var(--img-parallax-y, 0px), 0) scale(1.02);
  transition: transform 0.45s var(--ease-reveal);
  pointer-events: none;
  -webkit-user-drag: none;
}

.case-stack-card.is-top.dragging img {
  transition-duration: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .case-stack-card img {
    transform: none !important;
    transition: none;
  }
}

@media (max-width: 960px) {
  .case-layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .case-left-column {
    position: static;
  }

  .case-panel {
    max-height: calc(100vh - 1rem);
  }

  .case-slider-wrap {
    min-height: auto;
  }

  .case-slide-track {
    height: min(74vh, 720px);
  }

  .case-stack-card {
    width: clamp(260px, 58vw, 520px);
    max-height: min(72vh, 760px);
  }
}

@media (max-width: 768px) {
  .case-study {
    padding: 0.35rem;
    backdrop-filter: none;
  }

  .case-panel {
    width: 100%;
    max-height: calc(100dvh - 0.7rem);
    border-radius: 10px;
    padding: 0.75rem;
    overflow: hidden;
  }

  .case-layout {
    gap: 0.65rem;
  }

  .case-right-column {
    position: relative;
    z-index: 2;
  }

  .case-left-column {
    position: static;
    z-index: auto;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .case-info-head {
    margin-bottom: 0.2rem;
  }

  .case-info-toggle {
    display: inline-flex;
  }

  .case-left-column h2 {
    font-size: 1.05rem;
    margin: 0.1rem 0;
  }

  .case-info-body {
    margin-top: 0.25rem;
    max-height: 32dvh;
    overflow: auto;
    padding-right: 0.1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .case-info-body::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .case-description {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .case-study.mobile-info-collapsed .case-info-body {
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    padding-right: 0;
  }

  .case-study.mobile-info-collapsed .case-info-body > :not(.next-project-btn) {
    display: none;
  }

  .case-study.mobile-info-collapsed .next-project-btn {
    margin-top: 0.1rem;
  }

  .case-slider-wrap {
    min-height: 68dvh;
  }

  .case-slide-track {
    height: clamp(400px, 68dvh, 680px);
    touch-action: none;
  }

  .case-stack-card {
    width: clamp(240px, 82vw, 480px);
    max-width: 96%;
    max-height: min(64dvh, 620px);
    --card-blur: 0px !important;
  }

  .case-slide-arrow {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .case-panel {
    padding: 0.62rem;
  }

  .case-slider-wrap {
    min-height: 62dvh;
  }

  .case-slide-track {
    height: clamp(360px, 62dvh, 580px);
  }

  .case-stack-card {
    width: clamp(220px, 88vw, 440px);
    max-height: min(58dvh, 540px);
  }

  .next-project-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.7rem;
  }
}

/* Project detail page style inspired by soup.work layout */
body.case-open {
  overflow: auto;
}

.case-study {
  position: relative;
  inset: auto;
  z-index: 10;
  padding: clamp(2rem, 6vw, 4rem) 0 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: block;
}

.case-panel {
  width: 100%;
  max-height: none;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.case-layout {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: start;
}

.case-left-column {
  position: sticky;
  top: 92px;
}

.case-right-column {
  min-width: 0;
}

.case-slide-counter {
  margin: 0;
  color: var(--label-fg);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.case-slider-wrap {
  min-height: auto;
  border-radius: 0;
  overflow: visible;
}

.case-slide-track {
  height: 100%;
  background: transparent;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: row;
  gap: 0;
  touch-action: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.case-image-item {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  height: 100%;
  min-height: 100%;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  display: grid;
  place-items: center;
  background: transparent;
  scroll-snap-align: start;
}

.case-image-item img,
.case-image-item video.case-slide-media {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center;
  aspect-ratio: auto !important;
  background: transparent;
  transform: none !important;
}

/* Keep project detail images fully visible inside the frame */
#caseStudyView .case-slider-wrap {
  height: calc(100dvh - 7rem);
}

#caseStudyView .case-slide-track {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

#caseStudyView .case-image-item {
  height: 100%;
  min-height: 100%;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  padding: 0;
}

#caseStudyView .case-image-item img,
#caseStudyView .case-image-item video.case-slide-media {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.case-slide-arrow {
  display: none !important;
}

@media (max-width: 768px) {
  .case-image-item {
    height: 100%;
    min-height: 100%;
    flex: 0 0 100%;
  }

  .case-image-item img,
  .case-image-item video.case-slide-media {
    width: 100% !important;
    height: 100% !important;
  }

  #caseStudyView .case-slider-wrap {
    height: calc(100dvh - 6rem);
  }
}

@media (max-width: 480px) {
  #caseStudyView .case-slider-wrap {
    height: calc(100dvh - 5.5rem);
  }
}

.project-minimal {
  min-height: 100dvh;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  padding: 0.5rem 0 1.2rem;
}

.project-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.project-minimal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0 1rem 0.55rem;
}

.project-topbar-nav {
  display: inline-flex;
  align-items: baseline;
  gap: 0.9rem;
}

.project-back-link {
  text-decoration: none;
  color: inherit;
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  line-height: 1;
}

.project-next-link {
  text-decoration: none;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.15vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.project-next-link:hover {
  color: var(--text);
}

.project-counter {
  margin: 0;
  color: inherit;
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.project-gallery-wrap {
  min-width: 0;
}

.project-gallery {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
  padding: 0 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
}

.project-gallery::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.project-slide {
  flex: 0 0 min(35vw, 520px);
  margin: 0;
  height: min(80vh, 820px);
  scroll-snap-align: start;
  background: transparent;
}

.project-slide--meta {
  flex-basis: min(62vw, 920px);
  background: var(--surface);
}

.project-meta-card {
  height: 100%;
  overflow: auto;
  padding: clamp(1rem, 2.2vw, 1.8rem);
  font-family: var(--font-sans);
  color: var(--text);
}

.project-meta-card h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.15;
}

.project-meta-body {
  max-width: 780px;
  margin: 0 0 0.65rem;
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  line-height: 1.45;
}

.project-meta-description-block .project-meta-body:last-child {
  margin-bottom: 0;
}

.project-meta-facts {
  margin: clamp(0.85rem, 2.5vh, 1.25rem) 0 clamp(1rem, 3vh, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-meta-fact {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  column-gap: 1rem;
  align-items: start;
}

.project-meta-fact-label,
.project-meta-fact-value {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
}

.project-meta-fact-label {
  color: var(--muted);
}

.project-meta-fact-value--block {
  display: block;
}

.project-meta-section-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-meta-description-block .project-meta-section-title {
  margin-top: 0;
}

.project-meta-deliverable {
  margin-top: clamp(1rem, 3vh, 1.75rem);
}

.project-meta-deliverable-lead {
  margin: 0 0 0.75rem;
  max-width: 780px;
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  line-height: 1.45;
}

.project-meta-deliverable-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-meta-deliverable-subtitle {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.project-meta-deliverable-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.45;
  color: var(--text);
}

.project-meta-deliverable-list li {
  margin-bottom: 0.2rem;
}

.project-slide img,
.project-slide video.project-slide-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.project-empty {
  margin: 0;
  font-size: 1.15rem;
  padding: 1rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .project-gallery {
    gap: 1rem;
  }

  .project-slide {
    flex-basis: min(76vw, 460px);
  }

  .project-slide--meta {
    flex-basis: min(90vw, 680px);
  }

  .project-slide {
    height: min(72vh, 640px);
  }

  .project-meta-fact {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }
}
