/* Pelagic Research, painted design: the homepage (painted cover, sheet, sections, contact band). */
:root {
  --paper: #fdfcf9; --paper-2: #f6f3ec; --ink: #16181d; --ink-soft: #3a3c42; --muted: #625f57; --hair: rgba(22, 24, 29, .14);
  --brand: #4248ed; --pen: #2f35d6; --deep: #0b1433; --deep-2: #050d24; --on-deep: #eef0f8; --on-deep-soft: rgba(238, 240, 248, .76);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 72px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { background: var(--paper); color: var(--ink); }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(66, 72, 237, .18); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 2px;
  font-weight: 600; font-size: .95rem; text-decoration: none; background: var(--brand); color: #fff; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), background-color 150ms ease; }
.btn:hover { background: var(--pen); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.light { background: var(--brand); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.btn.light:active { box-shadow: 1px 1px 0 var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn.light:hover { background: var(--pen); } }
.more { color: var(--pen); text-decoration: none; font-weight: 500; white-space: nowrap; }
.more::after { content: "\2192"; display: inline-block; margin-left: .35em; transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .more:hover::after { transform: translateX(3px); } }
.site-header { position: fixed; z-index: 60; top: 0; left: 0; right: 0; transition: background-color 220ms ease, box-shadow 220ms ease; }
.site-header.on-paper, .site-header:has(.nav.open) { background: var(--paper); box-shadow: 0 1px 0 rgba(22, 24, 29, .12); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-toggle { display: none; }
.site-header .wrap { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; }
.brand img { width: 52px; height: auto; filter: invert(1) brightness(.18); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.nav a:hover { color: var(--pen); }
.nav .contact-link { padding: 10px 16px; border: 1px solid var(--ink); border-radius: 2px; }
.cover { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 62rem); display: grid; align-items: end; }
.cover-art { position: absolute; inset: 0; z-index: -2; }
.cover-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.cover-art .base { animation: focus 1800ms var(--ease-out) both, drift 38s ease-in-out 1800ms infinite alternate backwards; }
.cover-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(253, 252, 249, .55) 0%, rgba(253, 252, 249, 0) 22%),
              linear-gradient(90deg, rgba(253, 252, 249, .5), rgba(253, 252, 249, 0) 60%); }
.cover-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: -1; background: linear-gradient(180deg, rgba(253, 252, 249, 0), var(--paper)); }
.cover-text { width: 100%; padding-block: calc(var(--nav-h) + 48px) 22vh; align-self: start; }
.cover h1 { font-size: clamp(3.4rem, 9.5vw, 9rem); line-height: .9; letter-spacing: -.03em; }
.cover h1 .word { display: inline-block; animation: rise 800ms var(--ease-out) both; animation-delay: calc(200ms + var(--w) * 60ms); }
.cover .line { margin-top: 28px; max-width: 26em; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-soft);
  animation: fade-up 700ms var(--ease-out) 560ms both; text-wrap: pretty; }
.cover .actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 36px; animation: fade-up 700ms var(--ease-out) 660ms both; }
.cover .credit { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 20px; font-size: .74rem; color: var(--muted); }
.cue { position: absolute; left: 50%; bottom: 22px; width: 28px; height: 28px; margin-left: -14px; color: var(--ink); opacity: .55;
  animation: fade-in 600ms ease 1400ms both, bob 2.4s ease-in-out 2s infinite; }
