/* Shared layout for the illustrated service pages. */
body {
  --black: #081c23;
  --ink: #fff5e5;
  --body: #f4f5ee;
  --muted: #c2d4d2;
  --gold: #ffb74a;
  --pale-gold: #ffcf83;
  --line: #34565a;
  --paper: #f7f1e5;
  --sea-glass: #d8e8df;
  --dark-type: #123939;
  --paper-type: #344e48;
  --edge: clamp(1.2rem, 5vw, 5rem);
}
.site-header { background: #071119; border-color: #31414a; }
.header-inner { max-width: 96rem; padding-inline: clamp(1.15rem, 4.1vw, 4rem); }
.ex-wrap { max-width: 96rem; margin-inline: auto; padding-inline: var(--edge); }
.explainer-page h1, .explainer-page h2, .explainer-page h3 {
  font-family: var(--serif); font-weight: 400; text-wrap: balance;
}
.ex-hero { background: #134c52; }
.ex-hero-inner {
  position: relative; isolation: isolate; min-height: clamp(30rem, 40vw, 39rem);
  display: grid; align-items: center;
}
.ex-hero-copy { position: relative; z-index: 1; width: 44%; padding-block: 1.8rem clamp(2.4rem, 4vw, 4rem); }
.ex-hero .crumbs { padding: 0; margin: 0 0 clamp(1.3rem, 2.45vw, 2.5rem); color: #d1e6df; }
.ex-hero .crumbs a { color: #ffe0aa; }
.ex-hero .crumbs [aria-hidden] { color: #94b9b5; }
.ex-hero h1 { font-size: clamp(4rem, 7.9vw, 7.85rem); line-height: .9; letter-spacing: -.057em; }
.ex-hero h1 span { display: block; color: #ffd294; }
.ex-hero-copy > p { max-width: 38ch; margin-top: 1.25rem; font-size: clamp(1.08rem, 1.53vw, 1.43rem); line-height: 1.48; text-wrap: pretty; }
.ex-actions { margin-top: 1.65rem; display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.45rem; }
.explainer-page .primary { padding: .8rem 1.22rem; color: #112728; }
.ex-text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff4d9; text-underline-offset: .3em; }
.ex-hero-film {
  --play-size: 4.5rem;
  position: absolute; inset: 0 0 0 auto; width: 63%; overflow: hidden;
  display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 1fr var(--play-size) 1fr; isolation: isolate;
  color: #fff8ef; background: #285354; text-decoration: none;
}
.ex-hero-film > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 48%; }
.ex-hero-film::before {
  --credit-shade: radial-gradient(ellipse 86% 58% at 100% 100%, rgba(5,20,23,.82), rgba(5,20,23,.50) 48%, transparent);
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,#134c52 0%,rgba(19,76,82,.92) 5%,rgba(19,76,82,.46) 20%,transparent 42%),
              var(--credit-shade),
              linear-gradient(0deg,rgba(6,23,26,.91),rgba(9,32,34,.3) 24%,transparent 51%);
}
.ex-film-credit {
  position: relative; z-index: 2; grid-row: 3; place-self: end; min-width: 0;
  margin: .75rem var(--edge) clamp(1.65rem, 3vw, 3rem); text-shadow: 0 1px 5px #102226;
}
.ex-triangle { width: 0; height: 0; border-block: .35em solid transparent; border-left: .55em solid currentColor; display: inline-block; }
.ex-play-label, .ex-credit-line { display: block; line-height: 1.4; }
.ex-play-label { color: #ffcb76; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); font-weight: 700; }
.ex-film-credit strong { display: block; margin: .18rem 0; color: #fff5e4; font: 400 clamp(1.45rem, 2.3vw, 2.25rem)/1.1 var(--serif); letter-spacing: -.03em; }
.ex-credit-line { color: #fff5e5; font-size: 1.0625rem; font-weight: 600; }
.ex-hero-film:focus-visible { outline-offset: -5px; }

.ex-uses, .ex-work { color-scheme: light; color: var(--paper-type); }
.ex-uses { background: var(--sea-glass); border-top: 3px solid #d3aa65; }
.ex-uses-inner { padding-block: clamp(2.3rem,4vw,4rem); }
.ex-uses-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: .85rem clamp(2rem,5.5vw,5.5rem); }
.ex-uses h2 { font-size: clamp(2.2rem,3.7vw,3.8rem); color: var(--dark-type); max-width: 18ch; }
.ex-uses-intro > p { max-width: 52ch; font-size: clamp(1.05rem,1.35vw,1.25rem); line-height: 1.5; }
.ex-uses dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.35rem,3vw,3rem); margin: clamp(1.55rem,2.4vw,2.5rem) 0 0; }
.ex-uses dl > div { border-top: 1px solid #8cac9f; padding-top: 1rem; }
.ex-uses dt { font: 400 clamp(1.4rem,1.95vw,1.9rem)/1.15 var(--serif); color: #143e3b; letter-spacing: -.025em; text-wrap: balance; }
.ex-uses dd { margin: .65rem 0 0; font-size: clamp(1rem,1.12vw,1.06rem); line-height: 1.56; }
#explainer-uses dd { font-size: 1.2rem; color: var(--dark-type); }

.ex-work { background: var(--paper); padding-block: clamp(3rem,5.2vw,5.3rem); }
.ex-work h2, .ex-work h3 { color: var(--dark-type); }
.ex-work a:focus-visible, .ex-uses a:focus-visible { outline-color: #0b645d; }
.ex-section-heading {
  display: flex; align-items: baseline; justify-content: space-between; gap: .6rem 2rem; flex-wrap: wrap;
  padding-bottom: clamp(1.2rem,2vw,1.9rem); border-bottom: 1px solid #9aa99d;
}
.ex-section-heading h2 { font-size: clamp(2.8rem,5vw,5.05rem); line-height: 1; letter-spacing: -.05em; }
.ex-section-heading p { color: #466057; font-size: 1rem; }
.ex-section-heading strong { font-weight: 600; }
.ex-example {
  display: grid; grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr); grid-template-areas: "title media" "copy media";
  gap: .85rem clamp(2rem,5vw,5rem); padding-block: clamp(1.85rem,3.5vw,3.6rem);
}
.ex-example + .ex-example { border-top: 1px solid #bac2b3; }
.ex-example:last-of-type { padding-bottom: 0; }
.ex-example-reverse { grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); grid-template-areas: "media title" "media copy"; }
.ex-example h3 { grid-area: title; align-self: end; font-size: clamp(2rem,3.3vw,3.25rem); line-height: 1.06; letter-spacing: -.042em; }
.ex-example-copy { grid-area: copy; align-self: start; max-width: 58ch; font-size: clamp(1rem,1.24vw,1.16rem); line-height: 1.56; }
.ex-example-copy p + p { margin-top: .75rem; }
.ex-guide-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .45rem; color: #155955; font-weight: 600; text-underline-offset: .26em; }
.ex-guide-link:hover { color: #794416; }
.ex-example-film {
  grid-area: media; align-self: center; display: block; position: relative; overflow: hidden; background: #25433d;
  aspect-ratio: 16 / 9; border-radius: .15rem clamp(1.5rem,3vw,3rem) .15rem .15rem;
}
/* Leave room for a two-line watch label below the disc on narrow examples. */
.ex-example > .ex-example-film { min-width: 0; width: 100%; min-height: 12.25rem; }
.ex-example-reverse .ex-example-film { border-radius: clamp(1.5rem,3vw,3rem) .15rem .15rem .15rem; }
.ex-example-film img { width: 100%; height: 100%; object-fit: cover; }
.ex-full-play {
  position: absolute; bottom: .8rem; left: .8rem; display: inline-flex; align-items: center; gap: .5rem; max-width: calc(100% - 1.6rem);
  border: 1px solid rgba(255,236,198,.6); border-radius: 2rem; background: rgba(8,30,31,.9);
  color: #fff4dc; padding: .4rem .8rem; font: 600 .94rem/1.35 var(--sans); font-variant-numeric: tabular-nums;
}
.ex-full-play .ex-triangle { flex: none; color: #ffc979; font-size: .86rem; }

.ex-delivery { background: linear-gradient(110deg,#113c45,#15555a); }
.ex-delivery-inner {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center;
  gap: clamp(2.2rem,7vw,7rem); padding-block: clamp(3rem,5.1vw,5rem);
}
.ex-delivery h2 { font-size: clamp(2.3rem,3.65vw,3.75rem); line-height: 1.05; }
.ex-delivery dl { margin: 1.4rem 0 0; }
.ex-delivery dl > div { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.65fr); gap: .3rem 1rem; border-top: 1px solid #507479; padding: .85rem 0; }
.ex-delivery dl > div:last-child { padding-bottom: 0; }
.ex-delivery dt { color: #ffdc9f; font-weight: 600; }
.ex-delivery dd { margin: 0; color: #dfebe6; }
.ex-brief { border-left: 2px solid #e5b568; padding-left: clamp(1.5rem,3.7vw,3.8rem); }
.ex-brief h2 { max-width: 13ch; }
.ex-brief p { max-width: 36ch; margin: 1rem 0 1.35rem; color: #e9f1e9; font-size: 1.07rem; }

.social-page .ex-hero h1 { font-size: clamp(3.55rem,6.85vw,6.75rem); }
.social-hero-stills {
  position: absolute; inset: 0; display: grid; grid-template-columns: 43fr 57fr; gap: 2px;
  background: #ac9480;
}
.social-hero-stills img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }
.social-hero-stills img:first-child { object-position: 52% 31%; }
.social-hero-stills img:last-child { object-position: center 27%; }
.social-page .ex-example-film {
  width: min(100%, 24rem); aspect-ratio: 4 / 5; justify-self: center;
}
.social-trevi img { object-position: center 18%; }
.social-restaurant img { object-position: center 8%; }

.cinematic-page .ex-hero-film > img { object-position: 30% 43%; }

@media (min-width: 761px) and (max-width: 1000px) {
  :is(.social-page, .cinematic-page) .ex-hero-copy { width: 49%; }
  :is(.social-page, .cinematic-page) .ex-hero-film { width: 54%; }
}
@media (max-width: 950px) {
  .ex-delivery-inner { gap: 2.4rem; }
  .ex-delivery dl > div { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ex-hero-inner { display: block; min-height: 0; padding: 0; }
  .ex-hero-copy { width: auto; max-width: 40rem; padding: 1.25rem var(--edge) 1.65rem; }
  .ex-hero .crumbs { margin-bottom: 1.15rem; }
  .ex-hero h1 { font-size: clamp(3.05rem,9.8vw,4.65rem); line-height: 1; }
  .social-page .ex-hero h1 { font-size: clamp(3rem,8.5vw,4.5rem); }
  .social-hero-stills { grid-template-columns: 47fr 53fr; }
  .ex-hero h1 span { display: inline; }
  .ex-actions { margin-top: 1.1rem; gap: .35rem 1.1rem; }
  .ex-hero-copy > p { margin-top: .8rem; max-width: 49ch; }
  .ex-hero-film { --play-size: 3.5rem; position: relative; width: 100%; min-height: clamp(13.75rem,53vw,21rem); }
  .ex-hero-film > img { object-position: center 55%; }
  .ex-hero-film::before { background: var(--credit-shade), linear-gradient(0deg,rgba(6,23,26,.91),rgba(9,32,34,.12) 58%,transparent); }
  .ex-film-credit { margin: .65rem var(--edge) 1.05rem; }
  .ex-uses-intro { grid-template-columns: 1fr; }
  .ex-uses-intro h2 { max-width: 24ch; }
  .ex-uses dl { grid-template-columns: 1fr; gap: 1.2rem; }
  .ex-uses dd { max-width: 62ch; margin-top: .38rem; }
  .ex-example, .ex-example-reverse { grid-template-columns: 1fr; grid-template-areas: "title" "media" "copy"; gap: 1.05rem; }
  .ex-example-copy { max-width: 65ch; }
  .ex-delivery-inner { grid-template-columns: 1fr; }
  .ex-delivery dl > div { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
  .ex-brief { border-left: 0; border-top: 2px solid #be9b61; padding: 1.7rem 0 0; }
  .ex-brief h2, .ex-brief p { max-width: 36rem; }
}
@media (max-width: 620px) {
  .ex-section-heading { display: grid; gap: .65rem; }
}
@media (max-width: 390px) {
  .ex-delivery dl > div { grid-template-columns: 1fr; }
  .ex-actions .primary { padding-inline: .9rem; }
}
@media (max-width: 350px) {
  .header-inner { padding-inline: .85rem; gap: .4rem; }
}
