/* Taller Torrents — components */

/* Header (fixed) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  min-height: var(--header-h);
  padding: 21px var(--gutter) 0;
  background: transparent;
  font-weight: 700;
  font-size: var(--fz-header);
  line-height: 1;
}
.site-header__logo {
  min-width: 0;
  font-size: var(--fz-header);
}
.site-header__nav {
  min-width: 0;
  display: flex;
  gap: 0.5ch;
  flex-wrap: wrap;
}
.site-header__nav > *:not(:last-child)::after {
  content: ",";
}
.site-header__lang {
  min-width: 0;
  margin-left: auto;
  position: relative;
  text-align: right;
}
.site-header__logo,
.site-header__link,
.site-header__lang-link {
  transition: opacity var(--dur-fast) var(--ease);
  overflow-wrap: anywhere;
}
button.site-header__lang-link {
  appearance: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: inherit;
}
.site-header__link[aria-current="page"],
.site-header__contact[aria-expanded="true"] {
  opacity: 0.4;
}
.site-header__link:hover,
.site-header__link:focus-visible,
.site-header__logo:focus-visible {
  opacity: 0.4;
}

.site-header__logo:hover {
  color: var(--accent-contact);
}

/* Language switcher: the current language is the trigger; the others reveal on
   hover/focus as a background-less flyout. */
.site-header__lang-current {
  display: inline-block;
  cursor: default;
  opacity: 1; /* trigger stays prominent — not dimmed like the nav's current item */
}
.site-header__lang-menu {
  position: absolute;
  top: 0;
  right: 100%;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 0.65ch;
  padding-right: 0.65ch; /* spacing kept inside the hover area (no dead zone) */
  /* no background, per design */
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 440ms;
}
.site-header__lang-menu .site-header__lang-link {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 360ms var(--ease),
    transform 360ms var(--ease);
}
.site-header__lang-menu .site-header__lang-link:nth-child(2) {
  transition-delay: 60ms;
}
.site-header__lang:hover .site-header__lang-menu,
.site-header__lang:focus-within .site-header__lang-menu {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s;
}
.site-header__lang:hover .site-header__lang-menu .site-header__lang-link,
.site-header__lang:focus-within
  .site-header__lang-menu
  .site-header__lang-link {
  opacity: 1;
  transform: translateX(0);
}
/* Same hover treatment as the nav links: dim the hovered language to 0.4.
   Higher specificity so it wins over the reveal rule above (which holds the
   open flyout links at opacity 1). */
.site-header__lang:hover .site-header__lang-menu .site-header__lang-link:hover,
.site-header__lang:focus-within
  .site-header__lang-menu
  .site-header__lang-link:focus-visible {
  opacity: 0.4;
}