@keyframes focus { from { opacity: 0; filter: blur(10px) saturate(.6); } }
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.6%, -1%, 0); } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, .4em, 0); } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(5px); } }
section { padding-block: clamp(72px, 10vw, 136px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split > * { min-width: 0; }
.kicker-date { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.big { font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.02em; }
.u { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: .07em; text-underline-offset: .12em; }
.serif-lede { margin-top: 28px; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); max-width: 30em; }
.intro { background-color: var(--paper); --hair: rgba(22, 24, 29, .045);
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 96px 96px; background-position: center top; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps-head { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.steps li { padding-top: 22px; border-top: 1px solid rgba(22, 24, 29, .14); color: var(--ink-soft); text-wrap: pretty; }
.steps b { color: var(--ink); font-weight: 600; }
.report { background: var(--paper-2); }
.report-title { margin-top: 18px; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; }
.report-summary { margin-top: 24px; color: var(--ink-soft); max-width: 38em; text-wrap: pretty; }
.report .actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.facts div { padding: 20px 0; border-bottom: 1px solid rgba(22, 24, 29, .14); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 2rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.facts dd.rating { color: var(--pen); }
.facts .note { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); border-bottom: 0; }
.ticker { font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-left: .4em; }
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 48px; }
.sector { text-decoration: none; display: flex; flex-direction: column; }
.sector figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.sector figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sector:hover figure img { transform: scale(1.03); } }
.sector .art-credit { margin-top: 10px; font-size: .74rem; color: var(--muted); }
.sector .art-credit i { font-family: var(--serif); font-size: .85rem; }
.sector h3 { margin-top: 22px; font-size: 1.9rem; }
.sector p { margin-top: 8px; color: var(--ink-soft); text-wrap: pretty; }
.sector .subs { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.sector .more { margin-top: auto; padding-top: 16px; }
/* the contact band: the manta painting rises straight out of the painted band above it. The section
   overlaps that band by --overlap and the painting fades in from transparent, so one painting dissolves
   into the next with no white gap; the dark wash for the words only starts below the dissolve. */
:root { --overlap: clamp(240px, 26vw, 380px); }
.contact { position: relative; isolation: isolate; overflow: hidden; color: var(--on-deep); background: none;
  margin-top: calc(-1 * var(--overlap)); padding-block: calc(var(--overlap) + clamp(170px, 17vw, 260px)) clamp(110px, 13vw, 180px); }
.contact .wrap { position: relative; z-index: 1; }
.contact-art { position: absolute; inset: 0; z-index: -1; background: #0d2f3b;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .08) calc(var(--overlap) * .2), rgba(0, 0, 0, .3) calc(var(--overlap) * .45), rgba(0, 0, 0, .66) calc(var(--overlap) * .72), rgba(0, 0, 0, .92) calc(var(--overlap) * .92), #000 var(--overlap));
          mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .08) calc(var(--overlap) * .2), rgba(0, 0, 0, .3) calc(var(--overlap) * .45), rgba(0, 0, 0, .66) calc(var(--overlap) * .72), rgba(0, 0, 0, .92) calc(var(--overlap) * .92), #000 var(--overlap)); }
.contact-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.contact-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 28, 38, .88) 0%, rgba(6, 28, 38, .62) 42%, rgba(6, 28, 38, .12) 78%, rgba(6, 28, 38, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--overlap) + 60px), #000 calc(var(--overlap) + 260px));
          mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--overlap) + 60px), #000 calc(var(--overlap) + 260px)); }
/* the band above keeps its painting to the very bottom (no paper fade there), and leaves room for the overlap */
.sheet > section.strata.process { padding-block: var(--pt) calc(var(--overlap) + clamp(70px, 8vw, 120px)); }
.process .strata-art::after {
  background:
    linear-gradient(180deg, rgb(var(--paper-rgb)) 0, rgba(var(--paper-rgb), .86) 30px, rgba(var(--paper-rgb), .5) 72px, rgba(var(--paper-rgb), .18) 118px, rgba(var(--paper-rgb), 0) 170px),
    linear-gradient(180deg, rgba(var(--paper-rgb), .05) 0, rgba(var(--paper-rgb), .1) calc(var(--pt) - 70px), rgba(var(--paper-rgb), .42) calc(var(--pt) + 10px),
                    rgba(var(--paper-rgb), .62) calc(var(--pt) + 96px), rgba(var(--paper-rgb), .5) calc(100% - var(--overlap)), rgba(var(--paper-rgb), .38) 100%),
    linear-gradient(90deg, rgba(var(--paper-rgb), .3), rgba(var(--paper-rgb), 0) 60%); }
