/* dfisun.com — "Presence", inner pages. Loaded after style.css; same palette, type, curve and margins. */
.page { padding-top: calc(var(--head) + 96px); padding-bottom: 0; }
.crumb { margin-bottom: 20px; color: rgba(29, 29, 27, .85); }
.crumb .link { color: inherit; }
.page-label { color: rgba(29, 29, 27, .85); margin-bottom: 28px; }
html:not(.js) img[data-fade] { opacity: 1; }
@media (max-width: 760px) {
  .page { padding-top: calc(var(--head) + 48px); }
  .crumb { margin-bottom: 14px; }
}

/* Dark page (reel) */
.is-dark-page, .is-dark-page body { background: var(--dark); color: var(--bone); }
.is-dark-page .crumb, .is-dark-page .next__l { color: rgba(236, 233, 226, .85); }
.is-dark-page .foot { border-top-color: var(--hair-light); color: rgba(236, 233, 226, .85); }
.is-dark-page .foot .link { color: var(--bone); }
.is-dark-page ::selection { background: var(--bone); color: var(--ink); }

/* Media index: three large serif links, one image each */
.page--idx { padding-top: calc(var(--head) + 56px); }
@media (max-width: 760px) { .page--idx { padding-top: calc(var(--head) + 40px); } }
.idx { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); }
.idx__a { display: block; }
.idx__ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #dcd8cf; }
.idx__ph img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.001); transition: transform .9s var(--ease), opacity 1s var(--ease);
}
.idx__ph img.is-loaded { opacity: 1; }
.idx__cap { display: flex; justify-content: space-between; align-items: baseline; gap: var(--g); padding-top: 18px; }
.idx__t {
  font: 300 clamp(40px, 4.2vw, 76px)/1 var(--serif); letter-spacing: -.015em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .9s var(--ease); padding-bottom: .06em;
}
.idx__n { font: 500 13px/1 var(--sans); letter-spacing: .08em; color: rgba(29, 29, 27, .85); }
@media (hover: hover) {
  .idx__a:hover .idx__ph img { transform: scale(1.04); }
  .idx__a:hover .idx__t { background-size: 100% 1px; }
}
@media (max-width: 760px) {
  .idx { grid-template-columns: 1fr; row-gap: 48px; }
  .idx__cap { padding-top: 14px; }
}

/* Headshots: a calm grid of all 47, the same tile and caption as the home strip */
.shots.page { padding-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--g); row-gap: 16px; }
.grid .tile { width: auto; }
.tile__btn { display: block; width: 100%; text-align: left; cursor: pointer; }
.grid .tile__ph img { inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: 100%; }
@media (hover: hover) { .grid .tile__btn:hover .tile__ph img { transform: scale(1.06); } .grid .tile:hover .tile__t { opacity: 1; transform: none; filter: none; } }
@media (hover: none) { .grid .tile__t { display: none; } }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 4px; }
  .grid .tile__cap { padding-top: 10px; min-height: 32px; }
}

/* Reel page: the home reel section, as a page */
.reel.page { padding-top: calc(var(--head) + 72px); padding-bottom: 0; }
.reel__side { grid-column: 1 / 4; }
.reel__side .reel__h { grid-column: auto; }
.reel__frame .reel__poster { opacity: 1; }
@media (min-width: 761px) { .reel.page > .reel__grid { min-height: calc(100svh - var(--head) - 72px); } }
@media (max-width: 760px) {
  .reel.page { padding-top: calc(var(--head) + 48px); }
  .reel__side .reel__h { margin-bottom: 32px; }
}

/* Résumé page */
.resume.page { padding-bottom: 0; }

/* Contact page: the home contact block, then his own photos */
.contact.page { min-height: 0; display: block; }
.life { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); align-items: start; padding-top: 120px; }
.life__it { margin-bottom: 56px; }
.life__btn { display: block; width: 100%; overflow: hidden; background: #dcd8cf; cursor: pointer; }
.life__btn img { width: 100%; height: auto; opacity: 0; transform: scale(1.001); transition: transform .9s var(--ease), opacity 1s var(--ease); }
.life__btn img.is-loaded { opacity: 1; }
.life__cap { font: italic 300 22px/1.25 var(--serif); padding-top: 14px; }
@media (hover: hover) { .life__btn:hover img { transform: scale(1.04); } }
@media (max-width: 760px) {
  .life { grid-template-columns: 1fr; padding-top: 72px; }
  .life__it { margin-bottom: 40px; }
  .life__cap { font-size: 20px; padding-top: 12px; }
}

/* Next page: one large serif link before the footer */
.next { padding-top: 144px; }
.next__l { color: rgba(29, 29, 27, .85); margin-bottom: 20px; }
.next__a {
  display: inline-block;
  font: 300 clamp(40px, 4.6vw, 84px)/1 var(--serif); letter-spacing: -.015em; margin-left: -.03em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .9s var(--ease), opacity .3s var(--ease); padding-bottom: .06em;
}
@media (hover: hover) { .next__a:hover { background-size: 100% 1px; } }
@media (max-width: 760px) { .next { padding-top: 104px; } }

/* 404 */
.lost { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--head); padding-bottom: var(--head); }
.lost__h { font: 300 clamp(44px, 7.4vw, 150px)/1 var(--serif); letter-spacing: -.025em; margin-left: -.04em; }
.lost .contact__row { flex-wrap: wrap; row-gap: 4px; }

@media (prefers-reduced-motion: reduce) {
  .idx__ph img, .life__btn img, .grid .tile__ph img { transition: opacity .4s linear; }
  .idx__a:hover .idx__ph img, .life__btn:hover img, .grid .tile__btn:hover .tile__ph img { transform: none; }
}
.tile__btn .tile__ph { display: block; }