/* Hamburger button + full-screen menu (tablet + mobile, ≤1199px) */
.site-header__burger {
  display: none;
  position: relative;
  z-index: 95; /* above the fixed .site-menu overlay (z-index 90) so the close (X) stays visible and clickable */
  margin-left: auto;
  margin-right: -10px;
  padding: 10px;
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
  cursor: pointer;
}
.site-header__burger-box {
  display: block;
  position: relative;
  width: 26px;
  height: 14px;
}
.site-header__burger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition:
    transform 420ms var(--ease),
    opacity 200ms var(--ease);
}
.site-header__burger-line:nth-child(1) {
  top: 0;
}
.site-header__burger-line:nth-child(2) {
  bottom: 0;
}
.site-header__burger[aria-expanded="true"]
  .site-header__burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header__burger[aria-expanded="true"]
  .site-header__burger-line:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-menu {
  display: none;
}
html.site-menu-is-open {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .site-header__nav,
  .site-header__lang {
    display: none;
  }
  .site-header__burger {
    display: block;
  }

  .site-menu {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    padding: calc(var(--header-h) + 7vh) var(--gutter) 7vh;
    background: var(
      --next-bg
    ); /* distinct surface shade, matching the next-project section */
    color: var(--fg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
      opacity 420ms var(--ease),
      transform 480ms var(--ease),
      visibility 0s linear 480ms;
  }
  .site-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      opacity 420ms var(--ease),
      transform 480ms var(--ease),
      visibility 0s;
  }

  .site-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 1.2vh;
  }
  .site-menu__link {
    appearance: none;
    margin: 0;
    border: 0;
    background: transparent;
    padding: 6px 0;
    color: inherit;
    font-family: var(--font-grotesque);
    font-size: clamp(2.25rem, 11vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    text-align: left;
    cursor: pointer;
    transition: opacity var(--dur-fast) var(--ease);
  }
  .site-menu__link:hover,
  .site-menu__link:focus-visible,
  .site-menu__link[aria-current="page"] {
    opacity: 0.4;
  }

  /* Bottom meta block — Instagram above the language switch, pinned to the
     foot of the overlay. */
  .site-menu__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2.4vh;
  }
  .site-menu__instagram {
    width: max-content;
    color: inherit;
    font-family: var(--font-mono);
    font-size: 14px;
    transition: opacity var(--dur-fast) var(--ease);
  }
  .site-menu__instagram:hover,
  .site-menu__instagram:focus-visible {
    opacity: 0.4;
  }
  .site-menu__lang {
    display: flex;
    gap: 2ch;
    font-family: var(--font-mono);
    font-size: 14px;
  }
  .site-menu__lang-link {
    padding: 10px 2px;
    color: inherit;
    transition: opacity var(--dur-fast) var(--ease);
  }
  .site-menu__lang-link:hover,
  .site-menu__lang-link:focus-visible,
  .site-menu__lang-link[aria-current="true"] {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__burger-line,
  .site-menu {
    transition-duration: 1ms;
  }
}

@media (max-width: 1199px) {
  .site-header__lang-menu {
    top: 100%;
    right: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35em;
    padding-top: 0.5em;
    padding-right: 0;
  }

  .site-header__lang-menu .site-header__lang-link {
    transform: translateY(-8px);
  }

  .site-header__lang:hover .site-header__lang-menu .site-header__lang-link,
  .site-header__lang:focus-within
    .site-header__lang-menu
    .site-header__lang-link {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__lang-menu .site-header__lang-link {
    transition: opacity 1ms;
    transform: none;
  }
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 0 var(--gutter) 14px;
  background: transparent;
  /* Transparent overlay: let clicks fall through to the content behind it,
     but keep the footer's own links interactive. */
  pointer-events: none;
  font-weight: 700;
  font-size: var(--fz-footer);
  line-height: 1.2;
}
.site-footer a {
  pointer-events: auto;
}
.site-footer__legal {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.site-footer__clock {
  margin: 0;
  white-space: nowrap;
}
.site-footer__instagram {
  margin-left: auto;
}

.site-footer__instagram:hover,
.site-footer__phone:hover {
  color: var(--accent-contact);
}

/* Tablet + mobile (where the hamburger menu takes over): the footer row gets
   crowded, so reduce it to just the copyright. Instagram moves into the menu;
   the clock, address and phone drop out at this size. */
@media (max-width: 1199px) {
  .site-footer__clock,
  .site-footer__instagram,
  .site-footer__address,
  .site-footer__phone {
    display: none;
  }
}

@media (max-width: 767px) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* Swup page overlay */
.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  pointer-events: none;
  background: var(--page-overlay-bg, var(--scrim));
  opacity: 0;
  transform: translate3d(0, calc(-100% * var(--overlay-direction, 1)), 0);
  backface-visibility: hidden;
  will-change: transform;
}

html.is-changing .page-overlay {
  opacity: 1;
  transition: transform var(--page-transition-duration)
    var(--page-transition-ease);
}

html.is-animating .page-overlay {
  transform: translate3d(0, 0, 0);
}

html.is-rendering .page-overlay {
  transform: translate3d(0, calc(100% * var(--overlay-direction, 1)), 0);
}

html.is-changing #swup,
html.is-changing .site-footer {
  transition:
    transform var(--page-transition-duration) var(--page-transition-ease),
    filter var(--dur-fast) var(--ease);
  backface-visibility: hidden;
  will-change: transform;
}

html.is-animating.is-leaving #swup {
  transform: translateY(
    calc(var(--page-transition-shift) * var(--overlay-direction, 1))
  );
}