.contact h2 { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.02em; }
.contact p { margin-top: 22px; max-width: 32em; color: var(--on-deep-soft); font-size: 1.1rem; }
.contact .actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.contact .more { color: var(--on-deep); }
.site-footer { background: var(--deep-2); color: var(--on-deep-soft); padding-block: 64px 40px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-grid img { width: 170px; height: auto; opacity: .9; }
.footer-grid h2 { margin: 0 0 14px; color: var(--on-deep); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--on-deep); }
.fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(238, 240, 248, .14); font-size: .78rem; line-height: 1.6; color: rgba(238, 240, 248, .55); }
@media (prefers-reduced-motion: reduce) {
  .cover-art .base, .cover h1 .word, .cover .line, .cover .actions, .cue { animation: fade-in 300ms ease both !important; }
}
@media (max-width: 899.98px) {
  :root { --nav-h: 64px; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .bars, .bars::before { display: block; width: 22px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform 220ms cubic-bezier(.2, .8, .2, 1); }
  .bars { position: relative; transform: translateY(-3.5px); }
  .bars::before { content: ""; position: absolute; left: 0; top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(-7px) rotate(-90deg); }
  .nav { position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--paper); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms ease, transform 260ms var(--ease-out), visibility 0s linear 260ms; }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 260ms var(--ease-out), visibility 0s; }
  .nav a, .nav .contact-link { display: block; padding: 18px 0; border: 0; border-bottom: 1px solid rgba(22, 24, 29, .12); border-radius: 0;
    font-family: var(--serif); font-size: 1.7rem; font-weight: 400; letter-spacing: -.01em; text-transform: none; }
  .split, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .sectors { grid-template-columns: minmax(0, 1fr); }
  .cover-text { padding-bottom: 26vh; }
  .cover h1 { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .cover .credit { left: max(16px, env(safe-area-inset-left, 0px)); right: auto; bottom: 64px; }
}
.sheet { position: relative; isolation: isolate; overflow: hidden; background-color: var(--paper);
  background-image:
    radial-gradient(56rem 40rem at 108% 18%, rgba(126, 196, 184, .24), transparent 70%),
    radial-gradient(48rem 36rem at -12% 52%, rgba(232, 206, 150, .26), transparent 70%),
    radial-gradient(52rem 38rem at 110% 88%, rgba(126, 196, 184, .2), transparent 70%),
    linear-gradient(rgba(22, 24, 29, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 24, 29, .045) 1px, transparent 1px);
  background-size: auto, auto, auto, 96px 96px, 96px 96px; background-position: 0 0, 0 0, 0 0, center top, center top; }
.sheet > section { background: none; padding-block: clamp(48px, 6vw, 88px); }
.sheet > section:first-of-type { padding-top: clamp(72px, 9vw, 128px); }
.sheet > section:last-of-type { padding-bottom: clamp(80px, 10vw, 140px); }
.mark-ghost { position: absolute; z-index: -1; pointer-events: none; width: min(64vw, 860px); height: auto;
  left: 50%; top: clamp(140px, 14vw, 200px); transform: translateX(-38%) rotate(-5deg); opacity: .05; }
