/* Info — cinematic dossier / press kit */

html.info-page,
body.info-page {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.info-page {
  --info-bg: #0f0e0d;
  --info-line: rgba(241, 234, 223, 0.09);
  --info-line-hover: rgba(241, 234, 223, 0.16);
  --info-track: 0.26em;
  --info-display: clamp(2.35rem, 7.25vw, 4.75rem);
  --info-read: clamp(1.05rem, 1.85vw, 1.28rem);
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--white);
  background: var(--info-bg);
  min-height: 100%;
}

.info-page .grain {
  opacity: 0.055;
  mix-blend-mode: soft-light;
}

.info-page .page-transition-root {
  position: relative;
  min-height: 100%;
  height: auto;
  background: var(--info-bg);
}

.info-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(24, 22, 20, 0.3) 0%, transparent 55%),
    var(--info-bg);
}

.info-page__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* —— Dossier layout —— */
.dossier {
  position: relative;
  z-index: 10;
  padding: clamp(1.5rem, 4vh, 2.5rem) var(--pad) clamp(5rem, 12vh, 8rem);
}

.dossier__inner {
  max-width: 82rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.75s var(--page-ease-in, cubic-bezier(0.16, 1, 0.3, 1)) 0.08s,
    transform 0.75s var(--page-ease-in, cubic-bezier(0.16, 1, 0.3, 1)) 0.08s;
}

body.is-page-ready .dossier__inner {
  opacity: 1;
  transform: translateY(0);
}

/* —— ASCII portrait (left column) —— */
.dossier__ascii {
  grid-column: 1;
  align-self: start;
  position: sticky;
  top: clamp(5.5rem, 14vh, 8rem);
  min-width: 0;
  overflow: hidden;
  pointer-events: auto;
  user-select: none;
  cursor: default;
}

.dossier__ascii__viewport {
  position: relative;
  width: 100%;
  height: min(78vh, 52rem);
  max-height: 52rem;
  overflow: hidden;
  opacity: 0.45;
}

.dossier__ascii__art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dossier__ascii__art > .dossier__ascii__pre:first-child {
  position: relative;
  z-index: 1;
}

.dossier__ascii__pre {
  margin: 0;
  font-family: Consolas, "Courier New", Courier, monospace;
  font-size: 6px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: pre;
  text-align: left;
  color: rgba(241, 234, 223, 0.68);
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.dossier__ascii__pre:not(.dossier__ascii__pre--lit) .ascii-ch {
  color: rgba(241, 234, 223, 0.68);
}

.dossier__ascii__viewport.is-scan-active
  .dossier__ascii__pre:not(.dossier__ascii__pre--lit)
  .ascii-ch.is-scan {
  color: color-mix(
    in srgb,
    #ffffff calc(var(--scan-gain, 1) * 100%),
    rgba(241, 234, 223, 0.68)
  );
  filter: brightness(calc(1 + var(--scan-gain, 1) * 1.25));
}

.dossier__ascii__spot {
  --spot-size: clamp(3.5rem, 8vw, 5.5rem);
  --spot-x: -999px;
  --spot-y: -999px;
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  -webkit-mask-image: radial-gradient(
    circle var(--spot-size) at var(--spot-x) var(--spot-y),
    #000 0%,
    #000 30%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--spot-size) at var(--spot-x) var(--spot-y),
    #000 0%,
    #000 30%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.dossier__ascii__viewport.is-spot-active .dossier__ascii__spot {
  opacity: 1;
  visibility: visible;
}

.dossier__ascii__pre--lit {
  color: rgba(241, 234, 223, 1);
}

.dossier__layout {
  grid-column: 2;
  max-width: 36rem;
  width: 100%;
  justify-self: end;
}

/* —— Shared sans UI (one size, one track) —— */
.dossier__roles li,
.dossier__practice-label,
.dossier__practice-value,
.dossier__meta dt,
.dossier__meta dd,
.dossier__foot-secondary a,
.dossier__foot-inquiry {
  font-family: var(--sans);
  font-size: var(--type-ui);
  font-weight: 400;
  letter-spacing: var(--info-track);
  text-transform: uppercase;
}

/* —— Text sheet —— */
.dossier__sheet {
  padding-top: clamp(0.5rem, 2vh, 1.5rem);
  padding-bottom: 0.5rem;
}

.dossier__name {
  font-family: var(--serif);
  font-size: var(--info-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 clamp(1.5rem, 3.5vh, 2.25rem);
  max-width: 11ch;
  text-shadow: var(--text-shadow);
}

.dossier__roles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin: 0 0 clamp(1.1rem, 2.5vh, 1.45rem);
  padding-left: 0.15rem;
}

.dossier__roles li {
  color: rgba(241, 234, 223, 0.62);
  line-height: 1.45;
}

.dossier__practice {
  margin: 0 0 clamp(2.25rem, 5vh, 3rem);
  padding-left: 0.15rem;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.85vh, 1.05rem);
  max-width: 28rem;
}

.dossier__practice-label,
.dossier__practice-value {
  margin: 0;
}

.dossier__practice-label {
  color: rgba(241, 234, 223, 0.38);
}

.dossier__practice-value {
  color: rgba(241, 234, 223, 0.78);
  line-height: 1.55;
  white-space: pre-line;
}

.dossier__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 2rem;
  margin: 0 0 clamp(2.5rem, 6vh, 3.5rem);
  padding: clamp(1.25rem, 3vh, 1.75rem) 0;
  border-top: 1px solid var(--info-line);
  border-bottom: 1px solid var(--info-line);
  max-width: 28rem;
}

