@import url('https://fonts.googleapis.com/css2?family=Bellefair&display=swap');

/* ---------------------------------------------------------------------------
   CSS variables (from index.css)
   --------------------------------------------------------------------------- */
:root {
  --color-background: #1f1f1f;
  --color-foreground: #e8e4dc;
  --color-primary: #b8944d;
  --color-muted: #333333;
  --color-muted-foreground: #8a8779;
  --color-border: #383838;

  --font-heading: 'Bellefair', serif;
  --font-body: 'Bellefair', serif;
  --radius: 0.25rem;

  --space-section-x: 1.5rem;
  --space-section-x-md: 3rem;
  --space-section-x-lg: 5rem;
  --space-section-y: 6rem;
  --space-section-y-md: 10rem;
  --space-gallery-gap: 1.5rem;
  --space-gallery-gap-md: 2rem;
}

@media (min-width: 768px) {
  :root {
    --space-section-x: 3rem;
    --space-gallery-gap: 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --space-section-x: 5rem;
  }
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
* {
  border-color: var(--color-border);
}

body {
  min-height: 100vh;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}
a {text-decoration: none;}

[x-cloak] {
  display: none !important;
}
/* ---------------------------------------------------------------------------
   Page layout
   --------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--space-section-x);
}

.header-label {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

a.header-label:hover {
  color: var(--color-foreground);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.site-nav__link {
  color: inherit;
  transition: color 0.2s;
}

.site-nav__link:hover {
  color: var(--color-foreground);
}

.site-nav__link.is-active {
  color: var(--color-foreground);
}

.site-nav__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-nav__desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-muted-foreground);
  cursor: pointer;
  position: fixed;
}

.site-nav__toggle::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.site-nav__toggle:hover {
  color: var(--color-foreground);
}

.site-nav__button {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.site-nav__button::after {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.5rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 6 5-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 6 5-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav__button[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.lang-menu,
.mobile-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lang-menu {
  min-width: 10rem;
  padding: 0.5rem;
  z-index: 50;
}

.lang-menu__form {
  margin: 0;
}

.lang-menu__item,
.mobile-menu__link {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  color: var(--color-muted-foreground);
  cursor: pointer;
}

.lang-menu__item {
  padding: 0.5rem 0.75rem;
}

.lang-menu__item:hover,
.lang-menu__item.is-active,
.mobile-menu__link:hover,
.mobile-menu__link.is-active {
  color: var(--color-foreground);
}

.mobile-menu {
  min-width: min(16rem, calc(100vw - 3rem));
  padding: 0.75rem;
  z-index: 60;
}

@media (min-width: 1080px) {
  .site-nav__desktop {
    display: inline-flex;
  }
  .site-nav__toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu__link {
  display: block;
  padding: 0.6rem 0.75rem;
  letter-spacing: inherit;
  text-transform: inherit;
}

.mobile-menu__divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.5rem 0;
}

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

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 10rem 1.5rem;
  }
}

.hero__label {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  margin: 0;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 4.375rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 5rem;
  }
}

.hero__divider {
  width: 4rem;
  height: 1px;
  background-color: var(--color-primary);
  margin: 2rem 0 1.5rem;
  border: 0;
}

.hero__tagline {
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--color-muted-foreground);
  margin: 0;
}

/* ---------------------------------------------------------------------------
   Section (works, about, contact)
   --------------------------------------------------------------------------- */
.section {
  padding-left: var(--space-section-x);
  padding-right: var(--space-section-x);
  padding-bottom: var(--space-section-y);
}

@media (min-width: 768px) {
  .section {
    padding-bottom: var(--space-section-y-md);
  }
}

.section__inner {
  padding-top: 5rem;
}

.section-title {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 3rem;
}

@media (min-width: 768px) {
  .section-title {
    margin-bottom: 4rem;
  }
}

.section-title--tight {
  margin-bottom: 2rem;
}

.section-title--small {
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------------------------
   Gallery grid (from index.css)
   --------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-gallery-gap);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-gallery-gap-md);
  }
}
@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-gallery-gap-md);
  }
}

.gallery-grid__detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gallery-gap);
}

