:root {
  --bg: #f8f4ee;
  --bg-soft: #f1e8dd;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --text: #2d241f;
  --muted: #74665d;
  --line: rgba(103, 82, 69, 0.14);
  --accent: #9f7d67;
  --shadow: 0 24px 60px rgba(120, 97, 80, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.project-page {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.project-nav {
  position: sticky;
  top: calc(18px + env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  margin-bottom: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  background:
  linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.22));
  backdrop-filter: blur(30px) saturate(185%);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  box-shadow:
    0 24px 52px rgba(120, 97, 80, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

.project-nav::before,
.project-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project-nav::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.1) 44%, rgba(255, 255, 255, 0) 66%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.5), transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(255, 255, 255, 0.24), transparent 36%);
  opacity: 0.92;
  z-index: 0;
}

.project-nav::after {
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.26);
  z-index: 0;
}

.project-nav > * {
  position: relative;
  z-index: 1;
}

.project-nav__side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-link,
.project-nav__logo {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.project-nav__logo {
  font-size: 0.88rem;
  letter-spacing: 0.18em;
}

.project-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.project-link:hover,
.project-nav__logo:hover {
  background: rgba(255, 255, 255, 0.46);
  transform: translateY(-1px);
}


.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.project-video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.project-video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));*/
  pointer-events: none;
}

.project-video {
  width: 100%;
 /* aspect-ratio: 16 / 10; */
  object-fit: cover;
  background: #d8ccc0;
}

.project-video:fullscreen,
.moment-card__video:fullscreen,
.project-next__video:fullscreen {
  object-fit: contain !important;
  background: black !important;
}

.project-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px 0 12px 4px;
}

.project-kicker {
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.project-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.2vw, 5.2rem);
  line-height: 0.95;
  font-weight: 500;
}

.project-year {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.project-caption {
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: start;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow);
}

.project-info {
  padding: 28px 28px 197px 28px;
}

.project-info__intro {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.project-info__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
}

.project-info__intro h2,
.project-testimonial h2,
.project-gallery__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.project-info__intro p,
.project-detail__content,
.project-testimonial__quote,
.project-testimonial__source {
  color: var(--muted);
  line-height: 1.8;
}

.project-details {
  display: grid;
  gap: 22px;
}

.project-detail {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.project-detail__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.project-testimonial {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-testimonial__eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.project-testimonial__quote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.55;
  color: var(--text);
}

.project-testimonial__image {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(103, 82, 69, 0.1);
}

.project-testimonial__image img {
  width: 100%;
  /* aspect-ratio: 5 / 4; */
  object-fit: cover;
}

.project-gallery {
  margin-top: 34px;
}

.project-gallery__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.project-gallery__copy {
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.7;
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
  min-height: 0;
}

.project-gallery__grid img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(120, 97, 80, 0.1);
}

.project-gallery__stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  height: 100%;
  align-items: stretch;
  justify-content: space-between;
}

.project-gallery__stack img {
  width: 100%;
  height: calc((100% - 18px) / 2);
  min-height: 0;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(120, 97, 80, 0.1);
}

/* Safari-specific fallback for old Grid handling */
@supports (-webkit-touch-callout: none) {
  .project-gallery__stack {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 100%;
  }

  .project-gallery__stack img {
    height: auto;
    min-height: 0;
    width: 100%;
  }
}


@media (max-width: 1100px) {
  .project-hero,
  .project-layout,
  .project-gallery__grid {
    grid-template-columns: 1fr;
  }

  .project-hero__meta {
    padding: 0;
  }

  .project-detail {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  .project-page {
    width: min(100%, calc(100% - 24px));
    padding-top: 12px;
  }

  .project-nav {
    top: calc(10px + env(safe-area-inset-top));
    padding: 10px 12px;
    margin-bottom: 28px;
    
  }

  .project-nav__logo {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }

  .project-link {
    font-size: 0.68rem;
    padding: 8px 10px;
  }

  .project-nav__side {
    gap: 4px;
  }

  .project-video-shell,
  .project-card,
  .project-gallery__grid img {
    border-radius: 24px;
  }

  .project-info,
  .project-testimonial {
    padding: 22px;
  }

  .project-gallery__grid img {
    min-height: 240px;
  }
}

@media (max-width: 560px) {
  .project-page {
    width: min(100%, calc(100% - 16px));
  }

  .project-nav {
    gap: 8px;
    padding: 8px 10px;
    top: calc(8px + env(safe-area-inset-top));
  }

  .project-link,
  .project-nav__logo {
    padding: 8px 9px;
  }

  .project-nav__logo {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .project-link {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .project-info,
  .project-testimonial {
    padding: 18px;
  }

  .project-title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

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

  .project-gallery__stack {
    display: contents;
  }

  .project-gallery__grid img,
  .project-gallery__stack img {
    min-height: 130px;
    height: 130px;
    border-radius: 18px;
  }
}

.project-page--michaela {
  padding-bottom: 96px;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 56px;
}

.project-showcase__lead {
  display: grid;
  gap: 18px;
}

.project-showcase__header,
.project-section-heading,
.project-next__text {
  padding-left: 4px;
}

.project-showcase__header {
  display: grid;
  gap: 12px;
}

.project-showcase__eyebrow,
.project-story-card__eyebrow,
.project-section-heading__eyebrow,
.project-next__eyebrow {
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-showcase__title,
.project-story-card__title,
.project-section-heading__title,
.project-next__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.94;
}

.project-showcase__title {
  font-size: clamp(3rem, 5vw, 6rem);
  max-width: 8ch;
}

.project-video-shell--showcase {
  border-radius: 40px;
}

.project-video--showcase {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #d9c9bb, #f3ece2);
}

.project-story-card {
  padding: 32px;
  display: grid;
  gap: 28px;
  min-height: 100%;
}

.project-story-card__title {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.project-story-card__copy,
.project-section-heading__note,
.project-next__meta {
  color: var(--muted);
  line-height: 1.75;
}

.project-story-card__facts {
  display: grid;
  gap: 16px;
}

.project-story-card__facts div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.project-story-card__facts dt {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-story-card__facts dd {
  color: var(--text);
  line-height: 1.7;
}

.project-feature-section,
.project-moments {
  margin-bottom: 56px;
}

.project-section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.project-section-heading--split {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.44fr);
  align-items: end;
}

.project-section-heading__title {
  font-size: clamp(2rem, 3.2vw, 3.6rem);
}

.project-film-slot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(240, 232, 223, 0.9));
  box-shadow: var(--shadow);
}

.project-video--feature {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #d9c9bb, #f3ece2);
}

.project-film-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(161, 127, 102, 0.08), transparent 55%);*/
  pointer-events: none;
}

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