.dossier__meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dossier__meta dt {
  color: rgba(241, 234, 223, 0.38);
}

.dossier__meta dd {
  color: rgba(241, 234, 223, 0.78);
  margin: 0;
}

.dossier__bio {
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3vh, 1.75rem);
  max-width: 31rem;
  margin-bottom: clamp(3rem, 7vh, 4.5rem);
}

.dossier__bio-p {
  font-family: var(--serif);
  font-size: var(--info-read);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(241, 234, 223, 0.88);
  text-shadow: var(--text-shadow);
  max-width: 30rem;
}

.dossier__bio-p:nth-child(2) {
  color: rgba(241, 234, 223, 0.62);
}

.dossier__bio-p--soft {
  color: rgba(241, 234, 223, 0.42);
  max-width: 30rem;
}

/* Page load — title only (stable, no scroll effect) */
body.is-page-ready .dossier__name {
  animation: dossierReveal 0.85s var(--page-ease-in, cubic-bezier(0.16, 1, 0.3, 1)) 0.12s backwards;
}

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

/* Scroll reveal — progress driven (--reveal-p: 0 → 1) */
.dossier__sheet .scroll-reveal {
  --reveal-p: 0;
  transition:
    opacity 0.75s var(--reveal-ease),
    color 0.75s var(--reveal-ease),
    transform 0.75s var(--reveal-ease);
}

.dossier__sheet .scroll-reveal--meta-label {
  opacity: calc(0.38 + var(--reveal-p) * 0.54);
  color: color-mix(
    in srgb,
    rgba(100, 92, 84, 1) calc((1 - var(--reveal-p)) * 100%),
    rgba(241, 234, 223, 0.55) calc(var(--reveal-p) * 100%)
  );
  transform: translateY(calc(5px * (1 - var(--reveal-p))));
}

.dossier__sheet .scroll-reveal--meta-value {
  opacity: calc(0.36 + var(--reveal-p) * 0.62);
  color: color-mix(
    in srgb,
    rgba(90, 84, 76, 1) calc((1 - var(--reveal-p)) * 100%),
    rgba(241, 234, 223, 0.92) calc(var(--reveal-p) * 100%)
  );
  transform: translateY(calc(5px * (1 - var(--reveal-p))));
}

.dossier__sheet .scroll-reveal--bio {
  opacity: calc(0.35 + var(--reveal-p) * 0.65);
  color: rgba(241, 234, 223, 0.96);
  transform: translateY(calc(6px * (1 - var(--reveal-p))));
}

.dossier__sheet .scroll-reveal--bio-mid {
  opacity: calc(0.34 + var(--reveal-p) * 0.6);
  color: rgba(241, 234, 223, 0.78);
  transform: translateY(calc(6px * (1 - var(--reveal-p))));
}

.dossier__sheet .scroll-reveal--bio-soft {
  opacity: calc(0.32 + var(--reveal-p) * 0.56);
  color: rgba(241, 234, 223, 0.58);
  transform: translateY(calc(6px * (1 - var(--reveal-p))));
}

/* —— Footer links —— */
.dossier__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-top: 0.25rem;
  max-width: 36rem;
}

.dossier__foot-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.25rem;
}

.dossier__foot-secondary a {
  color: var(--muted);
  opacity: 0.45;
  transition: opacity 0.45s var(--ease), color 0.45s var(--ease);
  text-decoration: none;
}

.dossier__foot-secondary a:hover,
.dossier__foot-secondary a:focus-visible {
  opacity: 0.78;
  color: rgba(241, 234, 223, 0.85);
}

.dossier__foot-inquiry {
  position: relative;
  display: inline-block;
  margin-top: clamp(1.75rem, 4vh, 2.35rem);
  padding-bottom: 0.35rem;
  color: rgba(241, 234, 223, 0.92);
  opacity: 1;
  text-decoration: none;
  transition: color 0.5s var(--ease-slow);
}

.dossier__foot-inquiry::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(241, 234, 223, 0.42);
  transform: scaleX(0.55);
  transform-origin: left center;
  transition:
    transform 0.55s var(--ease-slow),
    background-color 0.55s var(--ease-slow);
}

.dossier__foot-inquiry:hover,
.dossier__foot-inquiry:focus-visible {
  color: var(--white);
}

.dossier__foot-inquiry:hover::after,
.dossier__foot-inquiry:focus-visible::after {
  transform: scaleX(1);
  background: rgba(241, 234, 223, 0.72);
}

