/* Editorial presentation for Philip Bowers's portfolio. */
.header {
  box-shadow: 0 1px 0 rgba(17, 19, 24, .04);
}

.header nav a {
  position: relative;
  transition: color .25s ease;
}

.identity { white-space: nowrap; }

.header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.header nav a:hover::after,
.header nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: min(900px, calc(100svh - 80px));
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #101824;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 15, 25, .91) 0%, rgba(8, 15, 25, .76) 27%, rgba(8, 15, 25, .36) 52%, rgba(8, 15, 25, .03) 83%),
    linear-gradient(0deg, rgba(8, 15, 25, .86) 0%, transparent 36%, rgba(8, 15, 25, .14) 100%);
}

.hero-image {
  position: absolute;
  inset: 0 0 0 30%;
  z-index: -2;
  display: block;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 38%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 57% 54%;
  transform: scale(1.035);
  animation: hero-arrive 1.6s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-image figcaption {
  position: absolute;
  right: max(48px, calc((100vw - 1320px) / 2));
  bottom: 82px;
  left: auto;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, .75);
  font-size: .6875rem;
  letter-spacing: .04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  width: min(1320px, calc(100% - 96px));
  min-height: 650px;
  padding-block: clamp(64px, 10vh, 120px) clamp(78px, 10vh, 120px);
}

.hero-heading {
  grid-column: auto;
  grid-row: auto;
  max-width: 920px;
  padding: 0;
  animation: hero-copy .9s .12s both;
}

.hero .kicker {
  color: #e8eefb;
  font-size: .75rem;
  letter-spacing: .22em;
}

.hero .kicker span {
  margin-inline: .85em;
  color: #91a9d7;
}

.hero h1 {
  max-width: 760px;
  margin-top: 32px;
  color: #fff;
  font-size: clamp(4.25rem, 5.5vw, 6.9rem);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: #f7f3ee;
  font-size: .91em;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.hero-intro {
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  max-width: 575px;
  margin-top: 36px;
  padding: 0;
  color: #e8e8ec;
  animation: hero-copy .9s .32s both;
}

.hero-intro p {
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
}

.hero-intro .button {
  margin: 0;
  padding: 15px 19px;
  border-color: #f7f3ee;
  border-radius: 2px;
  background: #f7f3ee;
  color: #141921;
  font-size: .875rem;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.hero-intro .button:hover {
  transform: translateY(-2px);
  background: #dbe7ff;
  border-color: #dbe7ff;
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  padding-block: 7px;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  transition: gap .22s ease, border-color .22s ease;
}

.hero-text-link:hover {
  gap: 16px;
  border-color: #fff;
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  grid-column: auto;
  grid-row: auto;
  justify-content: space-between;
  align-self: center;
  width: min(1320px, calc(100% - 96px));
  margin: 0;
  padding: 20px 0 25px;
  border-top: 1px solid rgba(255, 255, 255, .34);
  border-bottom: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .75rem;
  letter-spacing: .04em;
}

.hero-foot span + span {
  border-left: 1px solid rgba(255, 255, 255, .3);
  padding-left: 32px;
}

.work-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-block: 32px 28px;
}

.work-index a {
  position: relative;
  display: block;
  min-height: 228px;
  overflow: hidden;
  background: #131b29;
  color: #fff;
}

.work-index a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 11, 20, .94), rgba(5, 11, 20, .02) 90%);
  pointer-events: none;
}

.work-index img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), filter .4s ease;
}

.work-index a:hover img,
.work-index a:focus-visible img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.work-index a > span {
  position: absolute;
  inset: auto 22px 20px;
  z-index: 1;
  display: grid;
  gap: 3px;
}

.work-index small {
  color: #ced8e9;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.work-index strong {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.8vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
}

.work-index em {
  color: #e3eaf5;
  font-size: .75rem;
  font-style: normal;
}

.work-index em span {
  margin-left: 4px;
}

.imaging-section {
  border-top: 0;
}

.reading-progress {
  height: 2px;
  background: #748fd3;
}

.model-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid #344157;
  border-radius: 3px;
  background: #101824;
  color: #f7f3ee;
}

.model-feature .kicker { color: #bacbf1; }
.model-feature-mark { display: grid; justify-items: start; }
.model-feature-mark strong {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
}
.model-feature-mark > span:last-child {
  color: #bacbf1;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.model-feature-copy h3 { max-width: 620px; font-size: clamp(2rem, 3.1vw, 3rem); }
.model-feature-copy p { max-width: 720px; margin-top: 20px; color: #d9e1ee; line-height: 1.75; }

@keyframes hero-arrive {
  from { opacity: .75; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.035); }
}

@keyframes hero-copy {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .hero { min-height: 730px; }
  .hero-content { min-height: 650px; }
  .hero h1 { max-width: 740px; font-size: clamp(3.8rem, 6.5vw, 5.7rem); }
  .hero-image img { object-position: 62% center; }
  .work-index a { min-height: 195px; }
}

@media (max-width: 768px) {
  .model-feature { grid-template-columns: 1fr; gap: 28px; padding: 32px 25px; }
  .model-feature-mark strong { font-size: 5.5rem; }
  .hero-image { inset: 0; mask-image: none; }
  .header-inner { min-height: 68px; }
  .hero {
    min-height: max(720px, calc(100svh - 68px));
    justify-content: flex-end;
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(8, 15, 25, .75), rgba(8, 15, 25, .65) 42%, rgba(8, 15, 25, .96) 95%),
      linear-gradient(90deg, rgba(8, 15, 25, .4), transparent 75%);
  }
  .hero-image img { object-position: 60% center; }
  .hero-content {
    width: min(100% - 36px, 560px);
    min-height: 0;
    flex: 1;
    justify-content: flex-end;
    padding-block: 58px 54px;
  }
  .hero .kicker { font-size: .625rem; letter-spacing: .15em; }
  .hero h1 { max-width: 600px; font-size: clamp(3.3rem, 9vw, 5rem); }
  .hero-intro { max-width: 550px; margin-top: 22px; }
  .hero-intro p { font-size: 1rem; line-height: 1.62; }
  .hero-actions { flex-wrap: wrap; gap: 14px 24px; margin-top: 24px; }
  .hero-image figcaption { right: 18px; bottom: 20px; font-size: .5625rem; }
  .hero-foot {
    width: min(100% - 36px, 560px);
    justify-content: flex-start;
    gap: 6px 18px;
    flex-wrap: wrap;
    padding-block: 15px 23px;
    font-size: .6875rem;
  }
  .hero-foot span + span { border: 0; padding: 0; }
  .work-index {
    display: flex;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 16px 18px 22px;
    scrollbar-width: none;
  }
  .work-index::-webkit-scrollbar { display: none; }
  .work-index a { flex: 0 0 min(79vw, 350px); min-height: 202px; scroll-snap-align: start; }
  .work-index a:nth-child(2) { display: block; }
}

@media (max-width: 450px) {
  .hero { min-height: max(730px, calc(100svh - 68px)); }
  .hero h1 { font-size: clamp(3rem, 11vw, 4rem); }
  .hero-image img { object-position: 57% center; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-image figcaption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image img, .hero-heading, .hero-intro { animation: none; }
  .work-index img, .hero-intro .button, .hero-text-link { transition: none; }
}