@media (min-width: 768px) {
  .gallery-grid__detail {
    gap: var(--space-gallery-gap-md);
  }
}

/* ---------------------------------------------------------------------------
   Sculpture card
   --------------------------------------------------------------------------- */
.sculpture-card {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-gallery-gap);
  align-items: flex-start;
}

.sculpture-card__image-wrap {
  overflow: hidden;
  flex: 1 1 6rem;
  min-width: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.sculpture-card__badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
  color: var(--color-primary);
  opacity: 0.9;
  background: rgba(31, 31, 31, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.625rem;
  border: 1px solid rgba(56, 56, 56, 0.5);
}

@media (min-width: 768px) {
  .sculpture-card__image-wrap {
    flex: 1 1 8rem;
  }
}

/* Project card: 1 col under 768px, 3 cols from 768px; caption 1 col, from 768px 1/3 */
.sculpture-card--project {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gallery-gap);
}

@media (min-width: 768px) {
  .sculpture-card--project {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-gallery-gap-md);
  }
}

.sculpture-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gallery-gap);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .sculpture-card__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-column: 1 / -1;
    gap: var(--space-gallery-gap-md);
  }
}

.sculpture-card--project .sculpture-card__image-wrap {
  flex: none;
  min-width: unset;
}

.sculpture-card--project .sculpture-caption {
  grid-column: 1;
}

.sculpture-card__image {
  width: 100%;
  display: block;
  transition: transform 0.7s;
}

.sculpture-card:hover .sculpture-card__image {
  transform: scale(1.05);
}

.sculpture-caption {
  flex-basis: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.25rem;
}

.sculpture-name {
  font-size: 0.875rem;
  color: var(--color-foreground);
}

.sculpture-caption a.sculpture-name {
  text-decoration: none;
  transition: color 0.2s;
}

.sculpture-caption a.sculpture-name:hover {
  color: var(--color-primary);
}

.sculpture-meta {
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

/* ---------------------------------------------------------------------------
   About
   --------------------------------------------------------------------------- */
.about {
  max-width: 48rem;
}

.about__text {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--color-muted-foreground);
  margin: 0;
}

@media (min-width: 768px) {
  .about__text {
    font-size: 1.25rem;
  }
}

/* ---------------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------------- */
.contact__inner {
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact__inner {
    flex-direction: row;
  }
}

.contact__block {
  /* wrapper for title + detail */
}

.contact__detail {
  color: var(--color-muted-foreground);
  margin: 0;
}

.contact__footer {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

@media (min-width: 768px) {
  .contact__footer {
    text-align: right;
  }
}

.contact__footer p {
  margin: 0;
}

.contact__footer p + p {
  margin-top: 0.25rem;
}

.contact--bottom {
  padding-bottom: 4rem;
}

.prodej-legend {
  margin: 2rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* ---------------------------------------------------------------------------
   Inner pages — main H1 (Contact, Biography, Publications)
   --------------------------------------------------------------------------- */
.page-heading {
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.15;
  margin: 0 0 4rem;
}

@media (min-width: 768px) {
  .page-heading {
    font-size: 3.75rem;
  }
}

/* ---------------------------------------------------------------------------
   Inner pages — section shell (contact, biography, publications)
   --------------------------------------------------------------------------- */
.contact-page__section,
.bio-page__section,
.pub-page__section {
  padding: 4rem var(--space-section-x) 0;
}

.contact-page__section {
  max-width: 42rem;
}

@media (min-width: 768px) {
  .contact-page__section,
  .bio-page__section,
  .pub-page__section {
    padding-top: 6rem;
  }
}

.contact-page__title {
  margin-bottom: 1.5rem;
}

.contact-page__intro {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--color-muted-foreground);
  margin: 0 0 3rem;
}

.contact-page__link {
  color: var(--color-primary);
  transition: color 0.2s;
}

.contact-page__link:hover {
  color: var(--color-foreground);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form__label {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}

.contact-form__input {
  display: block;
  width: 90%;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-foreground);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form__input::placeholder {
  color: var(--color-muted-foreground);
}

.contact-form__input.resize-none {
  resize: none;
}

.contact-form__submit {
  display: inline-block;
  padding: 0.75rem 2rem;
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-background);
  background: var(--color-primary);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-form__submit:hover:not(:disabled) {
  opacity: 0.9;
}

.contact-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
   Biography / Publikace page
   --------------------------------------------------------------------------- */
.bio-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .bio-page__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.bio-page__text {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--color-muted-foreground);
}

.bio-page__text p {
  margin: 0;
}

@media (min-width: 1024px) {
  .bio-page__text {
    order: 1;
  }
}

.bio-page__image-wrap {
  order: 1;
}

@media (min-width: 1024px) {
  .bio-page__image-wrap {
    order: 2;
  }
}

.bio-page__image {
  width: 100%;
  display: block;
}

@media (min-width: 1024px) {
  .bio-page__image {
    position: sticky;
    top: 3rem;
  }
}

/* ---------------------------------------------------------------------------
   Publications / About page
   --------------------------------------------------------------------------- */
.pub-page__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pub-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s;
}

