/* The editorial pages share spacing and type with the existing studio site. */
main.fp-studio {
  --editorial-ink: #0a1425;
  --editorial-panel: #101f35;
  --editorial-text: #f1f6ff;
  --editorial-muted: #c2d0e3;
  --editorial-accent: #add4ff;
  --editorial-line: #38506c;
  --editorial-space: clamp(3.25rem, 7.2vw, 7rem);
  padding-bottom: 0;
  color: var(--editorial-text);
  background: var(--editorial-ink);
}

.fp-studio :is(h1, h2, h3, p, figure) { margin: 0; }

.fp-studio h1 {
  max-width: 12ch;
  font-size: clamp(2.625rem, 6.8vw, 6rem);
  line-height: .99;
  letter-spacing: -.075em;
  text-wrap: initial;
}

.fp-studio h1 em {
  display: block;
  color: var(--editorial-accent);
  font-style: normal;
}

.fp-studio h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.055em;
  text-wrap: initial;
}

.fp-studio h3 {
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
  line-height: 1.23;
  letter-spacing: -.025em;
  text-wrap: initial;
}

.fp-studio p {
  line-height: 1.65;
  color: var(--editorial-muted);
}

.fp-studio .fp-studio-label {
  color: var(--editorial-accent);
  font-size: .73rem;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.fp-studio-hero {
  padding-block: clamp(2.75rem, 7vw, 7rem) clamp(3.5rem, 8vw, 7.5rem);
  background: radial-gradient(ellipse at 85% 0%, #1a3456 0%, transparent 61%), var(--editorial-ink);
}

.fp-studio-hero--team {
  background: radial-gradient(ellipse at 0% 0%, #1a3456 0%, transparent 63%), var(--editorial-ink);
}

.fp-studio-hero__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-bottom: 1rem;
  margin-bottom: clamp(1.75rem, 4.5vw, 4rem);
  border-bottom: 1px solid var(--editorial-line);
}

.fp-studio-location span,
.fp-studio-figure figcaption span { padding-inline: .22rem; }

.fp-studio-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4.5rem);
}

.fp-studio-hero__summary {
  max-width: 31rem;
  display: grid;
  justify-items: start;
  gap: 1.35rem;
  padding-block-end: .2rem;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.fp-studio :is(.fp-studio-button, .fp-studio-link) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 44px;
  max-width: 100%;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.3;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.fp-studio .fp-studio-button {
  width: fit-content;
  padding: .85rem 1.1rem;
  background: #b9dbff;
  color: #101f35;
  border: 1px solid transparent;
  border-radius: .55rem;
  text-decoration: none;
}

.fp-studio .fp-studio-button:is(:hover, :focus-visible) { background: #deedff; }

.fp-studio .fp-studio-link {
  width: fit-content;
  padding-block: .3rem;
  color: var(--editorial-accent);
  text-decoration: underline;
  text-decoration-color: #78a7dc;
  text-underline-offset: .24em;
}

.fp-studio .fp-studio-link:is(:hover, :focus-visible) {
  color: #f1f6ff;
  text-decoration-color: currentColor;
}

.fp-studio :is(.fp-studio-button, .fp-studio-link):focus-visible {
  outline: 2px solid var(--editorial-accent);
  outline-offset: 4px;
}

.fp-studio :is(.fp-studio-button, .fp-studio-link):active { transform: translateY(1px); }

.fp-studio-section {
  padding-block: var(--editorial-space);
  border-top: 1px solid var(--editorial-line);
}

.fp-studio-lounge {
  background: linear-gradient(140deg, #14243b 0%, var(--editorial-ink) 80%);
}

.fp-studio-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.65rem, 6vw, 6rem);
  align-items: center;
}

.fp-studio-copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.fp-studio-copy > :is(p, h2) { max-width: 56ch; }
.fp-studio-copy h2 { max-width: 16ch; }
.fp-studio .fp-studio-lede { color: var(--editorial-text); font-size: clamp(1.06rem, 1.5vw, 1.25rem); }

.fp-studio-figure {
  display: grid;
  gap: .8rem;
  min-width: 0;
}

.fp-studio-figure img {
  display: block;
  width: 100%;
  background: #1c2f46;
  object-fit: cover;
}

.fp-studio-figure figcaption {
  color: var(--editorial-muted);
  font-size: .8rem;
  line-height: 1.45;
}

.fp-studio-figure--lounge img {
  aspect-ratio: 1.11;
  object-position: center 31%;
  border: 1px solid #4a5d75;
  border-radius: .8rem;
  box-shadow: 0 18px 48px rgb(1 8 20 / 34%);
}

.fp-studio-services {
  --editorial-text: #152844;
  --editorial-muted: #304760;
  --editorial-accent: #214f7c;
  --editorial-line: #aebfd4;
  background: #e6eef7;
  color: var(--editorial-text);
}

.fp-studio-section-heading {
  display: grid;
  gap: .8rem;
  max-width: 50rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.fp-studio-section-heading p:last-child { max-width: 60ch; }

.fp-studio-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.8rem, 1.6vw, 1.4rem);
}