html.is-animating.is-rendering #swup {
  transform: translateY(
    calc(-1 * var(--page-transition-shift) * var(--overlay-direction, 1))
  );
}

html.is-animating.is-leaving .site-footer {
  transform: translateY(
    calc(var(--page-transition-shift) * var(--overlay-direction, 1))
  );
}

html.is-animating.is-rendering .site-footer {
  transform: translateY(
    calc(-1 * var(--page-transition-shift) * var(--overlay-direction, 1))
  );
}

/* Shared page rhythm. padding-top reserves space for the now-fixed header
   (which no longer occupies flow), so content doesn't render underneath it. */
.tt-page {
  min-height: 100vh;
  padding-block: var(--header-h) 72px;
}

.tt-page__intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: var(--grid-gap);
  padding: 0 var(--gutter) 42px;
}

.tt-page__title,
.tt-page__dek {
  margin: 0;
}

.tt-page__title {
  font-family: var(--font-grotesque);
  font-size: var(--fz-nav);
  font-weight: 700;
  line-height: 1;
}

.tt-page__dek {
  max-width: 58ch;
  font-family: var(--font-mono);
  font-size: var(--fz-body);
}

/* Work grid and cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 24px var(--grid-gap);
  padding-inline: var(--gutter);
}

.project-card {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 9px;
  align-self: start;
  min-width: 0;
  color: var(--fg);
}

.project-card__figure,
.poster-card__figure,
.pf-row__cell {
  margin: 0;
}

.project-card__figure {
  display: contents;
}

.project-card__media {
  aspect-ratio: 280 / 347;
  overflow: hidden;
  background: color-mix(in srgb, var(--fg) 12%, transparent);
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
  transition: transform 360ms var(--ease);
  will-change: transform;
}

.project-card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1ch;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.2;
  align-content: start;
  align-items: start;
  text-align: left;
}

.project-card__title {
  justify-self: start;
  overflow-wrap: anywhere;
}

.project-card__info {
  justify-self: end;
  color: var(--fg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(2px);
  transition:
    opacity 220ms var(--ease),
    visibility 0s linear 220ms,
    transform 280ms var(--ease);
  text-align: left;
  text-transform: uppercase;
}

.project-card:hover .project-card__image,
.project-card:focus-visible .project-card__image {
  transform: scale(1.04);
}

.project-card:hover .project-card__info,
.project-card:focus-visible .project-card__info {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .project-card__image,
  .project-card__info {
    transition:
      opacity 1ms,
      visibility 1ms;
  }

  .project-card__image,
  .project-card:hover .project-card__image,
  .project-card:focus-visible .project-card__image {
    transform: none;
  }
}

.home-stage {
  position: relative;
}

.home-stage__grid {
  position: relative;
  z-index: 1;
}

/* Intro loader — fullscreen loading transition (Theme Options driven). */
.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--scrim); /* the page-transition shade for the current mode */
  opacity: 1;
  transition:
    opacity var(--dur) var(--ease),
    visibility 0s linear var(--dur);
}