.moment-card {
  min-height: 0;
}

.moment-card__button {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(241, 232, 223, 0.92), rgba(220, 205, 193, 0.9));
  box-shadow: 0 18px 42px rgba(120, 97, 80, 0.14);
}

.moment-card__button:focus-visible {
  outline: 2px solid rgba(159, 125, 103, 0.5);
  outline-offset: 4px;
}

.moment-card__video,
.project-next__video {
  width: 100%;
  height: 100%;
}

.moment-card__video {
  object-fit: contain;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    filter 0.35s ease;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(43, 34, 28, 0.92), rgba(111, 87, 70, 0.88));
}

.moment-card[data-ready="true"] .moment-card__video {
  opacity: 1;
}

.moment-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.38)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0));
  transition: opacity 0.35s ease;
}

.moment-card__copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 6px;
  padding: 22px 20px;
  color: #fff;
}

.moment-card__label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.moment-card__hint {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.86;
}

.moment-card[data-playing="true"] .moment-card__video,
.moment-card__button:hover .moment-card__video,
.moment-card__button:focus-visible .moment-card__video {
  filter: saturate(1.06) contrast(1.02);
}

.moment-card[data-playing="true"] .moment-card__veil,
.moment-card__button:hover .moment-card__veil,
.moment-card__button:focus-visible .moment-card__veil {
  opacity: 0.24;
}

.project-next {
  margin-top: 12px;
}

.project-next__link {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: center;
  padding: 16px 0 4px;
}

.project-next__title {
  margin: 12px 0 14px;
  font-size: clamp(2.3rem, 4vw, 5rem);
  max-width: 8ch;
}

.project-next__meta {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-next__visual {
  perspective: 1600px;
}

.project-next__media-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 62px rgba(120, 97, 80, 0.16);
  transform: rotateY(-16deg) rotateZ(-2deg) scale(0.92);
  transform-origin: center;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.7s ease,
    border-color 0.3s ease;
}

.project-next__media-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 2;
}

.project-next__video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.35s ease;
  filter: saturate(0.94) contrast(0.98);
}

.project-next__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(22, 16, 12, 0.12), rgba(22, 16, 12, 0.52));
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
  letter-spacing: 0.03em;
  z-index: 1;
}

.project-next__link:hover .project-next__media-shell,
.project-next__link:focus-visible .project-next__media-shell {
  transform: translateY(-12px) rotateY(-6deg) rotateZ(0deg) scale(1.04);
  box-shadow: 0 34px 74px rgba(120, 97, 80, 0.22);
}

.project-next__link:hover .project-next__video,
.project-next__link:focus-visible .project-next__video {
  transform: scale(1.08);
  filter: saturate(1.04) contrast(1.02);
}

.project-next__link:focus-visible {
  outline: none;
}

@media (max-width: 1100px) {
  .project-showcase,
  .project-next__link,
  .project-section-heading--split {
    grid-template-columns: 1fr;
  }

  .project-story-card {
    gap: 22px;
  }

  .project-next__visual {
    max-width: 860px;
  }
}

@media (max-width: 720px) {
  .project-page--michaela {
    padding-bottom: 72px;
  }

  .project-showcase,
  .project-feature-section,
  .project-moments {
    margin-bottom: 38px;
  }

  .project-video-shell--showcase,
  .project-film-slot,
  .moment-card__button,
  .project-next__media-shell {
    border-radius: 24px;
  }

  .project-story-card {
    padding: 24px;
  }

  .project-story-card__facts div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-next__media-shell {
    transform: none;
  }

  .project-next__link:hover .project-next__media-shell,
  .project-next__link:focus-visible .project-next__media-shell {
    transform: translateY(-6px) scale(1.01);
  }
}

@media (max-width: 560px) {
  .project-showcase__title {
    max-width: none;
  }

  .project-section-heading__title,
  .project-story-card__title {
    line-height: 1;
  }

  .project-moments__grid {
    gap: 12px;
  }

  .moment-card__copy {
    padding: 18px 16px;
  }

  .moment-card__label {
    font-size: 1.25rem;
  }

  .project-next__title {
    margin: 10px 0 10px;
  }

}

@media (max-width: 440px) {
  .project-page--michaela {
    width: min(100%, calc(100% - 14px));
  }

  .project-story-card {
    padding: 22px;
  }

  .project-moments__grid {
    gap: 10px;
  }

  .moment-card__copy {
    padding: 16px 14px;
  }

  .moment-card__label {
    font-size: 1.12rem;
  }

  .moment-card__hint {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 390px) {
  .project-link {
    font-size: 0.56rem;
    letter-spacing: 0.06em;
  }

  .moment-card__label {
    font-size: 1rem;
  }

  .project-next__overlay {
    font-size: 1.45rem;
  }
}
