/* Whet Walls v3 inner pages. Loaded after home-v3.css. */

.page-wall {
  position: relative;
  min-height: 88svh;
  overflow: clip;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  background-color: #081032;
}

.page-wall--short {
  min-height: 64svh;
}

.page-sky,
.page-strokes {
  position: absolute;
  inset: 0;
}

.page-sky {
  z-index: 0;
  background-color: #081032;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(88% 68% at 16% 30%, rgba(31, 79, 209, .5), transparent 70%),
    linear-gradient(180deg, #081032 0%, #0B1640 30%, #14296B 62%, #1F4FD1 88%);
}

.page-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--streaks);
  background-size: 600px;
  background-repeat: repeat;
  opacity: .10;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.page-wall--services .page-sky {
  background-image:
    radial-gradient(82% 54% at 84% 114%, rgba(255, 122, 26, .9), rgba(255, 178, 46, .3) 32%, transparent 62%),
    radial-gradient(90% 68% at 14% 28%, rgba(31, 79, 209, .55), transparent 70%),
    linear-gradient(180deg, #081032 0%, #0B1640 30%, #14296B 62%, #1B3FA8 82%, #23336f 100%);
}

.page-wall--request .page-sky {
  background-image:
    radial-gradient(80% 52% at 84% 114%, rgba(255, 122, 26, .86), rgba(255, 178, 46, .28) 34%, transparent 64%),
    radial-gradient(86% 64% at 84% 24%, rgba(31, 79, 209, .48), transparent 68%),
    linear-gradient(180deg, #081032 0%, #0B1640 32%, #14296B 64%, #1F4FD1 90%);
}

.page-wall--privacy .page-sky {
  background-image:
    radial-gradient(72% 38% at 50% 112%, rgba(255, 122, 26, .2), rgba(255, 178, 46, .08) 42%, transparent 70%),
    radial-gradient(92% 70% at 22% 32%, rgba(31, 79, 209, .32), transparent 72%),
    linear-gradient(180deg, #081032 0%, #0B1640 42%, #14296B 80%, #162a62 100%);
}

.page-strokes {
  z-index: 1;
  pointer-events: none;
}

.page-strokes svg {
  display: block;
  width: 100%;
  height: 100%;
}

.page-wall::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  z-index: 1;
  background:
    radial-gradient(90% 95% at 0% 100%, rgba(8, 16, 50, .95), rgba(8, 16, 50, .84) 52%, transparent 88%),
    linear-gradient(0deg, rgba(8, 16, 50, .35), transparent 60%);
  pointer-events: none;
}

.page-type {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 0;
}

.page-type h1 {
  margin: 0;
  --measure: 11ch;
  font-family: Fraunces, Georgia, serif;
  font-weight: 900;
  font-size: clamp(3rem, 12.5vw, 12rem);
  line-height: .84;
  letter-spacing: -0.035em;
  font-optical-sizing: auto;
  color: var(--plaster);
  text-wrap: balance;
  -webkit-mask-image: var(--paintmask);
  mask-image: var(--paintmask);
  -webkit-mask-size: 300px;
  mask-size: 300px;
}

.page-type h1 em {
  display: block;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.page-lead {
  position: relative;
  z-index: 2;
  margin: 2.25rem var(--gutter) clamp(4rem, 10svh, 7rem);
  max-width: 36ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: rgba(244, 239, 230, .96);
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(244, 239, 230, .28);
}

.act--s1 .act-wall {
  background-color: #0B1640;
  background-image:
    radial-gradient(44% 36% at 100% 0%, rgba(255, 122, 26, .58), rgba(255, 178, 46, .16) 40%, transparent 66%),
    linear-gradient(208deg, #1F4FD1 0%, #1a3ea8 30%, #14296B 62%, #0B1640 100%);
}

.act--s1 .act-wall::before {
  background-image: var(--streaks);
}

.act--s2 .act-wall {
  background-color: #081032;
  background-image:
    radial-gradient(52% 46% at 94% 6%, rgba(31, 79, 209, .6), transparent 66%),
    linear-gradient(180deg, #081032 0%, #0B1640 48%, #081032 100%);
}

.act--s2 .act-wall::before {
  background-image: var(--bristle);
}

/* Short headers have no lead line below the h1, so the h1 needs its own bottom room. */
.page-wall--short .page-type {
  padding-bottom: clamp(3.5rem, 9svh, 6rem);
}

@media (max-width: 47.99rem) {
  .page-wall {
    min-height: 80svh;
  }

  .page-wall--short {
    min-height: 60svh;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .page-wall::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250%;
    z-index: 1;
    background-image: linear-gradient(100deg, transparent 30%, rgba(244, 239, 230, .14) 50%, transparent 70%);
    background-size: 100% 100%;
    transform: translateX(-90%);
    background-repeat: no-repeat;
    mix-blend-mode: soft-light;
    pointer-events: none;
    animation: rake 1600ms var(--ease) 250ms forwards;
  }

  html.js .page-type h1 {
    transform-origin: 0 100%;
    animation: page-type-in 1300ms var(--ease) both;
  }

  html.js .page-lead {
    animation: page-lead-in 1100ms var(--ease) 500ms both;
  }

  html.js .page-strokes {
    transform-origin: 50% 50%;
    animation: page-strokes-in 1800ms var(--ease) both;
  }
}

@keyframes page-type-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes page-lead-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes page-strokes-in {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* Request a mural consultation page. */

.page--request .page-type h1 {
  --measure: 16ch;
}

.form-read {
  position: relative;
  isolation: isolate;
  background-color: var(--navy-deep);
  overflow: clip;
}

.form-read::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--bristle);
  background-repeat: repeat;
  background-size: 600px;
  opacity: .12;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.form-read .act-read-inner {
  position: relative;
  z-index: 1;
}

.form-read .act-read-inner::before {
  content: none;
}

.form-read form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2.25rem;
  column-gap: 2rem;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.form-read .field {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-width: 0;
}

.form-read .field label {
  display: flex;
  align-items: flex-end;
  min-height: 44px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(.8125rem, .7rem + .35vw, .875rem);
  letter-spacing: .08em;
  line-height: 1.35;
  color: rgba(244, 239, 230, .9);
}

.form-read input,
.form-read textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: .9rem 1rem;
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--plaster);
  caret-color: var(--plaster);
  background-color: rgba(8, 16, 50, .55);
  border: 0;
  border-bottom: 2px solid rgba(244, 239, 230, .55);
  border-radius: 0;
  appearance: none;
  overflow-wrap: break-word;
  transition: color 400ms var(--ease), border-color 400ms var(--ease);
}

.form-read textarea {
  min-height: 10rem;
  resize: vertical;
}

.form-read input:focus,
.form-read textarea:focus,
.form-read input:focus-visible,
.form-read textarea:focus-visible {
  border-bottom-color: var(--orange);
  outline: 2px solid var(--plaster);
  outline-offset: 3px;
}

.form-read .field:last-of-type,
.form-read button.button {
  grid-column: 1 / -1;
}

.form-read button.button {
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: .005em;
  color: #14296B;
  text-align: center;
  text-decoration: none;
  margin-top: 1rem;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

@media (min-width: 48rem) {
  .form-read form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2rem;
    row-gap: 2.25rem;
  }
}

@media (max-width: 47.99rem) {
  .form-read form {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-read button.button {
    width: 100%;
  }
}

@media (max-width: 20.5rem) {
  .form-read button.button {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }
}

@media (min-width: 64rem) {
  .form-read form {
    grid-column: 1 / 13;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .form-read.is-in::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250%;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(100deg, transparent 30%, rgba(244, 239, 230, .14) 50%, transparent 70%);
    background-size: 100% 100%;
    transform: translateX(-90%);
    background-repeat: no-repeat;
    mix-blend-mode: soft-light;
    animation: rake 1600ms var(--ease) 250ms 1 forwards;
  }
}

/* Privacy page. */

.page-wall--privacy .page-type h1 {
  --measure: 100%;
  font-size: clamp(3.5rem, 18vw, 14rem);
}

.privacy-read {
  position: relative;
  isolation: isolate;
  background-color: var(--navy-deep);
  min-height: 60svh;
  padding: clamp(6rem, 14vw, 13rem) var(--gutter);
  overflow: clip;
}

.privacy-read::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 220px;
  opacity: .04;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.privacy-read .act-read-inner {
  position: relative;
  z-index: 1;
}

.privacy-read p {
  max-width: 34ch;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.6;
  color: rgba(244, 239, 230, .92);
}

/* Contact page. */

.page-wall--contact .page-sky {
  background-image:
    radial-gradient(42% 34% at 108% 112%, rgba(255, 122, 26, .78), rgba(255, 178, 46, .24) 38%, transparent 68%),
    radial-gradient(78% 56% at 28% 46%, rgba(31, 79, 209, .46), transparent 70%),
    linear-gradient(180deg, #081032 0%, #0B1640 26%, #14296B 54%, #1F4FD1 84%);
}

.contact-read {
  position: relative;
  isolation: isolate;
  background-color: var(--navy-deep);
  min-height: 60svh;
  padding: clamp(6rem, 14vw, 13rem) var(--gutter);
  overflow: clip;
}

.contact-read::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  background-size: 220px;
  opacity: .04;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.contact-read .act-read-inner {
  position: relative;
  z-index: 1;
}

.contact-list {
  margin: 0;
  display: grid;
  row-gap: 2.5rem;
  min-width: 0;
}

.contact-item {
  display: grid;
  row-gap: .5rem;
  min-width: 0;
}

.contact-item dt {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: none;
  color: rgba(244, 239, 230, .82);
}

.contact-item dd {
  margin: 0;
  min-width: 0;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  min-width: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.15;
  color: var(--plaster);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: rgba(244, 239, 230, .45);
  overflow-wrap: anywhere;
  transition: text-decoration-color 400ms var(--ease);
}

.contact-list a:hover,
.contact-list a:focus-visible {
  text-decoration-color: var(--orange);
}

@media (min-width: 64rem) {
  .contact-list {
    grid-column: 6 / 13;
    grid-row: 1;
  }
}