.intro-loader--ended {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-loader__brand,
.intro-loader__media {
  grid-area: 1 / 1;
}

.intro-loader__brand {
  max-width: calc(100vw - (var(--gutter) * 2));
  color: var(--fg);
  font-family: var(--font-grotesque);
  font-size: var(--fz-display);
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: normal;
  opacity: 0; /* revealed by JS once the webfont is ready (no FOUT) */
  transition: opacity var(--dur-fast) var(--ease);
}

/* The name fades in only after document.fonts confirms Helvetica Neue is
   loaded, so it never paints in the fallback face first. */
.intro-loader--brand-ready .intro-loader__brand {
  opacity: 1;
}

.intro-loader__media {
  width: min(80vw, 1507px);
  aspect-ratio: 1507 / 773;
  max-height: 78vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.intro-loader--video-playing .intro-loader__brand {
  opacity: 0;
}

.intro-loader--video-playing .intro-loader__media {
  opacity: 1;
}

/* Lock scroll while the loader covers the page (instant via :has(), JS class as fallback). */
html.intro-loader-open,
html:has(.intro-loader:not(.intro-loader--ended)) {
  overflow: hidden;
}

/* Replicated Swup "body-move" enter, played once on a fresh load when the loader lifts. */
@keyframes tt-intro-enter {
  from {
    transform: translateY(calc(-1 * var(--page-transition-shift)));
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
#swup.tt-intro-enter {
  animation: tt-intro-enter var(--page-transition-duration)
    var(--page-transition-ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .intro-loader {
    transition: opacity 1ms;
  }
  .intro-loader__brand,
  .intro-loader__media {
    transition: opacity 1ms;
  }
  #swup.tt-intro-enter {
    animation: none;
  }
}

/* Project single */
.project-page {
  padding-bottom: 0;
}

/* The project's own padding-bottom (above) is the intended footer spacing.
   Drop the shared .tt-page viewport-fill + extra bottom padding so the footer
   follows the content instead of leaving a tall gap on short projects. */
body.single-project .tt-page {
  min-height: 0;
  padding-bottom: 0;
}

/* Header: title + toggle flow inline on left; panel breaks to its own line below */
.project-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1.5ch;
  padding: 0 var(--gutter) 58px;
}

.project-header__title {
  flex: none;
  margin: 0;
}

/* Toggle sits right next to the title */
.project-header > .project-info__toggle {
  flex: none;
}

/* Panel takes full width → forces onto next line */
.project-header > .project-info__panel {
  flex: 0 0 100%;
}

.project-header__title,
.project-info__toggle {
  font-family: var(--font-mono);
  font-size: var(--fz-body);
  font-weight: 400;
  line-height: 1.2;
}

.project-info__toggle {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1ch;
  padding: 0;
  text-align: left;
}

.project-info__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.project-info__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.project-info__body {
  max-width: 68ch;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--fz-body);
}

.project-info__body > :first-child {
  margin-top: 0;
}

.project-info__body > :last-child {
  margin-bottom: 0;
}

/* Open: hover, keyboard focus, retained upward hover, initial, or click-locked */
.project-header:hover > .project-info__panel,
.project-header:focus-within > .project-info__panel,
.project-header--hover-open > .project-info__panel,
.project-header--initial-open > .project-info__panel,
.project-header--open > .project-info__panel {
  grid-template-rows: 1fr;
}

.project-header.project-header--closed > .project-info__panel {
  grid-template-rows: 0fr;
}

/* Symbol cross-fade: + ↔ − */
.project-info__toggle-symbol {
  display: inline-grid;
  line-height: 1;
}

.project-info__toggle-plus,
.project-info__toggle-minus {
  grid-area: 1 / 1;
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.project-info__toggle-minus {
  opacity: 0;
  transform: translateY(-3px);
}

.project-header:hover .project-info__toggle-plus,
.project-header:focus-within .project-info__toggle-plus,
.project-header--hover-open .project-info__toggle-plus,
.project-header--initial-open .project-info__toggle-plus,
.project-header--open .project-info__toggle-plus {
  opacity: 0;
  transform: translateY(3px);
}

.project-header.project-header--closed .project-info__toggle-plus {
  opacity: 1;
  transform: translateY(0);
}

.project-header:hover .project-info__toggle-minus,
.project-header:focus-within .project-info__toggle-minus,
.project-header--hover-open .project-info__toggle-minus,
.project-header--initial-open .project-info__toggle-minus,
.project-header--open .project-info__toggle-minus {
  opacity: 1;
  transform: translateY(0);
}

.project-header.project-header--closed .project-info__toggle-minus {
  opacity: 0;
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .project-info__toggle-plus,
  .project-info__toggle-minus {
    transition: opacity 1ms;
    transform: none;
  }
}

.portfolio-flow {
  display: grid;
  gap: 72px;
}

.pf-row {
  display: grid;
  align-items: start;
  gap: var(--grid-gap);
  padding-inline: var(--gutter);
}

.pf-row--three_stagger_a,
.pf-row--three_stagger_b,
.pf-row--three_natural,
.pf-row--three-stagger-a,
.pf-row--three-stagger-b,
.pf-row--three-natural {
  grid-template-columns: 28fr 42fr 28fr;
}

.pf-row--two_natural,
.pf-row--two-natural {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pf-row--one_full,
.pf-row--one-full {
  grid-template-columns: minmax(0, 1fr);
}

.pf-row__cell {
  min-width: 0;
}

.pf-row__media {
  width: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}

.pf-row__image {
  width: 100%;
  height: auto;
}

.pf-row--three_stagger_a .pf-row__cell:nth-child(1) .pf-row__media,
.pf-row--three-stagger-a .pf-row__cell:nth-child(1) .pf-row__media {
  aspect-ratio: 521 / 749;
}

.pf-row--three_stagger_a .pf-row__cell:nth-child(2) .pf-row__media,
.pf-row--three-stagger-a .pf-row__cell:nth-child(2) .pf-row__media {
  aspect-ratio: 766 / 642;
}

.pf-row--three_stagger_a .pf-row__cell:nth-child(3) .pf-row__media,
.pf-row--three-stagger-a .pf-row__cell:nth-child(3) .pf-row__media {
  aspect-ratio: 521 / 499;
}

.pf-row--three_stagger_b .pf-row__cell:nth-child(1) .pf-row__media,
.pf-row--three-stagger-b .pf-row__cell:nth-child(1) .pf-row__media {
  aspect-ratio: 521 / 336;
}

.pf-row--three_stagger_b .pf-row__cell:nth-child(2) .pf-row__media,
.pf-row--three-stagger-b .pf-row__cell:nth-child(2) .pf-row__media {
  aspect-ratio: 766 / 943;
}

.pf-row--three_stagger_b .pf-row__cell:nth-child(3) .pf-row__media,
.pf-row--three-stagger-b .pf-row__cell:nth-child(3) .pf-row__media {
  aspect-ratio: 521 / 660;
}

.pf-row--three_stagger_a .pf-row__image,
.pf-row--three_stagger_b .pf-row__image,
.pf-row--three-stagger-a .pf-row__image,
.pf-row--three-stagger-b .pf-row__image {
  height: 100%;
  object-fit: cover;
}

.pf-row__caption {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: var(--fz-body);
  line-height: 1.25;
}

.next-project {
  --next-progress: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 28%);
  gap: var(--grid-gap);
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 96px 0 0;
  padding: 20px var(--gutter) 0;
  background: var(--next-bg);
  transition: background-color 900ms ease-in-out;
  border-top: 1px solid currentColor;
}

.next-project__eyebrow,
.next-project__timer {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fz-body);
}

.next-project__link {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.next-project__media {
  aspect-ratio: 280 / 347;
  overflow: hidden;
  background: color-mix(in srgb, var(--fg) 12%, transparent);
}

.next-project__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-project__title {
  margin: 0;
  font-family: var(--font-grotesque);
  font-size: var(--fz-nav);
  font-weight: 700;
  line-height: 1;
}

.next-project__meta {
  display: grid;
  gap: 16px;
  align-content: start;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-fast) var(--ease),
    visibility var(--dur-fast) var(--ease);
}

/* The countdown (Advancing in… + progress + Stay) and the bolder background appear
   only once the section is armed (scrolled into near-full view). */
.next-project--armed {
  background: var(--next-bg-active);
}

.next-project--armed .next-project__meta {
  opacity: 1;
  visibility: visible;
}

.next-project__progress {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: color-mix(in srgb, var(--fg) 22%, transparent);
}

.next-project__progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: scaleX(var(--next-progress));
  transform-origin: left center;
}