.pub-article:first-child {
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .pub-article {
    grid-template-columns: 200px 2fr 1fr;
    gap: 2.5rem;
  }
}

.pub-article__image-wrap {
  overflow: hidden;
}

.pub-article__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.7s;
}

@media (min-width: 768px) {
  .pub-article__image {
    width: 200px;
  }
}

.pub-article:hover .pub-article__image {
  transform: scale(1.05);
}

.pub-article__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pub-article__meta {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.pub-article__heading {
  font-size: 1.5rem;
  letter-spacing: 0.025em;
  margin: 0 0 0.75rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .pub-article__heading {
    font-size: 1.875rem;
  }
}

.pub-article__description {
  color: var(--color-muted-foreground);
  line-height: 1.625;
  margin: 0 0 0.5rem;
}

.pub-article__publisher {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin: 0;
}

.pub-article__link {
  color: var(--color-primary);
  transition: color 0.2s;
}

.pub-article__link:hover {
  color: var(--color-foreground);
}

.pub-odkazy {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.pub-odkazy__title {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.pub-odkazy__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.2rem;
  color: var(--color-muted-foreground);
}

.pub-odkazy__list li + li {
  margin-top: 0.25rem;
}

.pub-downloads {
  margin-top: 2rem;
}

.pub-article .work-detail__acquisition {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .pub-article .work-detail__acquisition {
    margin-top: 0;
    min-width: 0;
  }
}

/* ---------------------------------------------------------------------------
   404 page
   --------------------------------------------------------------------------- */
.error-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background-color: var(--color-muted);
}

.error-page__inner {
  text-align: center;
}

.error-page__title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--color-foreground);
}

.error-page__text {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  margin: 0 0 1rem;
}

.error-page__link {
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.error-page__link:hover {
  opacity: 0.9;
}

/* ---------------------------------------------------------------------------
   Work detail page
   --------------------------------------------------------------------------- */
.work-breadcrumb {
  padding: 1rem var(--space-section-x) 2rem;
}

.work-breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.work-breadcrumb__inner a {
  color: var(--color-muted-foreground);
}

.work-breadcrumb__inner a:hover {
  color: var(--color-foreground);
}

.work-breadcrumb__current {
  color: var(--color-foreground);
}

.work-hero {
  padding: 0 var(--space-section-x) 4rem;
}

@media (min-width: 768px) {
  .work-hero {
    padding-bottom: 6rem;
  }
}

.work-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .work-hero__grid {
    grid-template-columns: 8fr 4fr;
    gap: 1rem;
  }
}

.work-hero__main {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-muted);
}

.work-hero__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-hero__zoom-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.work-hero__zoom-hit .work-hero__main-img {
  pointer-events: none;
}

.work-hero__main img.work-hero__img--fade {
  animation: work-fade-in 0.6s ease-out;
}

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

.work-hero__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.work-hero__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s;
}

.work-hero__dot.is-active {
  background: var(--color-primary);
}

.work-hero__autoplay {
  position: relative;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s;
}

.work-hero__autoplay:hover {
  background: rgba(255, 255, 255, 0.35);
}