.lead-in { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.3; color: var(--muted); }
.u { text-decoration-thickness: .085em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.opener { font-weight: 700; text-transform: uppercase; letter-spacing: .015em; color: var(--ink); }
.prose { color: var(--ink-soft); text-wrap: pretty; }
.points { margin: 18px 0 0; padding-left: 1.15em; display: grid; gap: 12px; color: var(--ink-soft); }
.points li::marker { color: var(--ink); }
.points b { color: var(--ink); font-weight: 600; }
.btn .arr { margin-left: .5em; transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arr { transform: translateX(3px); } }
.split-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.sheet .orig .feature { box-shadow: 0 1px 0 rgba(22, 24, 29, .04), 0 24px 48px -28px rgba(22, 24, 29, .28); }
@media (max-width: 899.98px) { .split-head { grid-template-columns: minmax(0, 1fr); align-items: start; } .mark-ghost { width: 120vw; transform: translateX(-50%) rotate(-5deg); } }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.earlier .orig { margin-top: 36px; }
.sector { position: relative; padding: 12px 12px 0; background: #fff; border: 1px solid rgba(22, 24, 29, .8); border-radius: 2px; color: inherit;
  box-shadow: 6px 6px 0 -1px var(--paper), 6px 6px 0 0 rgba(22, 24, 29, .3);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.sector figure { outline: 0; }
.sector-body { display: flex; flex-direction: column; flex: 1; padding: 18px 10px 22px; }
.sector-body .fig-no { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #b4472e; }
.sector-body h3 { margin-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .sector:hover { transform: translate(-2px, -3px); box-shadow: 9px 10px 0 -1px var(--paper), 9px 10px 0 0 rgba(22, 24, 29, .3); }
}
.sector:active { transform: translate(1px, 1px); }
.u { text-decoration: none; color: var(--pen); font-weight: 600; }
@keyframes focus { from { opacity: 0; } }
.intro-head { max-width: 54rem; }
.intro-head .big { font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
.intro-head .serif-lede { margin-top: 24px; max-width: 34em; }
.contact .btn.light { box-shadow: 3px 3px 0 #050d24; }
.cover.is-off .cover-art .base, .cover.is-off .cue { animation-play-state: paused; }
/* the cover's entrance waits until the painting has arrived and the serif is ready (painted.js adds .is-ready),
   so a first visit, with nothing cached yet, sees the same fade and rise as a reload */
.js .cover:not(.is-ready) .cover-art .base, .js .cover:not(.is-ready) h1 .word, .js .cover:not(.is-ready) .line,
.js .cover:not(.is-ready) .actions, .js .cover:not(.is-ready) .cue { animation: none; opacity: 0; }
/* once-only reveals, as on the other pages (painted.js adds .is-in when a section reaches the screen).
   An animation rather than a transition, so the sector cards keep their quick hover lift afterwards. */
.js [data-reveal]:not(.strata):not(.is-in) { opacity: 0; }
.js [data-reveal]:not(.strata).is-in { animation: rise-in 800ms var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 90ms); }
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
/* rows that site.js draws later (the ledger) arrive with their wrapper, which reveals as one */
.js .orig [data-reveal]:not(.is-in) { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal]:not(.strata).is-in { animation: fade-in 200ms ease backwards; animation-delay: 0s; } }
.strata-art { contain: paint; }
/* the phone menu is opened by site.js; while it is open the page behind stays put */
html:has(.nav.open) { overflow: hidden; }
.footer-grid h2 { font-family: inherit; }
.site-footer .fine a { color: inherit; }
.site-footer .fine.credits { margin-top: 12px; padding-top: 0; border-top: 0; }
/* "Copied" above the contact page's copy button: rises into place, then fades */
.orig .copy-bubble { transition: opacity 200ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1); }
.orig .copy-bubble.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 70; background: var(--paper); padding: 8px 12px; }

/* the intro manta: a painting with no frame, dissolving into the paper behind the right of the section.
   A paper wash on its left keeps the heading clear where the two meet. */
.sheet > section.intro { position: relative; isolation: isolate; padding-block: clamp(110px, 12vw, 180px) clamp(80px, 9vw, 130px); }
.intro-head { max-width: 40rem; }
/* the painting stays inside the section, so its soft top edge always shows, on any screen width */
.intro-art { position: absolute; z-index: -1; right: 0; top: clamp(24px, 3vw, 56px); bottom: 0; width: min(64vw, 1180px); pointer-events: none;
  /* two soft fades, across and down, multiplied together: the painting melts into the paper at every edge */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 16%, rgba(0, 0, 0, .85) 34%, #000 46%, #000 74%, rgba(0, 0, 0, .6) 88%, transparent 100%), linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 14%, #000 30%, #000 62%, rgba(0, 0, 0, .5) 80%, transparent 100%); -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 16%, rgba(0, 0, 0, .85) 34%, #000 46%, #000 74%, rgba(0, 0, 0, .6) 88%, transparent 100%), linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 14%, #000 30%, #000 62%, rgba(0, 0, 0, .5) 80%, transparent 100%); mask-composite: intersect; }
.intro-art img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.intro-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(253, 252, 249, .8) 0%, rgba(253, 252, 249, .3) 30%, rgba(253, 252, 249, 0) 55%); }
@media (max-width: 899.98px) {
  .intro-art { position: relative; right: auto; top: auto; bottom: auto; width: calc(100% + 32px); aspect-ratio: 2000 / 1304; margin: -24px -16px -8px; }
  .intro-art::after { background: none; }
}
/* the intro manta's entrance: it surfaces out of the paper, drifting a little as it comes into focus */
.js .intro-art[data-reveal].is-in { animation: art-in 2400ms var(--ease-out) backwards; animation-delay: 200ms; }
@keyframes art-in { from { opacity: 0; transform: translate3d(4%, 3%, 0) scale(1.06); } }
/* manta entrances: the print settles into place as its painting comes into focus; the big painting
   at the bottom fades up and glides in, as if the manta is swimming into view */