.next-project__stay {
  justify-self: start;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--fz-body);
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.next-project--cancelled .next-project__progress::before {
  transform: scaleX(0);
}

/* About */
.about-page {
  display: grid;
  /* fr, not px, so the columns themselves grow to fill wide viewports — 920:565
     keeps the original design ratio, a fixed gap no longer leaves dead space. */
  grid-template-columns: minmax(0, 920fr) minmax(300px, 565fr);
  gap: calc(var(--grid-gap) * 2);
  height: calc(100vh - var(--header-h) - 54px);
  overflow: hidden;
  padding: 0 var(--gutter) 0;
}

.about-page__column {
  min-height: 0;
  overflow-y: auto;
  padding-right: 12px;
}

.about-page__intro {
  margin: 0;
  font-family: var(--font-grotesque);
  font-size: var(--fz-display);
  font-weight: 400;
  line-height: 1.1;
}

.about-page__intro-line {
  display: block;
}

.about-page__intro-line + .about-page__intro-line {
  margin-top: 1.05em;
}

.about-page__list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fz-list);
  line-height: 1.3;
}

.about-page__item-title {
  margin-bottom: 20px;
}

.about-page__item-title,
.about-page__item-meta {
  display: block;
}

.about-page__item-title,
.about-page__item-meta {
  font-size: var(--fz-body);
}