/* —— Brand logos (page bottom) —— */
.dossier__brands {
  --brand-height: clamp(3.25rem, 5.25vw, 4.35rem);
  --brand-height-kodak: clamp(4.85rem, 7.75vw, 6.15rem);
  --brand-height-mcarthur: clamp(4.35rem, 7.25vw, 5.65rem);
  --brand-banner-width: min(100%, 7rem);
  --brand-banner-height: var(--brand-height);
  width: 100%;
  max-width: 82rem;
  margin: clamp(4rem, 10vh, 6.5rem) auto 0;
  padding: 0 var(--pad) clamp(3rem, 7vh, 4.5rem);
}

.dossier__brands-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(0.85rem, 1.75vw, 1.75rem);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dossier__brands-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--brand-height);
}

.dossier__brands-list img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.3;
  filter: grayscale(1);
  transform: scale(1);
  transform-origin: center center;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.dossier__brands-list li.dossier__brand-item--kodak {
  height: var(--brand-height-kodak);
}

.dossier__brands-list li.dossier__brand-item--kodak img {
  max-height: none;
  height: var(--brand-height-kodak);
  width: auto;
  max-width: 100%;
  transform: none;
}

.dossier__brands-list li.dossier__brand-item--kodak:hover img {
  opacity: 0.65;
  transform: scale(1.05);
}

.dossier__brands-list li.dossier__brand-item--mcarthur {
  height: var(--brand-height-mcarthur);
}

.dossier__brands-list li.dossier__brand-item--mcarthur img {
  transform: scale(1.22);
}

.dossier__brands-list li.dossier__brand-item--banner {
  width: var(--brand-banner-width);
  max-width: 100%;
  height: var(--brand-banner-height);
}

.dossier__brands-list li.dossier__brand-item--banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transform: none;
}

.dossier__brands-list li.dossier__brand-item--rtl {
  --brand-banner-width: min(100%, 7.5rem);
}

.dossier__brands-list li:hover img {
  opacity: 0.65;
  transform: scale(1.05);
}

.dossier__brands-list li.dossier__brand-item--mcarthur:hover img {
  transform: scale(1.28);
}

.dossier__brands-list li.dossier__brand-item--banner:hover img,
.dossier__brands-list li.dossier__brand-item--rtl:hover img {
  transform: scale(1.05);
}

@media (max-width: 960px) {
  .dossier__inner {
    grid-template-columns: 1fr;
  }

  .dossier__ascii {
    grid-column: 1;
    order: -1;
    position: relative;
    top: auto;
    margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  }

  .dossier__ascii__viewport {
    height: min(42vh, 22rem);
    max-height: 22rem;
    opacity: 0.38;
  }

  .dossier__layout {
    grid-column: 1;
    max-width: none;
    justify-self: stretch;
  }

  .dossier__name {
    max-width: none;
  }

  .dossier__meta,
  .dossier__bio,
  .dossier__foot {
    max-width: none;
  }

  .dossier__bio-p,
  .dossier__bio-p--soft {
    max-width: none;
  }

  .dossier__brands {
    margin-top: clamp(3.25rem, 8vh, 5rem);
  }
}

@media (max-width: 900px) {
  .dossier__brands {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
  }

  .dossier__brands::-webkit-scrollbar {
    display: none;
  }

  .dossier__brands-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    width: max-content;
    gap: clamp(2.5rem, 8vw, 3.75rem);
    padding-bottom: 0.2rem;
  }

  .dossier__brands {
    --brand-height: 3.1rem;
    --brand-height-kodak: 4.1rem;
    --brand-height-mcarthur: 3.75rem;
    --brand-banner-width: 5.35rem;
    --brand-banner-height: 2.85rem;
  }

  .dossier__brands-list li {
    flex: 0 0 auto;
    width: auto;
    height: var(--brand-height);
    min-width: 5.15rem;
  }

  .dossier__brands-list li.dossier__brand-item--mcarthur {
    height: var(--brand-height-mcarthur);
  }

  .dossier__brands-list li.dossier__brand-item--banner {
    width: var(--brand-banner-width);
    min-width: 0;
    height: var(--brand-banner-height);
  }

  .dossier__brands-list li.dossier__brand-item--rtl {
    --brand-banner-width: 5.5rem;
    --brand-banner-height: 2.75rem;
  }

  .dossier__brands-list li.dossier__brand-item--kodak {
    height: var(--brand-height-kodak);
  }

  .dossier__brands-list li.dossier__brand-item--kodak img {
    height: var(--brand-height-kodak);
  }
}

@media (max-width: 640px) {
  .dossier {
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right));
  }

  .dossier__name {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .dossier__meta {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dossier__foot-secondary {
    flex-direction: column;
    gap: 0.85rem;
  }

  .dossier__foot-inquiry {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dossier__ascii__pre {
    filter: none;
  }

  .dossier__ascii__pre .ascii-ch {
    transition: none !important;
  }

  .dossier__inner,
  body.is-page-ready .dossier__name {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .dossier__sheet .scroll-reveal {
    transition: none !important;
    transform: none !important;
    --reveal-p: 1 !important;
  }

  .dossier__foot-inquiry:hover {
    color: rgba(241, 234, 223, 0.92);
  }
}