.js .contact-art[data-reveal].is-in { animation: manta-in 2600ms var(--ease-out) backwards; }
@keyframes manta-in { from { opacity: 0; transform: translate3d(3%, 5%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .js .intro-art[data-reveal].is-in, .js .contact-art[data-reveal].is-in { animation: fade-in 200ms ease backwards; animation-delay: 0s; }
}

/* the sheet's grid fades in under the cover instead of starting at a hard line */
.sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(200px, 22vw, 320px); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(253, 252, 249, .7) 45%, rgba(253, 252, 249, 0) 100%); }

/* the ocean runs the full width of the intro: the widened reef painting fills the section, fading into the paper
   above and below, with the manta kept on the right and a paper wash behind the words on the left */
.intro-art { left: 0; width: auto; -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .45) 10%, #000 24%, #000 74%, rgba(0, 0, 0, .45) 88%, transparent 100%); -webkit-mask-composite: source-over;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .45) 10%, #000 24%, #000 74%, rgba(0, 0, 0, .45) 88%, transparent 100%); mask-composite: add; }
.intro-art img { object-position: 88% 55%; opacity: 1; }
/* a light wash behind the words only; a soft paper glow around the letters keeps them readable over the water */
.intro-art::after { background: linear-gradient(90deg, rgba(253, 252, 249, .46) 0%, rgba(253, 252, 249, .4) 26%, rgba(253, 252, 249, .16) 44%, rgba(253, 252, 249, 0) 58%); }
.intro-head .big, .intro-head .serif-lede { text-shadow: 0 0 1px rgba(253, 252, 249, .9), 0 0 10px rgba(253, 252, 249, .85), 0 0 24px rgba(253, 252, 249, .7), 0 0 44px rgba(253, 252, 249, .45); }
.intro-head .serif-lede { color: #24262b; }
@media (max-width: 899.98px) {
  .intro-art { left: auto; aspect-ratio: 2600 / 1450; margin-top: -60px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .18) 14%, rgba(0, 0, 0, .55) 30%, #000 46%, #000 72%, rgba(0, 0, 0, .45) 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .18) 14%, rgba(0, 0, 0, .55) 30%, #000 46%, #000 72%, rgba(0, 0, 0, .45) 88%, transparent 100%); }
  .intro-art img { object-position: 82% 55%; }
  .intro-art::after { background: none; }
}

/* cover to intro, painting into painting: the intro's ocean reaches up into the bottom of the Courbet and fades in
   over its beach, so the shore dissolves straight into the water with no strip of paper between them.
   The ocean also fades in with the cover's own entrance, so the two read as one canvas. */
:root { --ov: clamp(180px, 26vh, 300px); }
.sheet { overflow: visible; }
.cover-fade { display: none; }
.intro-art { top: calc(-1 * var(--ov)); transition: opacity 1800ms var(--ease-out) 300ms;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .14) calc(var(--ov) * .22), rgba(0, 0, 0, .45) calc(var(--ov) * .48), rgba(0, 0, 0, .8) calc(var(--ov) * .72), rgba(0, 0, 0, .97) calc(var(--ov) * .9), #000 calc(var(--ov) - 6px), #000 78%, rgba(0, 0, 0, .45) 90%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .14) calc(var(--ov) * .22), rgba(0, 0, 0, .45) calc(var(--ov) * .48), rgba(0, 0, 0, .8) calc(var(--ov) * .72), rgba(0, 0, 0, .97) calc(var(--ov) * .9), #000 calc(var(--ov) - 6px), #000 78%, rgba(0, 0, 0, .45) 90%, transparent 100%); }
.js .cover:not(.is-ready) ~ .sheet .intro-art { opacity: 0; transition: none; }
@media (max-width: 899.98px) {
  .sheet > section.intro { padding-top: clamp(260px, 72vw, 340px); }
  .intro-art { position: absolute; left: 0; right: 0; top: calc(-1 * var(--ov)); bottom: auto; width: auto; height: calc(var(--ov) + clamp(240px, 64vw, 310px));
    aspect-ratio: auto; margin: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .14) calc(var(--ov) * .25), rgba(0, 0, 0, .5) calc(var(--ov) * .55), rgba(0, 0, 0, .88) calc(var(--ov) * .82), #000 calc(var(--ov) - 6px), #000 70%, rgba(0, 0, 0, .4) 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .14) calc(var(--ov) * .25), rgba(0, 0, 0, .5) calc(var(--ov) * .55), rgba(0, 0, 0, .88) calc(var(--ov) * .82), #000 calc(var(--ov) - 6px), #000 70%, rgba(0, 0, 0, .4) 86%, transparent 100%); }
  .intro-art img { object-position: 80% 50%; }
}
@media (prefers-reduced-motion: reduce) { .intro-art { transition: opacity 200ms ease; } }

/* the paper wash behind the heading starts below the shoreline, so it never mists over the Courbet's beach */
.intro-art::after { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--ov) * .85), #000 calc(var(--ov) + 170px));
                            mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--ov) * .85), #000 calc(var(--ov) + 170px)); }