body.about-scroll-lock {
  overflow: hidden;
}

/* About is a scroll-locked, fixed-height stage. Drop the page's min-height and
   bottom padding so #swup shrinks to the about-page's own fixed height, leaving
   its reserved space for the footer instead of clipping it below the viewport. */
body.about-scroll-lock .tt-page {
  min-height: 0;
  padding-bottom: 0;
}

/* Posters */
.posters-page {
  padding-bottom: 72px;
}

/* Intro reuses the shared .project-header component; only the space before the grid differs. */
.posters-page__header {
  padding-bottom: 42px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding-inline: var(--gutter);
}

.poster-card {
  display: block;
  min-width: 0;
}

.poster-card__media {
  aspect-ratio: 310 / 384;
  overflow: hidden;
  background: color-mix(in srgb, var(--fg) 12%, transparent);
}

.poster-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact sheet */
.contact-sheet {
  position: fixed;
  inset: 0;
  z-index: 220;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--dur);
}

.contact-sheet--open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.contact-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: var(--sheet-scrim);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  will-change: opacity;
}

.contact-sheet--open .contact-sheet__backdrop {
  opacity: 1;
}

.contact-sheet__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 314px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
  padding: 28px var(--gutter) 34px;
  background: var(--bg);
  color: var(--fg);
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease);
}

.contact-sheet--open .contact-sheet__panel {
  transform: translateY(0);
}

.contact-sheet__content {
  display: grid;
  gap: 16px;
  align-content: start;
  max-width: 1040px; /* fits the 50px message line so the email stays inline (Figma box ~961px) */
}

.contact-sheet__message,
.contact-sheet__details {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fz-body);
  line-height: 1.3;
}

.contact-sheet__email {
  justify-self: start;
  font-family: var(--font-grotesque);
  font-size: var(--fz-nav);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-contact);
}

/* Rich-text contact body (Site Settings WYSIWYG); the inline email link is the accent.
   Figma node 2212:395: Helvetica Neue Regular, 50px, line-height auto (~1.2). */
.contact-sheet__body {
  font-family: var(--font-grotesque);
  font-size: var(--fz-contact);
  font-weight: 400;
  line-height: 1.2;
}
.contact-sheet__body > :first-child {
  margin-top: 0;
}
.contact-sheet__body > :last-child {
  margin-bottom: 0;
}
.contact-sheet__body a {
  color: var(--accent-contact);
}

body.contact-sheet-is-open {
  overflow: hidden;
}