.fp-studio-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: .65rem;
  padding: clamp(1rem, 2.3vw, 2rem);
  background: var(--editorial-panel);
  border: 1px solid var(--editorial-line);
  border-radius: .75rem;
}

.fp-studio-card .fp-studio-link { justify-self: start; }

.fp-studio-services .fp-studio-card {
  background: #f6f9fd;
  box-shadow: 0 4px 12px rgb(24 48 76 / 7%);
}

.fp-studio-services .fp-studio-link:is(:hover, :focus-visible) { color: #122740; }

.fp-studio-split--process {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  align-items: start;
}

.fp-studio-steps {
  display: grid;
  width: 100%;
  margin: .5rem 0 0;
  padding: 0;
  list-style-position: inside;
}

.fp-studio-steps li {
  padding-block: .95rem;
  border-top: 1px solid var(--editorial-line);
}

.fp-studio-steps li::marker {
  color: var(--editorial-accent);
  font-size: .85rem;
  font-weight: 750;
}

.fp-studio-steps h3 { display: inline; }

.fp-studio-steps p {
  max-width: 57ch;
  margin-top: .38rem;
}

.fp-studio-figure--production {
  padding: .7rem;
  border: 1px solid var(--editorial-line);
  background: #0c1b2d;
}

.fp-studio-figure--production img { aspect-ratio: 757 / 1024; }
.fp-studio-figure--production figcaption { padding: 0 .2rem .15rem; }
.fp-studio-section-link { margin-top: .75rem; }

.fp-studio-team-feature {
  background: radial-gradient(ellipse at 0 40%, #203651, transparent 70%), var(--editorial-ink);
}

.fp-studio-split--team {
  grid-template-areas: "photo copy";
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
}

.fp-studio-split--team .fp-studio-copy { grid-area: copy; }

.fp-studio-figure--team {
  grid-area: photo;
  padding-top: .75rem;
  border-top: 1px solid #7099c7;
}

.fp-studio-figure--team img {
  aspect-ratio: 1.04;
  object-position: center 43%;
  border-radius: .65rem;
}

.fp-studio-standards { background: #101d30; }

.fp-studio-review {
  display: grid;
  gap: .7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fp-studio-review li {
  display: grid;
  gap: .24rem;
  padding: 1rem 1.15rem;
  color: var(--editorial-muted);
  background: #142740;
  border-left: 2px solid #7099c7;
  border-radius: 0 .55rem .55rem 0;
}

.fp-studio-review li strong { color: var(--editorial-text); }

.fp-studio-close {
  padding-block: clamp(2.75rem, 5.75vw, 5.75rem);
  background: linear-gradient(120deg, #1b3a61, #142540);
}

.fp-studio-close__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem 2rem;
}

.fp-studio-close__inner h2 { margin-block: .55rem; }

@media (max-width: 719px) {
  .fp-studio-hero__grid, .fp-studio-split, .fp-studio-close__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .fp-studio-split--team { grid-template-areas: "copy" "photo"; }
  .fp-studio-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    body:not(.motion-paused) .fp-studio-figure img {
      animation: fp-studio-frame-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }

    @keyframes fp-studio-frame-in {
      from { opacity: .8; transform: translateY(.45rem); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}