/* ---------- calmer pass ---------- */
/* the cover holds still after its entrance, and fades into the paper at its foot */
.cover-art .base { animation: focus 1200ms var(--ease-out) both; }
.cover-fade { display: block; }
.sheet { overflow: hidden; }
/* the first thing under the cover is the latest report */
.sheet > section.report:first-child { padding-top: clamp(64px, 8vw, 112px); }
/* the step section sits on plain paper */
.sheet > section.strata.process { padding-block: clamp(72px, 9vw, 120px); }
/* the contact band: the manta painting fades up out of the paper by itself */
.contact { margin-top: 0; padding-block: clamp(260px, 26vw, 360px) clamp(110px, 13vw, 170px); }
/* a long, eased fade: the painting rises out of the paper over ~380px, so there is no edge */
.contact-art { -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .06) 50px, rgba(0, 0, 0, .2) 110px, rgba(0, 0, 0, .42) 170px, rgba(0, 0, 0, .66) 230px, rgba(0, 0, 0, .86) 290px, rgba(0, 0, 0, .97) 340px, #000 380px); mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .06) 50px, rgba(0, 0, 0, .2) 110px, rgba(0, 0, 0, .42) 170px, rgba(0, 0, 0, .66) 230px, rgba(0, 0, 0, .86) 290px, rgba(0, 0, 0, .97) 340px, #000 380px); }
/* the sheet's grid fades out before the band, so the paper is plain where the painting begins */
.sheet::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(220px, 24vw, 320px); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(253, 252, 249, 0) 0%, rgba(253, 252, 249, .75) 55%, var(--paper) 100%); }
.contact-art::after { -webkit-mask-image: none; mask-image: none; }
/* reveals: short, quiet fades */
.js [data-reveal]:not(.strata).is-in { animation: rise-in 520ms var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 50ms); }
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
.js .contact-art[data-reveal].is-in { animation: fade-in 700ms ease backwards; }

/* the widened manta painting, large: it starts just below the paper fade and fills the rest of a taller band,
   so the whole manta, tail included, sits big and clear to the right of the words */
@media (min-width: 900px) {
  /* the manta at the size it had before, wingspan about a third of the screen, with the band just tall enough
     that its wings and tail end above the band's foot; sizes follow the screen width so it scales evenly */
  .contact { padding-bottom: 0; min-height: calc(240px + 42vw); }
  .contact-art img { position: absolute; left: -72%; top: calc(210px - 26.3vw); width: 202%; max-width: none; height: auto; object-fit: fill; }
}
/* phones and tablets: too narrow for the manta beside the words, so it glides below the buttons, whole and large */
@media (max-width: 899.98px) {
  .contact { padding-bottom: 380px; }
  .contact-art img { position: absolute; left: -150%; bottom: 0; top: auto; width: 330%; max-width: none; height: auto; object-fit: fill;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%); }
  .contact-art::after { background: linear-gradient(180deg, rgba(6, 28, 38, .55) 0%, rgba(6, 28, 38, .5) 40%, rgba(6, 28, 38, .15) 62%, rgba(6, 28, 38, 0) 75%); }
}
@media (min-width: 600px) and (max-width: 899.98px) {
  .contact { padding-bottom: 420px; }
  .contact-art img { left: -65%; width: 200%; }
}