body.contact-sheet-is-open .site-header,
body.contact-sheet-is-open #swup,
body.contact-sheet-is-open .site-footer {
  filter: blur(4px) brightness(0.78);
}

.site-header,
#swup,
.site-footer {
  transition: filter var(--dur) var(--ease);
}
/* will-change is intentionally NOT applied to .site-header. It would make the
   header a containing block for position:fixed descendants and break the fixed
   .site-menu overlay (the menu would size to the header instead of the
   viewport). #swup and the footer have no fixed children, so the hint is safe
   there. */
#swup,
.site-footer {
  will-change: filter;
}

@media (max-width: 1199px) {
  .work-grid,
  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .work-grid,
  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tt-page {
    padding-bottom: 48px;
  }

  .tt-page__intro,
  .next-project {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .poster-grid {
    gap: 0;
  }

  .intro-loader__media {
    width: calc(100vw - (var(--gutter) * 2));
  }

  .portfolio-flow {
    gap: 46px;
  }

  .pf-row,
  .pf-row--three_stagger_a,
  .pf-row--three_stagger_b,
  .pf-row--three_natural,
  .pf-row--two_natural,
  .pf-row--one_full,
  .pf-row--three-stagger-a,
  .pf-row--three-stagger-b,
  .pf-row--three-natural,
  .pf-row--two-natural,
  .pf-row--one-full {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-project__link {
    grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  }

  .about-page {
    display: block;
    height: auto;
    overflow: visible;
  }

  .about-page__column {
    overflow: visible;
    padding-right: 0;
  }

  .about-page__column + .about-page__column {
    margin-top: 42px;
  }

  .contact-sheet__panel {
    top: 0;
    min-height: 100vh;
    align-content: end;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575px) {
  .work-grid,
  .poster-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Lightbox */
.poster-card__image[data-lightbox],
.pf-row__image[data-lightbox] {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  transition: visibility 0s linear var(--dur);
  outline: none; /* focus moves here on open (a11y), not onto a button — no ring to show */
}

.lightbox--open {
  visibility: visible;
  transition-delay: 0s;
}

.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.lightbox--open .lightbox__scrim {
  opacity: 0.97;
}

.lightbox__figure {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
  max-height: 88vh;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.lightbox--open .lightbox__figure {
  opacity: 1;
  transform: scale(1);
}

.lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox__caption {
  max-width: 60ch;
  font-family: var(--font-mono);
  font-size: var(--fz-body);
  color: var(--fg);
  text-align: center;
}

.lightbox__nav,
.lightbox__close {
  position: absolute;
  z-index: 1;
  appearance: none;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--bg); /* paired with the glyph's --fg so contrast holds over any image, not just the scrim */
  color: var(--fg);
  cursor: pointer;
  opacity: 0; /* fades with the scrim/figure, not left behind until visibility flips */
  transition: opacity var(--dur) var(--ease);
}

.lightbox--open .lightbox__nav,
.lightbox--open .lightbox__close {
  opacity: 0.45;
}

.lightbox__nav:hover,
.lightbox__close:hover,
.lightbox__nav:focus-visible,
.lightbox__close:focus-visible {
  opacity: 1;
  transition: opacity var(--dur-fast) var(--ease);
}

.lightbox__nav {
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 1.5vw;
}

.lightbox__nav--next {
  right: 1.5vw;
}

.lightbox__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.lightbox__nav--prev::before {
  transform: translate(-30%, -50%) rotate(45deg);
}

.lightbox__nav--next::before {
  transform: translate(-70%, -50%) rotate(-135deg);
}

.lightbox__close {
  top: 2.5vh;
  right: 1.5vw;
  width: 44px;
  height: 44px;
}

.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

.lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__figure {
    transform: none;
    transition: opacity var(--dur-fast) linear;
  }

  .lightbox--open .lightbox__figure {
    transform: none;
  }

  .lightbox__nav,
  .lightbox__close {
    transition: opacity var(--dur-fast) linear;
  }
}