.work-hero__ctrl-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.55rem;
  height: 0.65rem;
  background-color: rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.work-hero__ctrl-icon--pause {
  width: 0.5rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 5h4v14H6zm8 0h4v14h-4z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 5h4v14H6zm8 0h4v14h-4z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}

.work-hero__ctrl-icon--play {
  width: 0.65rem;
  height: 0.7rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}

.work-hero__autoplay:not(.is-paused) .work-hero__ctrl-icon--play {
  display: none;
}

.work-hero__autoplay.is-paused .work-hero__ctrl-icon--pause {
  display: none;
}

.work-hero__thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 1024px) {
  .work-hero__thumbs {
    grid-template-columns: 1fr;
  }
}

.work-hero__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-muted);
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.work-hero__thumb:hover {
  opacity: 1;
}

.work-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox (fullscreen images — Alpine store + x-teleport) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  cursor: zoom-out;
}

.lightbox__frame {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(100vw - 1.5rem, 100%);
  max-height: min(100vh - 1.5rem, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(85vh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lightbox__caption {
  margin: 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted-foreground);
}

.lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-foreground);
  cursor: pointer;
  transition: background 0.2s;
}

@media (min-width: 768px) {
  .lightbox__close {
    top: -0.5rem;
    right: -2.75rem;
  }
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__close-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M6 18L18 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M6 18L18 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-foreground);
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox__nav--prev {
  left: 0.25rem;
}

.lightbox__nav--next {
  right: 0.25rem;
}

@media (min-width: 768px) {
  .lightbox__nav--prev {
    left: -3.25rem;
  }

  .lightbox__nav--next {
    right: -3.25rem;
  }
}

.lightbox__nav-icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  background-color: currentColor;
  pointer-events: none;
}

.lightbox__nav-icon--prev {
  margin-right: 0.125rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 6l-6 6 6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 6l-6 6 6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.lightbox__nav-icon--next {
  margin-left: 0.125rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.work-studio__img-hit {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.work-studio__img-hit .work-studio__img-wrap {
  display: block;
}

.work-studio__img-hit:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.work-detail__section {
  padding: 0 var(--space-section-x) 6rem;
}

@media (min-width: 768px) {
  .work-detail__section {
    padding-bottom: 8rem;
  }
}

.work-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .work-detail__grid {
    grid-template-columns: 7fr 5fr;
    gap: 5rem;
  }
}

.work-detail__title {
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
  .work-detail__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .work-detail__title {
    font-size: 3.75rem;
  }
}

.work-detail__year {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 3rem;
}

.work-detail__description {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--color-muted-foreground);
  margin: 0;
  max-width: 42rem;
}

.work-detail__meta-title {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
}

.work-detail__dl {
  margin: 0 0 4rem;
}

.work-detail__row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0;
  gap: 1rem;
}

.work-detail__dt {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin: 0;
}

.work-detail__dd {
  font-size: 0.875rem;
  color: var(--color-foreground);
  margin: 0;
  text-align: right;
}

.work-detail__acquisition {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .work-detail__acquisition {
    border-top: none;
  }
}

.work-detail__acquisition-title {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.work-detail__acquisition-text {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin: 0 0 0.25rem;
}

.work-detail__acquisition-hint {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.7;
  margin: 0 0 1.5rem;
}

.work-detail__btn {
  display: inline-block;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.work-detail__btn:hover {
  background: var(--color-primary);
  color: var(--color-background);
}

.work-studio {
  padding: 0 var(--space-section-x) 6rem;
}

@media (min-width: 768px) {
  .work-studio {
    padding-bottom: 10rem;
  }
}

.work-studio__inner {
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
}

.work-studio__title {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.work-studio__intro {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin: 0 0 3rem;
  max-width: 28rem;
}

.work-studio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .work-studio__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.work-studio__figure {
  margin: 0;
}

.work-studio__img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-muted);
}

.work-studio__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.7s, opacity 0.2s;
}

.work-studio__figure:hover .work-studio__img-wrap img {
  transform: scale(1.05);
  opacity: 1;
}

.work-studio__caption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  letter-spacing: 0.025em;
}
[x-cloak] {display:none !important}