/* ============================================================
   Superior Natural Gas Corporation
   One stylesheet for every page.

   Contents
     1. Fonts and colors
     2. Base
     3. Shared pieces: frame, labels, headings, buttons, reveal
     4. Header and navigation
     5. Hero
     6. Service cards
     7. Statement: one picture in fourteen strips
     8. Reasons
     9. Results (the one navy band) and the line drawings
    10. Region
    11. Call to action
    12. Footer
    13. Inner pages: page headers and text sections
    14. Inner pages: topics, steps, companies, facts
    15. Case studies
    16. Team
    17. Contact form
    18. Link lists
    19. Reduced motion
   ============================================================ */

/* ---- 1. Fonts and colors ----------------------------------- */

@font-face {
    font-family: "Open Sans";
    src: url(../fonts/open-sans.woff2) format("woff2");
    font-weight: 300 800;
    font-stretch: 75% 100%;
    font-display: swap;
}

@font-face {
    font-family: "EB Garamond";
    src: url(../fonts/eb-garamond.woff2) format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "EB Garamond";
    src: url(../fonts/eb-garamond-italic.woff2) format("woff2");
    font-weight: 400 800;
    font-style: italic;
    font-display: swap;
}

:root {
    /* the one drawing for "this link leaves the website": a box with an
       arrow leaving it. Every link to another website carries it, in the
       colour of its own words, in place of the plain arrow. */
    --out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4h7v7M20 4l-9.5 9.5M17.5 14v5.5h-13v-13H10'/%3E%3C/svg%3E");
    --red: #df151d;
    --red-dark: #b80f16;
    --navy: #111b4d;
    --navy-deep: #0b1338;
    --navy-logo: #1f2973;
    --ink: #161a2c;
    --text: #3d4254;
    --muted: #6a6f80;
    --rule: #ddd9cf;
    --paper: #f6f4ee;
    --white: #fff;

    --sans: "Open Sans", "Frutiger", "Segoe UI", Arial, sans-serif;
    --serif: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;

    /* The type scale. Every heading, label and paragraph uses one of these,
       so a size or spacing is changed here, in one place.
       Letter widths: headings are narrow, labels a little wider.
       Letter spacing: tight for large headings, slightly tight for small
       ones, open for labels (the small capitals: menu, buttons, captions). */
    --w-head: 78%;
    --w-label: 86%;
    --track-head: -.035em;
    --track-sub: -.02em;
    --track-label: .14em;
    --fs-title: clamp(32px, 3.4vw, 52px);
    --fs-section: clamp(28px, 2.9vw, 44px);
    --fs-mid: clamp(24px, 2.1vw, 32px);
    --fs-sub: clamp(20px, 1.5vw, 23px);
    --fs-lead: clamp(19px, 1.35vw, 21px);
    --fs-intro: clamp(18px, 1.25vw, 20px);

    --frame: 1240px;
    --gutter: clamp(20px, 4vw, 48px);
    --header: 80px;

    /* the angled corner used on buttons, photos and cards, echoing the logo */
    --cut: 14px;
}

/* ---- 2. Base ----------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--white);
    caret-color: var(--red);
    accent-color: var(--red);
    color: var(--text);
    font: 400 18px/1.5 var(--serif);
    -webkit-font-smoothing: antialiased;
}

/* A dark strip lies under the header's place at the top of the page. The
   header always covers it; it is there so that nothing white can show at
   the header's edge, or behind it for a moment on a busy phone. */
body::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: var(--header);
    background: var(--navy-deep);
}

main {
    flex: 1;
}

/* a page that is only a photo header (the not-found page) fills the window */
main:has(> .hero:only-child) {
    display: flex;
    flex-direction: column;
}

main > .hero:only-child {
    flex: 1;
}

/* but on a very tall window its photo stops at 760px, as tall as the
   tallest photo headers, and the footer follows straight beneath it, with
   the same edge as on smaller windows; the footer's navy runs on to the
   foot of the window (design feedback 158) */
@media (min-width: 901px) and (min-height: 1020px) {
    main > .hero:only-child {
        flex: 0 0 auto;
        height: 760px;
    }

    main:has(> .hero:only-child) {
        flex: 0 0 auto;
    }

    main:has(> .hero:only-child) + .site-footer {
        flex-grow: 1;
    }
}

::selection {
    background: var(--navy);
    color: var(--white);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

p {
    margin: 0 0 1em;
}

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--navy);
    color: var(--white);
    font: 600 15px var(--sans);
    font-stretch: var(--w-label);
}

.skip:focus {
    top: 12px;
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---- 3. Shared pieces -------------------------------------- */

.frame {
    width: min(100% - 2 * var(--gutter), var(--frame));
    margin-inline: auto;
}

/* small red uppercase line above a heading */
.label {
    margin: 0 0 14px;
    color: var(--red);
    font: 700 14px/1.3 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
}

/* section labels get a short red rule in front */
.section-head > .label::before,
.split .label::before,
.results-head .label::before,
.reasons .label::before,
.region .label::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 2px;
    margin-right: 14px;
    background: var(--red);
    vertical-align: middle;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    font-stretch: var(--w-head);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: var(--track-head);
    line-height: .92;
    text-wrap: balance;
}

h2 {
    font-size: var(--fs-section);
}

/* Sub-headings are written as sentences, not in capitals: they show the
   words exactly as typed in the page. Main headings, labels, the menu and
   the buttons keep their capitals. */
h3 {
    font-size: var(--fs-sub);
    letter-spacing: var(--track-sub);
    line-height: 1.05;
    text-transform: none;
}

/* the one italic serif phrase inside a heading */
h1 em,
h2 em {
    display: block;
    color: var(--red);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-stretch: 100%;
    letter-spacing: -.03em;
    text-transform: none;
    line-height: 1;
}

h2 em {
    font-size: 1.1em;
}

/* Buttons have two angled corners, like the logo. On hover the color
   changes smoothly in place. Nothing moves: no fill travelling across,
   no arrow sliding, no press movement. Every button on a light background
   turns navy and every button on a photo or navy turns white, so two
   buttons side by side always end up the same. */
.button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
    padding: 11px 22px;
    border: 0;
    background: var(--red);
    color: var(--white);
    font: 700 14px/1 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-decoration: none;
    text-transform: uppercase;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    cursor: pointer;
    /* The 1ms delay on background-color works around a Chrome bug
       (issues.chromium.org/issues/547970034, still open on 2026-11-14).
       Chrome animates background-color on the graphics card, and when the
       animation ends it sometimes draws one frame in the starting color, so
       the button flashes back to it on hover in and out. With the delay the
       flash stopped in every test (0 in 240 hovers, against about 1 in 4
       without it). Nobody knows why the delay helps, so keep it whenever this
       transition is rewritten and test again if the flash returns. The same
       delay is on the home page's blocks and the form fields. */
    transition: background-color .3s 1ms, color .3s;
}

/* the arrow is drawn, so it looks the same on every computer */
.button::after,
.service-arrow {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 12h15M13 6l6 6-6 6%22/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 12h15M13 6l6 6-6 6%22/%3E%3C/svg%3E") center / contain no-repeat;
}

/* a button that leaves for another website ends in the leaving-the-site
   icon instead of the arrow */
.button.out::after {
    -webkit-mask-image: var(--out);
    mask-image: var(--out);
}

/* second-choice button */
.button.ghost {
    background: rgba(17, 27, 77, .1);
    color: var(--ink);
}

.button:hover,
.button:focus-visible,
.button.ghost:hover,
.button.ghost:focus-visible {
    background: var(--navy);
    color: var(--white);
}

/* an outline would be cut off by the angled corners, so focus is shown inside */
.button:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 3px var(--white);
}

/* on photos and navy the second-choice button is translucent, and both
   kinds turn white */
:is(.hero, .cta, .results, .site-footer, .details) .button.ghost {
    background: rgba(255, 255, 255, .2);
    color: var(--white);
}

:is(.hero, .cta, .results, .site-footer, .details) .button:hover,
:is(.hero, .cta, .results, .site-footer, .details) .button:focus-visible,
:is(.hero, .cta, .results, .site-footer, .details) .button.ghost:hover,
:is(.hero, .cta, .results, .site-footer, .details) .button.ghost:focus-visible {
    background: var(--white);
    color: var(--navy);
}

:is(.hero, .cta, .results, .site-footer, .details) .button:focus-visible {
    box-shadow: inset 0 0 0 3px var(--red);
}

/* text link with a red rule under it; the text turns red on hover */
.more {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--red);
    color: var(--ink);
    font: 700 14px/1.2 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-decoration: none;
    text-transform: uppercase;
    transition: color .3s;
}

.more:hover {
    color: var(--red);
}

/* a text link that closes a block of running text stands on a line of
   its own, the same distance under the text wherever it appears */
.more-line,
.details .more-line {
    display: flex;
    margin: 28px 0 0;
}

/* a text link that leaves for another website ends in the
   leaving-the-site icon */
.more.out::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: .3em;
    vertical-align: -.14em;
    background: currentColor;
    -webkit-mask: var(--out) center / contain no-repeat;
    mask: var(--out) center / contain no-repeat;
}

/* content fades up as it scrolls into view; without JavaScript it is simply visible */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* when something has scrolled out of view it goes back to its starting
   state at once, so the animation can play again next time */
.replay-reset,
.replay-reset *,
.replay-reset::before,
.replay-reset::after,
.replay-reset *::before,
.replay-reset *::after {
    transition: none !important;
    animation: none !important;
}

/* ---- 4. Header and navigation ------------------------------ */

/* "Shoreline": a full-width bar built from three sheets laid one on
   another and lit from the upper right, like the coast itself. The Gulf,
   at full strength, is at the bottom and carries the logo. A sheet of
   sand lies over it, and a white deck on top carries the menu. The bar
   is solid: it looks the same on every page and at every scroll
   position. The water is a crop of one of the site's own photos. */
.site-header {
    /* left edge of the page's content column */
    --x0: max(var(--gutter), calc(50% - var(--frame) / 2));
    /* where the foot of the white deck meets the sand; it gives way on
       narrower windows so the menu always has room */
    --shore: min(calc(var(--x0) + 330px), calc(100% - var(--x0) - 874px));
    /* how far the cut edges lean to the right over the full height */
    --slant: 42px;
    /* how much sand shows between the water and the deck */
    --beach: 30px;
    /* The header is the first thing in the page and sticks to the top of
       the window. "top" is where it sticks: 0 keeps it in view. */
    position: sticky;
    top: 0;
    z-index: 50;
    flex: none;
    height: var(--header);
    /* the picture below covers this completely; it is dark so that no
       light hairline can show at an edge on screens whose pixels do not
       line up with the layout */
    background: var(--navy-deep);
    color: var(--navy-deep);
}

/* The header's shadow is a layer of its own, so it can fade without the
   header being drawn again. */
.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    box-shadow: 0 14px 28px -10px rgba(3, 10, 40, .55);
    pointer-events: none;
    transition: opacity .4s;
}

/* The header moves out of the way while the page is read. Any scroll down
   lets it go and any scroll up brings it back; site.js decides which and
   does the sliding, and without the script the header stays in view.
   "is-away" is the header let go: it sticks above the window instead of
   at its top, so near the top of a page it scrolls away with the page.
   The slide itself moves the header as a finished picture, which the
   browser can do without drawing it again; that keeps it smooth on
   phones. "is-leaving" fades the shadow so none of it hangs into the
   window. */
.site-header.is-away {
    top: calc(-1 * var(--header) - 2px);
}

.site-header.is-leaving::after {
    opacity: 0;
}

/* the open phone menu fills the window, so the header stays exactly in place under it */
.site-header.menu-open {
    top: 0 !important;
    transform: none !important;
}

/* the picture reaches one pixel past the header's top and bottom edges,
   so the edges are always covered */
.header-scene {
    position: absolute;
    inset: -1px 0;
    overflow: hidden;
}

/* the photograph: deep water under the logo, turning to turquoise
   shallows and surf where it meets the sand */
.header-water {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--shore) + var(--slant));
    background: #04336b url(../images/water-2400.webp) no-repeat;
    background-size: 1100px auto;
    background-position: right -190px top -348px;
}

/* the top edge throws a little shade onto the water */
.header-water::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 16, 48, .4), rgba(0, 16, 48, 0) 14px);
}

.header-sand,
.header-deck {
    position: absolute;
    inset: 0;
}

/* each sheet throws a soft shadow down and to the left */
.header-sand {
    left: calc(var(--shore) - var(--beach));
    filter: drop-shadow(-7px 5px 7px rgba(0, 30, 62, .55));
}

.header-deck {
    left: var(--shore);
    filter: drop-shadow(-7px 5px 8px rgba(84, 60, 22, .42));
}

.header-sand i,
.header-deck i {
    position: absolute;
    inset: 0;
    clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}

/* each sheet is drawn twice: its shaded cut edge, then its top face */
.header-sand i:first-child {
    left: -3px;
    background: #b39a72;
}

.header-sand i:last-child {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .34 0 0 0 0 .18 0 0 0 -.9 .52'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        linear-gradient(98deg, #fdf6e8 0, #f2e4ca 60px, #e9d8b8 150px);
}

.header-deck i:first-child {
    left: -3px;
    background: #aeb9c6;
}

.header-deck i:last-child {
    background: #fff;
}

/* a soft sheen across the white deck; it reaches as far as the picture does */
.header-sheen {
    position: absolute;
    inset: -1px 0;
    clip-path: polygon(calc(var(--shore) + var(--slant)) 0, 100% 0, 100% 100%, var(--shore) 100%);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 58%, rgba(214, 223, 234, .5) 100%),
        linear-gradient(118deg, rgba(228, 235, 243, .7) 0, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(232, 238, 245, .55) 100%);
    pointer-events: none;
}

/* very wide windows: the photograph is drawn larger so it still reaches
   the left edge */
@media (min-width: 2100px) {
    .header-water {
        background-size: 1500px auto;
        background-position: right -259px top -475px;
    }
}

@media (max-width: 1340px) {
    .site-header {
        --shore: min(calc(var(--x0) + 330px), calc(100% - var(--x0) - 818px));
    }
}

.head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header);
}

/* The logo responds to the pointer: two red brackets close in on it, a red
   glow builds behind it and a red glint sweeps across the badge. The glint is
   cut to the badge's own six-sided shape. The logo itself never moves. */
.brand {
    position: relative;
    display: inline-flex;
    isolation: isolate;
}

.brand img {
    position: relative;
    z-index: 1;
    width: 126px;
    height: auto;
    /* the badge floats a little above the water */
    filter: drop-shadow(0 6px 10px rgba(0, 12, 40, .45));
    transition: filter .26s ease;
}

/* The two brackets are drawn inside one box that never moves or changes
   size; only the lines inside it slide inward. A box that itself moved
   could leave faint traces of its earlier positions in some browsers. */
.brand::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: -8px -43px;
    background:
        linear-gradient(#ff3a41, #ff3a41) 0 0 / 2px 100% no-repeat,
        linear-gradient(#ff3a41, #ff3a41) 100% 0 / 2px 100% no-repeat;
    opacity: 0;
    transition: opacity .16s ease, background-position .32s cubic-bezier(.2, .9, .28, 1);
    pointer-events: none;
}

.brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -13px -17px;
    background: radial-gradient(closest-side, rgba(255, 60, 68, .6), transparent 76%);
    opacity: 0;
    transform: scale(.8);
    transition: opacity .28s ease, transform .4s cubic-bezier(.2, .9, .28, 1);
    pointer-events: none;
}

.brand-glint {
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 119 46%22%3E%3Cpolygon points=%2259.5,1 1,15 1,31 59.5,45 118,31 118,15%22 fill=%22%23fff%22/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 119 46%22%3E%3Cpolygon points=%2259.5,1 1,15 1,31 59.5,45 118,31 118,15%22 fill=%22%23fff%22/%3E%3C/svg%3E") no-repeat center / contain;
    /* red and multiplied: the badge is white inside, so a pale glint would not show */
    mix-blend-mode: multiply;
    background-image: linear-gradient(102deg,
            transparent 43%,
            rgba(223, 21, 29, .5) 47.5%,
            rgba(158, 8, 14, .97) 50%,
            rgba(223, 21, 29, .5) 52.5%,
            transparent 57%);
    background-repeat: no-repeat;
    background-size: 200% 100%;
    background-position: 130% 0;
    opacity: 0;
    /* fades out in place; the glint only ever runs left to right */
    transition: opacity .16s ease, background-position 0s linear .16s;
}

.brand:hover img,
.brand:focus-visible img {
    filter: drop-shadow(0 0 10px rgba(255, 60, 68, .75));
}

.brand:hover::before,
.brand:focus-visible::before {
    opacity: 1;
    background-position: 28px 0, calc(100% - 28px) 0;
}

.brand:hover::after,
.brand:focus-visible::after {
    opacity: 1;
    transform: none;
}

.brand:hover .brand-glint,
.brand:focus-visible .brand-glint {
    opacity: 1;
    background-position: -30% 0;
    transition: background-position .52s cubic-bezier(.3, .7, .3, 1), opacity .12s ease;
}

.brand:focus-visible {
    outline-offset: 12px;
}


.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* the other site's name beside the Crude Oil link shows only in the
   phone menu; on wide windows it is still read out by screen readers */
.site-nav .nav-site {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Menu links. Each link has its own navy panel with angled corners. When
   the link is pointed at, the panel fades in while growing from the
   middle to its full size, and the text turns white. It settles straight
   to full size: it never goes larger and comes back. The current page
   keeps its panel. Nothing sweeps across or travels between links. */
.site-nav a:not(.button) {
    position: relative;
    isolation: isolate;
    /* the side padding is set so the whole menu keeps the width the header was built around */
    padding: 14px 11.98px;
    color: inherit;
    font: 700 14px/1 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .25s;
}

.site-nav a:not(.button)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--navy);
    opacity: 0;
    transform: scale(.82, .7);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .3, 1);
}

.site-nav a:not(.button):hover,
.site-nav a:not(.button):focus-visible,
.site-nav a[aria-current="page"]:not(.button) {
    color: var(--white);
}

.site-nav a:not(.button):hover::before,
.site-nav a:not(.button):focus-visible::before,
.site-nav a[aria-current="page"]:not(.button)::before {
    opacity: 1;
    transform: scale(1);
}

.site-nav .button[aria-current="page"] {
    background: var(--navy);
}

/* the link to the Vision Energy website ends in the leaving-the-site
   icon. The other links sit a little closer to make room for it, so the
   menu is as wide as it was. */
.site-nav .nav-out::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: .3em;
    vertical-align: -.14em;
    background: currentColor;
    -webkit-mask: var(--out) center / contain no-repeat;
    mask: var(--out) center / contain no-repeat;
}

.site-nav .button {
    min-height: 42px;
    margin-left: 16px;
    padding: 10px 20px;
    /* the gloss on the enamel */
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .3) 0, rgba(255, 255, 255, .06) 46%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .16) 100%);
    white-space: nowrap;
}

@media (max-width: 1340px) {
    .site-nav a:not(.button) {
        padding-inline: 8.98px;
    }

    .site-nav .button {
        margin-left: 10px;
        padding-inline: 20px;
    }
}

.menu-toggle {
    position: relative;
    z-index: 2;
    display: none;
    width: 48px;
    height: 48px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

/* three bars; when the menu is open the outer two cross into an X as
   wide as the bars were, and the middle one fades out */
.menu-toggle i {
    display: block;
    width: 28px;
    height: 2px;
    margin: 7px auto;
    background: currentColor;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .2s;
}

.menu-toggle[aria-expanded="true"] i:first-child {
    transform: translateY(9px) rotate(45deg) scaleX(1.2);
}

.menu-toggle[aria-expanded="true"] i:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] i:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg) scaleX(1.2);
}

/* narrower windows: a slimmer bar with a smaller logo and less water.
   The menu keeps its size and the water and sand give way to it: the
   white deck's edge moves left ahead of the menu until the sand has
   reached the logo. --menu is the width of the whole menu, and 25px is
   what the deck's slanted edge needs to clear the first link's panel. */
@media (max-width: 1180px) {
    :root {
        --header: 68px;
    }

    .site-header {
        --menu: 716px;
        --shore: max(calc(var(--x0) + 122px), min(calc(var(--x0) + 160px), calc(100% - var(--x0) - var(--menu) - 25px)));
        --slant: 36px;
        --beach: 24px;
    }

    .header-water {
        background-size: 900px auto;
        background-position: right -150px top -158px;
    }

    .brand {
        z-index: 2;
    }

    .brand img {
        width: 112px;
    }
}

/* the width at which the menu, at its normal spacing, touches the deck's
   edge with the sand already against the logo: from here down the links
   and the Contact button sit a little closer together */
@media (max-width: 950px) {
    .site-header {
        --menu: 632px;
    }

    .site-nav {
        gap: 0;
    }

    .site-nav a:not(.button) {
        padding-inline: 7.01px;
        letter-spacing: .09em;
    }

    .site-nav .button {
        gap: 10px;
        margin-left: 8px;
        padding-inline: 16px;
        letter-spacing: .12em;
    }
}

/* at this closer spacing the leaving-the-site icon sits nearer its own
   words than the next link, so it never reads as belonging to the next
   link's panel. The menu's width is unchanged. */
@media (min-width: 860px) and (max-width: 950px) {
    .site-nav a.nav-out:not(.button) {
        padding-right: 7.71px;
    }

    .site-nav .nav-out::after {
        margin-left: .14em;
    }
}

/* phones and tablets: the width at which the closer-spaced menu touches
   the deck's edge too, so nothing more can give way. The menu opens as a
   full screen beneath the header instead. site.js uses the same width. */
@media (max-width: 859px) {
    /* nothing sits on the deck but the menu button, so the water keeps its full width */
    .site-header {
        --shore: calc(var(--x0) + 160px);
    }

    .menu-toggle {
        display: block;
    }

    /* The open menu fills the window beneath the header, which keeps its
       picture. It is the wide menu's own lettering, one link to a row, on
       the site's navy, with a hairline where it meets the header. Nothing
       in it follows the window's height: a taller window only shows more
       navy under the list. */
    .site-nav {
        --menu-rule: rgba(255, 255, 255, .16);
        /* the plate behind the current page: lit navy, a thin outline, the buttons' cut corners */
        --menu-here: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M14.5 .5H47.5V33.5L33.5 47.5H.5V14.5Z' fill='%23182561' stroke='rgba(255,255,255,.38)'/%3E%3C/svg%3E");
        position: fixed;
        /* the header's picture reaches one pixel past its lower edge; the menu starts under it */
        inset: calc(var(--header) + 1px) 0 0;
        z-index: 1;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 24px var(--gutter) 32px;
        overflow-y: auto;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .14) 0, rgba(255, 255, 255, .14) 1px, rgba(255, 255, 255, 0) 1px),
            var(--navy-deep);
        color: var(--white);
        visibility: hidden;
        opacity: 0;
        transition: opacity .3s, visibility 0s .3s;
    }

    .site-nav[data-open="true"] {
        visibility: visible;
        opacity: 1;
        transition: opacity .3s;
    }

    /* the wide menu's lettering at its normal spacing (the narrower wide
       layouts above close it up) */
    .site-nav a:not(.button),
    .site-nav .button {
        font-size: 15px;
        letter-spacing: var(--track-label);
        word-spacing: .08em;
    }

    /* Each link is a row 56px tall with a rule under it. The names and the
       arrows sit 16px inside the ends of the rules, on every row. Only a
       window too short for the whole menu closes the rows up, down to 48px. */
    .site-nav a:not(.button) {
        display: flex;
        flex: 0 1 56px;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 48px;
        padding: 0 16px;
        border-bottom: 1px solid var(--menu-rule);
        color: inherit;
        font-weight: 600;
    }

    .site-nav a:not(.button):hover,
    .site-nav a:not(.button):focus-visible {
        color: inherit;
    }

    /* the arrow the site's buttons use, a little smaller and quieter */
    .site-nav a:not(.button)::after {
        content: "";
        flex: none;
        width: 16px;
        height: 16px;
        margin: 0 -3px 0 0;
        background: rgba(255, 255, 255, .7);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 12h15M13 6l6 6-6 6%22/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 12h15M13 6l6 6-6 6%22/%3E%3C/svg%3E") center / contain no-repeat;
    }

    /* The link that leaves for the Vision Energy website ends in the
       leaving-the-site icon instead of the arrow, with that site's name
       in quiet lettering before it. */
    .site-nav a.nav-out:not(.button)::after {
        width: 15px;
        height: 15px;
        margin-right: -2px;
        -webkit-mask: var(--out) center / contain no-repeat;
        mask: var(--out) center / contain no-repeat;
    }

    .site-nav .nav-site {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        margin: 0 -6px 0 auto;
        color: rgba(255, 255, 255, .66);
        font: 400 14px/1 var(--sans);
        font-stretch: 92%;
        letter-spacing: .02em;
        word-spacing: 0;
        text-transform: none;
        white-space: nowrap;
    }

    /* The page being viewed: its row becomes a quiet plate. The plate is
       the row itself, its edges lying where the rules were, so the list
       keeps its rhythm and every name stays on the same line down the
       left. A dot takes the arrow's place, because there is nowhere to go. */
    .site-nav a:not(.button)::before {
        inset: -1px 0;
        border: 16px solid transparent;
        border-image: var(--menu-here) 16 fill;
        background: none;
        transform: scale(.98, .8);
        clip-path: none;
    }

    .site-nav a:not(.button):hover::before,
    .site-nav a:not(.button):focus-visible::before {
        opacity: 0;
        transform: scale(.98, .8);
    }

    .site-nav a[aria-current="page"]:not(.button)::before {
        opacity: 1;
        transform: none;
    }

    .site-nav a[aria-current="page"]:not(.button),
    .site-nav a:has(+ a[aria-current="page"]:not(.button)) {
        border-bottom-color: transparent;
    }

    .site-nav a[aria-current="page"]::after {
        width: 8px;
        height: 8px;
        margin: 0 1px 0 4px;
        border-radius: 50%;
        background: currentColor;
        -webkit-mask: none;
        mask: none;
        transform: none;
    }

    /* a row being pressed, or pointed at with a mouse, shows the plate at
       part strength, growing from the middle as the wide menu's panel does */
    .site-nav a:not([aria-current]):not(.button):active::before {
        opacity: .5;
        transform: none;
    }

    @media (hover: hover) {
        .site-nav a:not([aria-current]):not(.button):hover::before {
            opacity: .6;
            transform: none;
        }
    }

    /* Contact is the button the pages use, its name starting on the same
       line as the names above. On the Contact page it becomes the plate:
       the plate means "here", red means "go". */
    .site-nav .button {
        flex: none;
        align-self: flex-start;
        gap: 10px;
        min-height: 46px;
        margin: 40px 0 0;
        padding: 11px 18px 11px 16px;
        background-image: none;
    }

    .site-nav .button:not([aria-current]):hover {
        background-color: var(--white);
        color: var(--navy-deep);
    }

    .site-nav .button[aria-current="page"] {
        height: 46px;
        min-height: 0;
        padding: 0 2px 0 0;
        border: 16px solid transparent;
        border-image: var(--menu-here) 16 fill;
        background: none;
        color: var(--white);
        clip-path: none;
    }

    .site-nav .button[aria-current="page"]::after {
        margin: 0 5px;
    }

    /* The links arrive one after another. The Contact button does not: it
       is there as soon as the menu is, so the menu never looks as if it
       were still loading. */
    .site-nav a:not(.button) {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
    }

    .site-nav[data-open="true"] a:not(.button) {
        opacity: 1;
        transform: none;
        transition-delay: calc(var(--n, 0) * 40ms + 80ms);
    }

    .site-nav a:nth-child(2) { --n: 1; }
    .site-nav a:nth-child(3) { --n: 2; }
    .site-nav a:nth-child(4) { --n: 3; }
    .site-nav a:nth-child(5) { --n: 4; }
    .site-nav a:nth-child(6) { --n: 5; }

    /* the logo's shadow stops at the header's lower edge instead of falling on the menu */
    .site-header.menu-open .brand {
        clip-path: inset(-30px -60px -11px -60px);
    }

    /* the page behind does not scroll while the menu is open */
    html.menu-open {
        overflow: hidden;
    }
}

/* a phone held sideways, and tablets: two columns read downwards, with
   Contact at the foot of the second */
@media (max-width: 859px) and (orientation: landscape) and (max-height: 520px), (min-width: 600px) and (max-width: 859px) {
    .site-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: minmax(56px, auto);
        grid-auto-flow: row dense;
        align-content: start;
        column-gap: clamp(28px, 5vw, 48px);
    }

    .site-nav a:not(.button) {
        grid-column: 2;
        min-height: 0;
    }

    /* the first three links make the first column */
    .site-nav a:nth-child(-n+3):not(.button) {
        grid-column: 1;
    }

    /* the last link of the first column keeps its rule when the first of the second is the current page */
    .site-nav a:nth-child(3):has(+ a[aria-current="page"]) {
        border-bottom-color: var(--menu-rule);
    }

    .site-nav .button {
        grid-column: 2;
        justify-self: start;
        align-self: start;
    }
}

@media (max-width: 859px) and (orientation: landscape) and (max-height: 520px) {
    .site-nav {
        padding-top: 16px;
        padding-bottom: 20px;
    }

    .site-nav .button {
        margin-top: 20px;
    }
}

/* ---- 5. Hero ------------------------------------------------ */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(46vh, 400px);
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--white);
}

/* Home page: the first screen.

   Wide windows (over 900px): the photo fills the window below the header,
   the text sits on the open water on the left, and the four blocks run
   along the bottom edge, so nothing is cut off at the fold.

   Two things in the photo matter most: the offshore platform (on the
   horizon, top left) and the terminal (right). The text needs open
   water behind it, and the jetty's end and the tip of the beach lie
   just right of the platform. The rules below keep the platform and the
   tanks in view and the text on open water at every window shape:
   - the photo is pinned to its top edge, so the platform is never cut;
   - when the window is narrower than the photo, the photo is slid left
     until the headline ends just short of the jetty, which brings the
     terminal into the window;
   - when the window is so wide that the headline would reach the jetty
     anyway, the text starts lower, beside the open water off the beach;
   - the hero is never much taller than it is wide, because a tall, narrow
     hero would push the terminal out of the window. */
.hero-home {
    --edge: max(var(--gutter), (100vw - var(--frame)) / 2);
    --hero-h: min(100vh - var(--header), 93vw);
    /* the photo is 16:9 and always covers the hero: its drawn size */
    --photo-h: max(var(--hero-h), 56.25vw);
    --photo-w: calc(var(--photo-h) * 16 / 9);
    /* the headline's size, and how far across the window its first line
       reaches */
    --head: clamp(36px, min(4.3vw, 7.4vh), max(68px, 3.2vw));
    --reach: calc(var(--edge) + var(--head) * 5.4);
    /* how far the photo is slid left: until the headline's longer line
       (5.9 times its size) ends 34.5% of the way across the photo, where
       the jetty begins, and at least until the tanks (which end 80% of
       the way across) are all in the window */
    --slide: clamp(0px, max(var(--photo-w) * .345 - var(--head) * 5.9 - var(--edge), var(--photo-w) * .8 - 100vw + 6px), var(--photo-w) - 100vw);
    /* on a wide, short window the photo is taller than the hero. It is
       then lifted a little, which brings the platform nearer the top and
       lets the text rise with it. */
    --lift: clamp(0px, min(var(--photo-h) - var(--hero-h), var(--photo-h) * .088 - 44px), var(--photo-h) * .06);
    /* On a window much wider than the page, the headline would reach the
       end of the jetty and the tip of the beach, which lie 35% of the way
       across the photo in its top third. There the text starts lower,
       beside the open water (35.5% of the way down the photo), or as low
       as it can go and still sit balanced in the room it has. */
    --low: calc(var(--photo-h) * .355 - var(--lift));
    --balanced: calc((var(--hero-h) - var(--head) * 2.2 - 362px) * .51 + 14px);
    min-height: var(--hero-h);
}

@supports (height: 100svh) {
    .hero-home {
        --hero-h: min(100svh - var(--header), 93vw);
    }
}

/* The home photo settles in on load, towards the platform, and then stays
   put: it has no slow drift, because the sea itself moves here. A browser
   places a clip that is being zoomed on whole pixels only, so the whole
   picture jumps a pixel at a time, like a shaky camera (measured in
   Chrome, with and without a graphics card). The clip itself is therefore
   shown only once the settling has ended, and is never zoomed while it
   can be seen. Until then the script draws the clip's frames into a
   canvas, which a browser zooms as smoothly as a photo, so the waves move
   while the photo settles (see "Moving water" in site.js). The settling is
   short here, 1.3 seconds against 2.8 on other pages. */
.hero-home .hero-media :is(img, video, canvas) {
    object-position: calc(-1 * var(--slide)) calc(-1 * var(--lift));
    transform-origin: calc(var(--photo-w) * .303 - var(--slide)) calc(var(--photo-h) * .12 - var(--lift));
    animation: hero-settle 1.3s cubic-bezier(.2, .7, .2, 1) both;
}

/* The sea moves. The photo is the first frame of a short looping clip
   of the same view; the clip lies over the photo, takes its exact place
   and every rule the photo has (above and below), so the two line up at
   every window size. The clip stays hidden until
   the script has it playing; until then, and wherever it cannot play,
   the photo shows as it is. */
.hero-media .hero-water {
    opacity: 0;
    transition: opacity .6s ease;
}

.hero-media.is-moving .hero-water {
    opacity: 1;
}

/* The canvas that shows the clip while the photo settles: it fades in
   over the photo, and fades away once the clip itself has taken over,
   which the clip does at once, unseen beneath it. */
.hero-media .hero-water-early {
    opacity: 0;
    transition: opacity .4s ease;
}

.hero-media .hero-water-early.is-moving {
    opacity: 1;
}

.hero-media.is-handed .hero-water {
    transition: none;
}

/* A navy shade behind the text only. It is tied to the text column, not
   to the window, so the text reads the same at every width, and it is
   lightest at the top, so the platform stays bright. */
.hero-home::after {
    background:
        linear-gradient(90deg, rgba(8, 16, 52, .66) 0, rgba(8, 16, 52, .6) calc(var(--edge) + 330px), rgba(8, 16, 52, 0) calc(var(--edge) + 780px)),
        linear-gradient(0deg, rgba(8, 16, 52, .3) 0%, rgba(8, 16, 52, 0) 30%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .12) 0, rgba(0, 0, 0, .12) calc(var(--photo-h) * .15), #000 calc(var(--photo-h) * .34));
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .12) 0, rgba(0, 0, 0, .12) calc(var(--photo-h) * .15), #000 calc(var(--photo-h) * .34));
}

/* Behind the services band, and only there, the photo is tinted with
   the blue of the water (by multiplying), so pale sand seen through the
   band reads as blue, not as a mauve patch. The script supplies the
   band's height. */
.hero-home .hero-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: var(--band-h, 100px);
    background: #5584c6;
    mix-blend-mode: multiply;
}

.hero-home .hero-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-block: 0;
}

/* Where the text sits, top to bottom. The room above and below it is
   shared 9 to 11, so the text sits just above the middle of the photo,
   never low. The room above is never less than the part of the photo
   that holds the platform, so the text cannot cover it. */
.hero-home .hero-content::before,
.hero-home .hero-content::after {
    content: "";
}

.hero-home .hero-content::before {
    flex: 9 1 0;
    --clear: calc(var(--photo-h) * .15 - var(--lift) + clamp(24px, 4.4vh, 48px));
    /* lower on a very wide window: see --low above */
    min-height: calc(var(--clear) + clamp(0px, (var(--reach) - var(--photo-w) * .35) * 30,
        max(0px, min(var(--low), var(--balanced)) - var(--clear))));
}

.hero-home .hero-content::after {
    flex: 11 1 0;
    min-height: clamp(20px, 3.4vh, 40px);
}

.hero.hero-home h1 {
    max-width: 7em;
    font-size: var(--head);
}


/* the paragraph stops short of the beach and its surf: 44% of the way
   across the photo, or 40% where the text sits level with the tip of
   the beach (where the photo is slid left, and on a very wide window
   too short for the text to start lower) */
.hero-home .hero-content > p:not(.label) {
    --high: min(clamp(0px, (var(--reach) - var(--photo-w) * .35) * 30, var(--photo-w) * .04), clamp(0px, (var(--low) - var(--balanced) - 120px) * 30, var(--photo-w) * .04));
    max-width: min(30em, var(--photo-w) * .44 - var(--slide) - var(--edge) - max(min(var(--slide), var(--photo-w) * .04), var(--high)));
    margin-block: clamp(12px, 2.4vh, 26px) clamp(14px, 2.6vh, 28px);
}

/* The photo settles in on load, then drifts very slowly, like a view from
   the air. */
.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media :is(img, video, canvas) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* each page can say which part of its photo matters most, with
       style="--focus-x: …; --focus-y: …" on the picture */
    object-position: var(--focus-x, 30%) var(--focus-y, 50%);
    transform-origin: 68% 50%;
    animation:
        hero-settle 2.8s cubic-bezier(.2, .7, .2, 1) both,
        hero-drift 30s ease-in-out 2.8s infinite alternate;
}

.js .hero:not(.is-live) .hero-media :is(img, video, canvas) {
    animation-play-state: paused;
}

@keyframes hero-settle {
    from {
        transform: scale(1.14);
        filter: brightness(.6) saturate(.7);
    }

    to {
        transform: scale(1);
        filter: none;
    }
}

@keyframes hero-drift {
    to {
        transform: scale(1.07) translate(-1%, .8%);
    }
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 16, 52, .78) 0%, rgba(8, 16, 52, .5) 34%, rgba(8, 16, 52, 0) 62%),
        linear-gradient(0deg, rgba(8, 16, 52, .45) 0%, rgba(8, 16, 52, 0) 30%);
}

/* The red line under the headline draws itself, and it is not straight. */
.hero-line {
    width: 5.6em;
    max-width: 100%;
    height: .4em;
    margin-top: .17em;
    overflow: visible;
}

.hero-line path {
    fill: none;
    stroke: var(--red);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-line circle {
    fill: var(--red);
    stroke: var(--white);
    stroke-width: 3;
    transform-box: fill-box;
    transform-origin: center;
}

.js .hero-line path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.js .hero-line circle {
    opacity: 0;
}

.js .hero.is-live .hero-line path {
    animation: line-draw 1.5s cubic-bezier(.6, 0, .2, 1) .9s forwards;
}

.js .hero.is-live .hero-line circle {
    animation: line-node .5s cubic-bezier(.2, 1.6, .4, 1) 2.3s forwards;
}

@keyframes line-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes line-node {
    from {
        opacity: 0;
        transform: scale(.2);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-block: 72px 52px;
}

.hero .label {
    color: var(--white);
    opacity: .85;
}

.hero .label::before {
    content: "";
    display: inline-block;
    width: 44px;
    height: 2px;
    margin-right: 16px;
    background: var(--red);
    vertical-align: middle;
}

.hero h1 {
    color: var(--white);
    font-size: var(--fs-title);
    line-height: .88;
    letter-spacing: var(--track-head);
}

.hero-content > p:not(.label) {
    max-width: 30em;
    margin: 22px 0 26px;
    color: rgba(255, 255, 255, .92);
    font-size: var(--fs-intro);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* two buttons that no longer fit side by side stack as one column of equal
   width, their arrows at the same edge (the not-found page on a phone) */
@media (max-width: 419px) {
    .hero-actions:has(> .button + .button) {
        display: inline-grid;
        grid-template-columns: max-content;
    }

    .hero-actions:has(> .button + .button) .button {
        justify-content: space-between;
    }
}

/* headline lines rise into place on load */
.js .hero h1 > span {
    display: block;
    opacity: 0;
    transform: translateY(.35em);
}

.js .hero.is-live h1 > span {
    animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes hero-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1240px) {
    .hero-media :is(img, video, canvas) {
        object-position: var(--focus-x, 16%) var(--focus-y, 50%);
    }

    .hero-content > p:not(.label) {
        max-width: 25em;
    }
}

/* Phones, tablets and narrow windows (900px and under): the photo sits
   on top and the text follows beneath it on navy. */
@media (max-width: 900px) {
    .hero {
        display: block;
        min-height: 0;
    }

    .hero::after,
    .hero .label::before {
        display: none;
    }

    /* the text starts on the foot of the photo, where the photo has
       already faded into the navy, so no empty band sits between them */
    .hero-content,
    .hero-home .hero-content {
        display: block;
        margin-top: -9vw;
        padding-block: 0 36px;
    }

    .hero-home .hero-content::before,
    .hero-home .hero-content::after {
        display: none;
    }

    .hero .label {
        font-stretch: var(--w-head);
        letter-spacing: .08em;
    }

    .hero-media {
        position: relative;
        inset: auto;
        aspect-ratio: 3 / 2;
    }

    .hero-media :is(img, video, canvas) {
        object-position: var(--focus-x, 80%) 50%;
    }

    .hero-media::after {
        content: "";
        position: absolute;
        inset: 52% 0 0;
        background: linear-gradient(rgba(11, 19, 56, 0), var(--navy-deep) 88%);
    }

    /* A navy strip across the photo's foot, from 1px above it to 3px
       below. A phone's screen pixels seldom line up with the foot, and
       the browser then draws the photo (which the graphics card handles)
       up to one pixel past its own box, outside the edge that crops it,
       where the fade over the photo cannot reach. That row showed as a
       pale line, and it flickered as the page scrolled and the foot moved
       across the pixels. The strip is drawn from outside the photo and
       over it, so it covers that row whatever the browser does; the fade
       is already navy there, so the strip itself cannot be seen. It is
       placed at the photo's height, in hundredths of the header's width
       (cqw): 2/3 of it for the 3:2 photo, unless a page says otherwise
       with --photo-foot. */
    .hero {
        container-type: inline-size;
    }

    /* level 2: over the photo and its tints, under the text, which comes
       later in the page */
    .hero::before {
        content: "";
        position: absolute;
        z-index: 2;
        top: calc(var(--photo-foot, 100cqw * 2 / 3) - 1px);
        right: 0;
        left: 0;
        height: 4px;
        background: var(--navy-deep);
    }

    /* Home page. The headline is set on the photo, on the dark water on
       its left: under the platform, at about the photo's middle, and
       short enough to stop before the shallows. The paragraph and the
       buttons stay beneath the photo, on navy.

       The sizes are in "cqw", hundredths of the hero's own width, so the
       headline keeps its place in the photo at every width. */
    .hero-home {
        --photo-foot: 56.25cqw;
        container-type: inline-size;
        min-height: 0;
    }

    /* tablets and narrow windows: the whole photo, 16:9 (56.25cqw tall) */
    .hero-home .hero-media {
        aspect-ratio: 16 / 9;
    }

    .hero-home .hero-media :is(img, video, canvas) {
        object-position: 50% 0;
        transform-origin: 30.3cqw 6.75cqw;      /* the platform */
    }

    .hero-home .hero-content {
        position: static;
        margin-top: 0;
        padding-top: 6px;
    }

    .hero.hero-home h1 {
        position: absolute;
        z-index: 3;
        top: 20.6cqw;
        left: var(--gutter);
        font-size: clamp(24px, 6.6cqw, 58px);
    }

    .hero-home .hero-content > p:not(.label),
    .hero-home .hero-actions {
        position: relative;
        z-index: 3;
    }

    .hero-home .hero-content > p:not(.label) {
        max-width: 30em;
        margin-top: 0;
    }

    /* The foot of the photo turns to the navy of the text beneath it.
       It is tinted by multiplying, first with the blue of the water and
       then with navy. Pale sand therefore turns to blue water and then
       to navy, instead of passing through a milky lilac. */
    .hero-home .hero-media::before {
        content: "";
        position: absolute;
        z-index: 1;
        inset: 0;
        background: linear-gradient(#fff 58%, #3f86c2 76%, #173a7c 90%, #0b1338 100%);
        mix-blend-mode: multiply;
    }

    /* ... then a last step to the exact navy, and a shade behind the
       headline only: centred on the left edge, below the platform, so
       the platform stays bright. */
    .hero-home .hero-media::after {
        z-index: 2;
        inset: 0;
        height: auto;
        mix-blend-mode: normal;
        background:
            linear-gradient(rgba(11, 19, 56, 0) 90%, var(--navy-deep) 100%),
            radial-gradient(78% 38% at 0 52%, rgba(8, 16, 52, .66), rgba(8, 16, 52, .46) 60%, rgba(8, 16, 52, 0) 100%);
    }
}

/* Home page on phones: the photo is taller (3:2) and drawn a quarter
   larger, so the platform and the terminal are not specks. It is placed
   so that the last tank just fits at the right edge, which leaves the
   most open water on the left for the headline; the headline starts
   level with the open water below the jetty and the tip of the beach. */
@media (max-width: 599px) {
    .hero-home {
        --photo-foot: 100cqw * 2 / 3;
    }

    .hero-home .hero-media {
        aspect-ratio: 3 / 2;        /* 66.667cqw tall */
    }

    .hero-home .hero-media :is(img, video, canvas) {
        inset: 0 0 auto;
        height: 125%;               /* 83.3cqw tall, 148.1cqw wide */
        object-position: 38.5% 0;
        transform-origin: 26.4cqw 10cqw;        /* the platform */
    }

    .hero.hero-home h1 {
        top: 29.6cqw;
        font-size: clamp(24px, 7.4cqw, 58px);
    }

    /* the surf runs down the lower half of the photo here, so the fade to
       navy starts lower and the shade behind the headline is lighter and
       narrower than on tablets: the surf stays bright */
    .hero-home .hero-media::before {
        background: linear-gradient(#fff 68%, #3f86c2 83%, #173a7c 93%, #0b1338 100%);
    }

    .hero-home .hero-media::after {
        background:
            linear-gradient(rgba(11, 19, 56, 0) 92%, var(--navy-deep) 100%),
            radial-gradient(62% 30% at 0 55%, rgba(8, 16, 52, .58), rgba(8, 16, 52, .4) 62%, rgba(8, 16, 52, 0) 100%);
    }
}

/* ---- 6. Services band (inside the home hero) ---------------- */

/* A navy band along the bottom of the first screen. Each of the four
   blocks is one link; pointing at it turns it white, in place. */
.hero-services {
    --pad: clamp(18px, 2.2vw, 34px);
    position: relative;
    z-index: 2;
    background: rgba(11, 19, 56, .6);
    border-top: 1px solid rgba(255, 255, 255, .24);
}

/* wider than the page frame by the links' own padding, so their text
   lines up with the headline above */
.service-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100% - 2 * (var(--gutter) - var(--pad)), var(--frame) + 2 * var(--pad));
    margin-inline: auto;
}

.service {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.6vw, 24px);
    padding: clamp(13px, 2.3vh, 22px) var(--pad);
    border-left: 1px solid rgba(255, 255, 255, .16);
    color: var(--white);
    text-decoration: none;
    /* the 1ms delay stops a Chrome flash; see .button */
    transition: background-color .3s 1ms, color .3s;
}

.service:last-child {
    border-right: 1px solid rgba(255, 255, 255, .16);
}

.service:hover,
.service:focus-visible {
    background: var(--white);
    color: var(--navy);
}

.service:focus-visible {
    outline-offset: -5px;
}

.service-icon {
    flex: none;
    width: clamp(34px, 2.8vw, 42px);
    height: clamp(34px, 2.8vw, 42px);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-icon .accent {
    stroke: #ff3038;
    stroke-width: 2.2;
}

.service:hover .service-icon .accent,
.service:focus-visible .service-icon .accent {
    stroke: var(--red);
}

.service-text {
    display: grid;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
}

.service-company {
    font: 700 14px/1.3 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    opacity: .72;
}

/* the block's title, written as a sentence like the sub-headings */
.service strong {
    font: 800 clamp(18px, 1.3vw, 21px)/1.05 var(--sans);
    font-stretch: var(--w-head);
    letter-spacing: var(--track-sub);
}

.service-line {
    font-size: 17px;
    line-height: 1.35;
    opacity: .86;
}

.service-arrow {
    margin-left: auto;
}

/* the block that leaves for the Vision Energy website */
.service.out .service-arrow {
    -webkit-mask-image: var(--out);
    mask-image: var(--out);
}

/* Wide windows: four blocks share one row, so each is set a little
   smaller and closer than a row of three would be: less room either side
   of the icon and the text, and slightly smaller type. */
@media (min-width: 901px) {
    .hero-services {
        --pad: clamp(8px, 1.1vw, 18px);
    }

    .service {
        gap: clamp(7px, .8vw, 12px);
    }

    .service-icon {
        width: clamp(26px, 2.6vw, 36px);
        height: clamp(26px, 2.6vw, 36px);
    }

    .service-text {
        gap: 4px;
    }

    .service-company {
        font-stretch: 76%;
        letter-spacing: .04em;
    }

    .service strong {
        font-size: 18px;
    }

    .service-line {
        font-size: 15px;
    }

    .service-arrow {
        width: 16px;
        height: 16px;
    }
}

/* narrower: the sentence and the arrow are left out, and the type and
   the gaps shrink with the window so the longest company name still fits
   on one line beside its icon */
@media (min-width: 901px) and (max-width: 1340px) {
    .service-line,
    .service-arrow {
        display: none;
    }

    /* the block that leaves for the Vision Energy website keeps its
       icon, so it can still be told from the blocks that stay */
    .service.out .service-arrow {
        display: block;
        width: 14px;
        height: 14px;
    }

    .service-company {
        font-size: clamp(12.5px, 1.4vw, 14px);
        letter-spacing: .03em;
    }

    .service strong {
        font-size: clamp(14.5px, 1.58vw, 18px);
    }
}

@media (min-width: 901px) and (max-width: 1120px) {
    .hero-services {
        --pad: clamp(6px, .8vw, 18px);
    }

    .service-company {
        font-stretch: 75%;
        letter-spacing: 0;
    }
}

/* when the row nearly reaches the window's edges, the rules at its two
   ends would look like cut-off blocks, so they are left out */
@media (max-width: 1400px) {
    .service:first-child {
        border-left: 0;
    }

    .service:last-child {
        border-right: 0;
    }
}

/* ...and there the first and last blocks reach the window's edges, so
   the four fill the band from side to side: pointing at an end block
   turns it white all the way to the edge, with no strip of navy left
   beside it. The text stays where it was, in line with the headline. */
@media (min-width: 901px) and (max-width: 1400px) {
    .service:first-child::before,
    .service:last-child::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 50vw;
        background: inherit;
    }

    .service:first-child::before {
        right: 100%;
    }

    .service:last-child::before {
        left: 100%;
    }
}

@media (max-width: 900px) {
    .hero-services {
        background: none;
        border-top: 0;
    }

    .service-row {
        grid-template-columns: 1fr;
        width: min(100% - 2 * var(--gutter), var(--frame));
        padding-bottom: 28px;
    }

    .service,
    .service:last-child {
        padding: 18px 0;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, .2);
    }

    .service:hover,
    .service:focus-visible {
        background: none;
        color: var(--white);
    }

    .service-line,
    .service-arrow {
        display: block;
    }

    .service-text {
        white-space: normal;
    }
}

/* ---- 7. Statement: one picture in fourteen strips ------------

   One photograph cut into fourteen strips that touch each other. Each
   strip, picture and all, is moved a step higher than the one to its
   left. The picture therefore breaks at every join, and a soft shadow
   falls from each strip onto the next, so every strip can be told apart
   across its whole height, not only at its top and bottom.
   The headline sits in the corner above the low strips and the text in
   the corner below the high strips.

   When the section comes into view the strips start out of step and
   slide into place. */

.stmt-slices {
    /* the distance from the window edge to the site's text column */
    --edge: max(var(--gutter), (100vw - var(--frame)) / 2);
    --step: 15px;               /* how much higher each strip is than the last */
    --strip: clamp(330px, 19.5vw, 480px); /* height of one strip */
    --rise: calc(13 * var(--step));
    position: relative;
    padding-block: 52px 60px;
    background: var(--white);
    overflow: hidden;
}

.stmt-slices h2 {
    margin: 0;
    color: var(--ink);
    font: 800 var(--fs-section)/.94 var(--sans);
    font-stretch: var(--w-head);
    letter-spacing: var(--track-head);
    text-transform: uppercase;
}

.stmt-slices h2 span,
.stmt-slices h2 em {
    display: block;
}

.stmt-slices h2 em {
    margin-top: .08em;
    color: var(--red);
    font-family: var(--serif);
    font-size: 1.1em;
    font-style: italic;
    font-weight: 500;
    font-stretch: 100%;
    letter-spacing: -.03em;
    line-height: 1;
    text-transform: none;
}

/* headline: top left, above the low strips */
.stmt-slices .ss-head {
    position: absolute;
    z-index: 2;
    left: var(--edge);
    top: 52px;
    width: min(46%, 660px);
}

/* the band is as wide as the window; the strips are placed inside it */
.stmt-slices .ss-band {
    position: relative;
    height: calc(var(--strip) + var(--rise));
    margin-top: 22px;
    container-type: size;
}

/* one strip: a window onto the photo */
.stmt-slices .ss-band span {
    --w: calc(100cqw / 14);
    --x: calc(var(--i) * var(--w));
    --t: calc((13 - var(--i)) * var(--step));
    position: absolute;
    left: var(--x);
    top: var(--t);
    /* a hair wider than its share, so no gap shows between strips */
    width: calc(var(--w) + .6px);
    height: var(--strip);
    overflow: hidden;
    background: var(--navy);
}

/* every strip holds the whole photo. Across the page the fourteen pieces
   follow on from each other; up and down, each strip carries its piece
   with it, so the picture is a step out of line at every join.
   The photo is the platform seen from above, with open water on both
   sides: the platform and its vessels are whole, in the middle strips,
   and the water lightens strip by strip towards them. */
.stmt-slices .ss-band img {
    position: absolute;
    left: calc(-1 * var(--x));
    top: 0;
    width: 100cqw;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 46%;
    filter: brightness(min(1, calc(.6 + var(--i) * .08)));
}

/* the shadow each strip casts on the strip to its right */
.stmt-slices .ss-band span::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 22%;
    background: linear-gradient(90deg, rgba(4, 9, 34, .5), rgba(4, 9, 34, .16) 38%, rgba(4, 9, 34, 0));
}

.stmt-slices .ss-band span:first-child::after {
    display: none;
}

/* text: bottom right, below the high strips, starting on the left edge
   of the ninth strip */
.stmt-slices .ss-copy {
    position: absolute;
    z-index: 2;
    left: calc(100% * 8 / 14);
    right: var(--edge);
    top: calc(52px + 22px + 5 * var(--step) + var(--strip) + 26px);
}

.stmt-slices .ss-fact {
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--red);
    color: var(--ink);
    font-size: var(--fs-sub);
    line-height: 1.22;
    /* no single word left alone on the last line */
    text-wrap: balance;
}

.stmt-slices .ss-fact strong {
    font: 800 1em/1 var(--sans);
    font-stretch: var(--w-head);
    letter-spacing: var(--track-sub);
    text-transform: uppercase;
}

.stmt-slices .ss-copy p:not(.ss-fact) {
    margin: 0 0 10px;
    line-height: 1.42;
}

.stmt-slices .ss-copy p:last-child {
    margin-bottom: 0;
}

/* room under the low strips for the text beside them */
.stmt-slices::after {
    content: "";
    display: block;
    height: 150px;
}

/* motion: out of step until the section is in view, then into place */
.js .stmt-slices .ss-band span {
    transform: translateY(var(--off));
    opacity: 0;
}

.js .stmt-slices.is-in .ss-band span {
    transform: none;
    opacity: 1;
    transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), opacity .5s ease;
    transition-delay: calc(var(--i) * 45ms);
}

/* narrower windows: headline, picture and text stacked, with smaller steps */
@media (max-width: 1100px) {
    .stmt-slices {
        --step: 7px;
        --strip: clamp(170px, 34vw, 300px);
        padding-block: 44px 48px;
    }

    .stmt-slices .ss-head,
    .stmt-slices .ss-copy {
        position: static;
        width: auto;
        max-width: 640px;
        margin-inline: var(--gutter);
    }

    .stmt-slices .ss-band {
        margin-block: 26px 28px;
    }

    .stmt-slices::after {
        display: none;
    }
}

/* phones: the picture is drawn larger, so the platform is not lost */
@media (max-width: 700px) {
    .stmt-slices .ss-band img {
        top: -20%;
        height: 140%;
        object-position: 56% 46%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .stmt-slices .ss-band span {
        transform: none;
    }

    .js .stmt-slices.is-in .ss-band span {
        transition: opacity .5s ease;
    }
}

/* ---- 8. Reasons --------------------------------------------- */

/* The photo is part of the section, not a box placed on it. It runs in
   from the left edge of the page and dissolves into the section's
   background on its right and top, so the text sits beside it without a
   hard edge. It dissolves at its foot as well, so it never butts against
   the navy band below. A light navy wash ties any photo to the site's
   colors. This is all done here, so a replacement photo gets the same
   treatment. */
.reasons {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    background: var(--paper);
}

.plate {
    position: relative;
    margin: 0;
}

/* The photo comes in three shapes (see the page): wide for wide
   windows, tall for a narrower column, and a closer one for tablets and
   phones. Each is placed so that both platforms and the supply boat are
   whole and clear of the text, and only sky and open water fade away. */
.plate-photo {
    position: absolute;
    inset: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 100%), linear-gradient(transparent 0, #000 7%, #000 85%, transparent 96%);
    mask-image: linear-gradient(90deg, #000 86%, transparent 100%), linear-gradient(transparent 0, #000 7%, #000 85%, transparent 96%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

/* the tall photo: the platforms are in its upper part, so it is held to the top */
.plate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 8%;
}

/* mid-width windows: the tall photo gets half the width, so the flare
   boom is whole */
@media (min-width: 1001px) and (max-width: 1399px) {
    .reasons {
        grid-template-columns: minmax(0, 50%) minmax(0, 1fr);
    }
}

/* wide windows: the wide photo, running on under the edge of the text
   column, where it is only water; its fade ends before the text */
@media (min-width: 1400px) {
    .plate-photo {
        inset: 0 -22% 0 0;
        -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 90%), linear-gradient(transparent 0, #000 7%, #000 85%, transparent 96%);
        mask-image: linear-gradient(90deg, #000 55%, transparent 90%), linear-gradient(transparent 0, #000 7%, #000 85%, transparent 96%);
    }

    .plate-photo img {
        object-position: 24% 47%;
    }
}

/* very wide windows: the photo runs less far under the text, so it is
   not cut down in height */
@media (min-width: 2200px) {
    .plate-photo {
        inset: 0 -6% 0 0;
        -webkit-mask-image: linear-gradient(90deg, #000 64%, transparent 96%), linear-gradient(transparent 0, #000 7%, #000 85%, transparent 96%);
        mask-image: linear-gradient(90deg, #000 64%, transparent 96%), linear-gradient(transparent 0, #000 7%, #000 85%, transparent 96%);
    }

    .plate-photo img {
        object-position: 0 40%;
    }
}

.plate-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 77, .2);
}

.reasons-body {
    position: relative;
    padding: clamp(48px, 4.4vw, 72px) max(var(--gutter), (100vw - var(--frame)) / 2) clamp(48px, 4.4vw, 72px) clamp(40px, 5vw, 80px);
}

/* mid-width windows: the text starts a little closer to the wider photo */
@media (min-width: 1001px) and (max-width: 1399px) {
    .reasons-body {
        padding-left: clamp(28px, 3vw, 44px);
    }
}

.reasons h2 {
    margin-bottom: clamp(20px, 2vw, 30px);
    font-size: var(--fs-section);
}

.reason-list {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    counter-reset: reason;
}

.reason-list li {
    display: grid;
    grid-template-columns: 64px 1fr;
    padding-block: 18px;
    border-top: 1px solid var(--rule);
    counter-increment: reason;
}

.reason-list li:last-child {
    border-bottom: 1px solid var(--rule);
}

.reason-list li::before {
    content: counter(reason, decimal-leading-zero);
    padding-top: 6px;
    color: var(--red);
    font: 700 14px/1 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
}

.reason-list h3 {
    margin-bottom: 6px;
}

.reason-list p {
    grid-column: 2;
    margin: 0;
}

@media (max-width: 1000px) {
    .reasons {
        grid-template-columns: 1fr;
    }

    /* the photo sits on top, whole: the closer picture, with the platforms
       in its middle and only sky and water at its top and foot */
    .plate {
        aspect-ratio: 4 / 3;
    }

    .plate-photo {
        inset: 0;
        -webkit-mask-image: linear-gradient(transparent 0, #000 7%, #000 88%, transparent 100%);
        mask-image: linear-gradient(transparent 0, #000 7%, #000 88%, transparent 100%);
    }

    .plate-photo img {
        object-position: 50% 50%;
    }

    .reasons-body {
        padding: 28px var(--gutter) 72px;
    }

    .reason-list li {
        grid-template-columns: 48px 1fr;
    }
}

/* The red line from the photo. The label's short red rule becomes a line
   that starts at a ring on the platform in the photo and runs to the
   label: the same weight as the route lines on the Key Partners page. It
   is drawn by the script (see "Red line from the photo" in site.js) on
   wide windows only; where the photo is above the text, and without the
   script, the label keeps its short rule. */
.reasons .redline {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.reasons .redline path {
    fill: none;
    stroke: var(--red);
    stroke-width: 3;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.1s cubic-bezier(.3, .6, .2, 1) .15s;
}

.reasons .redline circle {
    fill: var(--white);
    stroke: var(--red);
    stroke-width: 3;
    opacity: 0;
    transition: opacity .3s;
}

.reasons.has-redline.is-drawn .redline path {
    stroke-dashoffset: 0;
}

.reasons.has-redline.is-drawn .redline circle {
    opacity: 1;
}

/* the label keeps its own short rule until the line has arrived */
.reasons.has-redline.is-drawn .reasons-body .label::before {
    visibility: hidden;
}

/* ---- 9. Results and the line drawings ----------------------- */

.results {
    background: var(--navy);
    color: var(--white);
    padding-block: clamp(44px, 4vw, 64px);
}

.results-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 40px;
}

.results-head {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 26px;
}

.results-head .label {
    color: #ff5a60;
}

.results h2 {
    color: var(--white);
}

.results h2 em {
    display: inline;
    color: var(--white);
}

/* the link to the case studies page: on wide windows its red rule sits on
   the line the heading's words stand on */
.results-more {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    margin-bottom: calc(26px + var(--fs-section) * .19);
}

.cases {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(28px, 4vw, 56px);
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.case {
    padding-top: 26px;
}

.case .label {
    margin: 0;
    color: rgba(255, 255, 255, .7);
}

.case strong {
    display: block;
    margin: 0 0 6px;
    color: var(--white);
    font: 800 clamp(34px, 2.9vw, 44px)/1 var(--sans);
    font-stretch: var(--w-head);
    letter-spacing: var(--track-head);
    font-variant-numeric: tabular-nums;
}

.case-result p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.4;
}

/* Line drawings: thin strokes, one red element. They draw themselves
   when they scroll into view, then the figure counts up. */
/* Each drawing has a plain explanation. Pointing at the drawing, tapping
   it on a touch screen, or reaching it with the Tab key shows it in a
   white card laid over the drawing. The card covers the drawing and
   nothing else: the box around the drawing is exactly the drawing's
   size, and the card's text shrinks with it so the card never grows
   past it. It appears in place; nothing moves and the cursor does not
   change. */
.schem-wrap {
    position: relative;
    margin-top: 14px;
    container-type: inline-size;
}

.schem {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    transition: opacity .3s;
}

.schem-note {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0;
    padding: clamp(10px, 3.6cqw, 14px) clamp(12px, 4.6cqw, 18px) clamp(11px, 4cqw, 16px);
    background: var(--white);
    box-shadow: 0 16px 36px rgba(4, 8, 30, .45);
    color: var(--ink);
    /* "cqw" is a hundredth of the drawing's width */
    font-size: clamp(14px, 4.45cqw, 17px);
    line-height: 1.36;
    opacity: 0;
    translate: 0 -50%;
    /* site.js sets --note-height to the tallest card, so all match */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--note-height, 0);
    max-height: 100%;
    transition: opacity .3s;
    pointer-events: none;
}

.schem-note b {
    display: block;
    margin-bottom: 4px;
    color: var(--red);
    font: 700 14px/1.3 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
}

/* the card shows, and the drawing behind it hides: when tapped (site.js
   adds "is-open"), when reached with the Tab key, and when pointed at
   with a mouse */
.schem-wrap.is-open .schem,
.schem-wrap:focus-visible .schem {
    opacity: 0;
}

.schem-wrap.is-open .schem-note,
.schem-wrap:focus-visible .schem-note {
    opacity: 1;
}

@media (hover: hover) {
    .schem-wrap:hover .schem {
        opacity: 0;
    }

    .schem-wrap:hover .schem-note {
        opacity: 1;
    }
}

.schem-wrap:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 6px;
}

/* a quiet line saying the drawing can be pointed at (site.js changes it
   to "Tap ..." on touch screens) */
.schem-cue {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .62);
    font: 600 15px/1.3 var(--sans);
    font-stretch: var(--w-label);
}

.case-result {
    margin-top: 14px;
}

.schem path,
.schem circle {
    fill: none;
    stroke: rgba(255, 255, 255, .9);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.schem .dim {
    stroke: rgba(255, 255, 255, .38);
}

.schem .grid {
    stroke: rgba(255, 255, 255, .12);
    stroke-width: 1;
}

.schem .dash {
    stroke-dasharray: 5 4;
}

.schem .dot {
    stroke-dasharray: 1.5 4;
}

.schem .red,
.schem .red-mark {
    stroke: #ff3038;
    stroke-width: 2.4;
}

.section.paper .label,
.reasons .label {
    color: #c9121a;
}

.schem .thin {
    stroke-width: 1.3;
}

.schem .fill-red {
    fill: #ff3038;
    stroke: none;
}

.schem .bar {
    stroke-width: 14;
    stroke-linecap: butt;
}

.schem .dim-bar {
    stroke: rgba(255, 255, 255, .22);
}

.schem .hatch {
    fill: url(#ofo-hatch);
    stroke: none;
    transform-box: fill-box;
    transform-origin: top;
}

.schem text {
    fill: rgba(255, 255, 255, .62);
    font: 700 12px var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.schem .red-text {
    fill: #ff5a60;
}

.js .schem .draw {
    stroke-dasharray: 1 !important;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1s cubic-bezier(.5, 0, .2, 1) var(--d, 0s);
}

/* dashed strokes cannot use the dash trick, so they fade in instead */
.js .schem .draw.dash,
.js .schem .draw.dot {
    stroke-dasharray: 5 4 !important;
    stroke-dashoffset: 0;
    opacity: 0;
    transition: opacity .6s ease var(--d, 0s);
}

.js .schem .draw.dot {
    stroke-dasharray: 1.5 4 !important;
}

.js .schem .bar {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1) var(--d, 0s);
}

.js .schem .pop,
.js .schem .hatch {
    opacity: 0;
    transition: opacity .5s ease var(--d, 0s);
}

.js .case.is-visible .schem .draw,
.js .case.is-visible .schem .bar {
    stroke-dashoffset: 0;
}

.js .case.is-visible .schem .draw.dash,
.js .case.is-visible .schem .draw.dot,
.js .case.is-visible .schem .pop {
    opacity: 1;
}

/* the shortfall shows, then is taken away */
.js .case.is-visible .schem .hatch {
    animation: hatch-erase 2.2s cubic-bezier(.4, 0, .2, 1) var(--d, 0s) forwards;
}

/* without JavaScript the shortfall is simply not drawn */
html:not(.js) .schem .hatch {
    display: none;
}

@keyframes hatch-erase {
    0% {
        opacity: 0;
        transform: none;
    }

    25%,
    55% {
        opacity: 1;
        transform: none;
    }

    100% {
        opacity: 1;
        transform: scaleY(0);
    }
}

@media (max-width: 900px) {
    .cases {
        grid-template-columns: 1fr;
    }
}

/* phones only: the link moves below the third case study so readers land on
   it after scrolling through all three */
@media (max-width: 599px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .results-head {
        padding-bottom: 22px;
    }

    .results-more {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        margin: 28px 0 0;
    }
}

/* Tablets and narrow windows: each case is a row, with the drawing on
   the left and its result beside it, so the row fills the width and no
   side is left empty. On phones the drawing is as wide as the screen and
   the result sits under it. */
@media (min-width: 600px) and (max-width: 900px) {
    .case {
        display: grid;
        grid-template-columns: minmax(0, 52%) minmax(0, 1fr);
        column-gap: clamp(28px, 5vw, 52px);
        align-items: center;
    }

    .case .label {
        grid-column: 1 / -1;
    }

    .case .schem-wrap {
        grid-column: 1;
        grid-row: 2;
    }

    .case .schem-cue {
        grid-column: 1;
        grid-row: 3;
    }

    .case .case-result {
        grid-column: 2;
        grid-row: 2 / span 2;
        margin-top: 0;
    }
}

/* ---- 10. Region --------------------------------------------- */

/* Where Superior works, named in type, beside a photo of the coast. The
   photo runs in from the right edge of the page and dissolves into the
   section on its left, top and bottom, the mirror image of the "How we
   work" section. There is no map. */
.region {
    --edge: max(var(--gutter), (100vw - var(--frame)) / 2);
    position: relative;
    display: grid;
    grid-template-columns: calc(var(--edge) + 430px) minmax(0, 1fr);
    align-items: center;
    background: var(--white);
    overflow: hidden;
}

.region-body {
    position: relative;
    z-index: 1;
    padding: 40px 0 40px var(--edge);
}

.region h2 {
    margin-bottom: 20px;
    font-size: var(--fs-section);
}

.region-body > p:not(.label) {
    margin: 0;
    font-size: var(--fs-intro);
    line-height: 1.5;
}

/* The map: a drawn map of the northern Gulf (land, state lines, rivers
   and the depth of the water) with the names set over it. The picture
   dissolves into the page on its left, top and bottom; the names sit
   above that, so they stay sharp. Everything is placed on the same
   2000 x 1007 grid as the picture. */
.region-map {
    position: relative;
    margin: 0;
    aspect-ratio: 2000 / 1007;
    container-type: inline-size;
}

.map-plate {
    position: absolute;
    inset: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 15%), linear-gradient(transparent 0, #000 5%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 15%), linear-gradient(transparent 0, #000 5%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.map-plate img,
.map-grid,
.map-names {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-names text {
    text-anchor: middle;
}

/* state names: navy on the land, with a land-colored edge so the lines
   of the map break cleanly behind the letters */
.map-area {
    fill: var(--navy);
    font: 800 44px/1 var(--sans);
    font-stretch: 78%;
    letter-spacing: .08em;
    text-transform: uppercase;
    paint-order: stroke;
    stroke: #f3efe5;
    stroke-width: 9px;
    stroke-linejoin: round;
}

.map-sea {
    fill: var(--white);
    font: italic 500 78px/1 var(--serif);
    letter-spacing: .05em;
}

/* the grid: a line every two degrees. It is drawn by the page, not held in
   the picture, so every line is exactly one pixel wide however small the
   map is shown. The lines are the color of the land, so they show on the
   water only. Each is placed by its real longitude or latitude, the same
   way as the figures below. */
/* 20%: the strength the lines had when they were part of the picture */
.map-grid {
    opacity: .2;
}

.map-grid span {
    position: absolute;
    background: #f3efe5;
}

.map-grid .lon {
    top: 0;
    bottom: 0;
    left: calc((var(--lon) + 102.5) / 18 * 100% - .5px);
    width: 1px;
}

.map-grid .lat {
    left: 0;
    right: 0;
    top: calc((32.8 - var(--lat)) * 12.4966% - .5px);
    height: 1px;
}

/* the small latitude and longitude figures on the water. Each is placed by
   the real position of the crossing it names, then set in that crossing's
   upper right corner. Their size is a fixed share of the map's width (21
   on its 2000-wide grid), so they keep the same proportion to the map at
   every window size, as the names do. */
.map-degs {
    position: absolute;
    inset: 0;
    margin: 0;
    pointer-events: none;
}

.map-degs span {
    position: absolute;
    left: calc((var(--lon) + 102.5) / 18 * 100%);
    top: calc((32.8 - var(--lat)) * 12.4966%);
    translate: .41em calc(-100% - .26em);
    color: rgba(255, 255, 255, .62);
    font: 600 calc((100vw - var(--edge) - 430px) * .0105)/1 var(--sans);   /* for older browsers: the same size, worked out from the window */
    font: 600 1.05cqw/1 var(--sans);
    font-stretch: 86%;
    letter-spacing: .08em;
    white-space: nowrap;
}

/* motion: the names arrive one after another */
.js .region-map .map-names > *,
.js .region-map .map-degs {
    opacity: 0;
    transition: opacity .7s ease;
    transition-delay: calc(.35s + var(--i, 0) * .13s);
}

.js .region-map.is-visible .map-names > *,
.js .region-map.is-visible .map-degs {
    opacity: 1;
}

/* Phones and tablets (900px and under; above that the map sits beside
   the text, design feedback 158) */
@media (max-width: 900px) {
    .region {
        grid-template-columns: 1fr;
    }

    /* the map goes above the text and is drawn larger than the window, so
       the coast and its names stay readable. Its right edge meets the
       window's, so the names in the east keep clear of the edge; the far
       west falls outside it */
    .region-map {
        order: -1;
        width: 122%;
        margin-left: -22%;
    }

    /* it starts straight under the band above it: no fade at its top,
       which showed as a white strip between the two */
    .map-plate {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 15%), linear-gradient(#000 0, #000 88%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 15%), linear-gradient(#000 0, #000 88%, transparent 100%);
    }

    .map-area {
        font-size: 46px;
    }

    /* the 86°W line is close to the window's edge here, so every figure
       sits to the left of its line, not the right */
    .map-degs span {
        translate: calc(-100% - .3em) calc(-100% - .26em);
        font-size: 1.28vw;                              /* for older browsers */
        font-size: 1.05cqw;
    }

    .region-body {
        padding: 28px var(--gutter) 56px;
        max-width: 640px;
    }
}

/* ---- 11. Call to action -------------------------------------- */

/* closes every page: white type over a photo of open Gulf water */
.cta {
    position: relative;
    overflow: hidden;
    padding-block: clamp(56px, 5.4vw, 88px);
    background: var(--navy-deep) url(../images/water-1400.webp) center / cover no-repeat;
    color: var(--white);
}

@media (min-width: 1200px) {
    .cta {
        background-image: url(../images/water-2400.webp);
    }
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(11, 19, 56, 0) 52%, var(--navy-deep) 100%),
        linear-gradient(90deg, rgba(8, 16, 52, .74) 0%, rgba(8, 16, 52, .42) 52%, rgba(8, 16, 52, 0) 82%);
}

.cta .frame {
    position: relative;
}

.cta-body {
    max-width: 44rem;
}

/* The line that closes the page is a sign-off, not a section heading: the
   band is on every page, like the footer. So it has no red label, and it
   is set in the italic serif at the middle size, written as a sentence. */
.cta h2 {
    margin-bottom: 14px;
    color: var(--white);
    font: italic 500 var(--fs-mid)/1.05 var(--serif);
    font-stretch: 100%;
    letter-spacing: var(--track-sub);
    text-transform: none;
}

.cta-body > p:not(.label) {
    max-width: 30em;
    margin: 0;
    color: rgba(255, 255, 255, .94);
    font-size: var(--fs-intro);
    line-height: 1.45;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-top: 22px;
}

.cta-phone {
    color: var(--white);
    font: 800 var(--fs-sub)/1 var(--sans);
    font-stretch: var(--w-head);
    letter-spacing: var(--track-sub);
    text-decoration: none;
}

.cta-phone:hover {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

/* The water in the band moves: the script lays a looping clip of the same
   water over the photo, under the navy shade and the text, placed exactly
   as the photo is. Until it plays, and wherever it cannot, the photo shows. */
.cta {
    isolation: isolate;
}

.cta-water {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
}

.cta-water.is-moving {
    opacity: 1;
}

@media (max-width: 700px) {
    .cta {
        background-image: url(../images/water-800.webp);
        background-position: 22% center;
    }

    .cta-water {
        object-position: 22% center;
    }

    /* the surf comes in from the right here: the lines end before it */
    .cta-body > p:not(.label) {
        max-width: 21em;
    }
}

/* A navy strip across the join between the closing band and the footer,
   from 1px above it to 3px below. Where the screen's pixels do not line
   up with the join, the browser draws the band's photo (and its moving
   clip) up to a pixel past the band, where the navy fade over it cannot
   reach, which left a blue line along the top of the footer. The strip
   covers it; the band is already navy at its foot, like the footer, so
   the strip itself cannot be seen. The not-found page, whose photo
   header meets the footer, had a grey line there for the same reason. */
main:has(> .cta:last-child, > .hero:only-child) + .site-footer {
    position: relative;
}

main:has(> .cta:last-child, > .hero:only-child) + .site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--navy-deep);
}

/* ---- 12. Footer ---------------------------------------------- */

/* The footer does not repeat the menu or the office details, which are in
   the header and on the Contact page. It holds the logo, one line about
   the company, the link to Industry resources (which is nowhere else)
   and the copyright line. */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .78);
}

.foot {
    display: flex;
    align-items: center;
    gap: 20px clamp(24px, 4vw, 56px);
    padding-block: 34px 30px;
}

.foot .brand img {
    width: 126px;
    filter: none;
}

.foot-link {
    margin-left: auto;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--red);
    color: var(--white);
    font: 700 14px/1.2 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .3s;
}

.foot-link:hover {
    color: #ff5a60;
}

/* the copyright year and the three companies, each named once. On wide
   windows they share one line with a thin rule between them; on narrow
   ones each company has a line of its own, so no name is ever broken. */
.foot-base {
    display: flex;
    align-items: center;
    gap: 0 22px;
    padding-block: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .66);
    font: 700 14px/1.5 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    white-space: nowrap;
}

.foot-base p {
    margin: 0;
}

.foot-base ul {
    display: flex;
    gap: 0 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.foot-base li + li {
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .28);
}

/* each company name is a link to its page. At rest it looks like the text
   around it; it lightens to the footer's red when pointed at, like the
   "Industry resources" link. The padding makes it easier to click and tap
   without moving anything. */
.foot-base a {
    padding-block: 6px;
    color: inherit;
    text-decoration: none;
    transition: color .3s;
}

.foot-base a:hover {
    color: #ff5a60;
}

/* Vision Energy has a website of its own, so its name ends in the
   leaving-the-site icon */
.foot-base a.out::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: .3em;
    vertical-align: -.14em;
    background: currentColor;
    -webkit-mask: var(--out) center / contain no-repeat;
    mask: var(--out) center / contain no-repeat;
}

/* four names, the leaving-the-site icon and the year need a window
   1140px wide to sit on one line inside the page's margins at the normal
   spacing. Just below that the gaps close up a little, so the line still
   fits down to the width at which the names stack. */
@media (min-width: 1101px) and (max-width: 1140px) {
    .foot-base,
    .foot-base ul {
        gap: 0 15px;
    }

    .foot-base li + li {
        padding-left: 15px;
    }
}

@media (max-width: 1100px) {
    .foot-base,
    .foot-base ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .foot-base li + li {
        padding-left: 0;
        border-left: 0;
    }

    /* the names are stacked here, so each link's area fills its line and
       the gap above and below it, and no more */
    .foot-base a {
        display: block;
        margin-block: -2px;
        padding-block: 2px;
    }
}

/* the narrowest phones: "Superior Natural Gas Corporation" is 23px too
   long for a 320px window at the normal letter spacing, which made the
   whole page wider than the screen. The names close up enough for it to
   fit on one line, and may take a second line on anything narrower still. */
@media (max-width: 345px) {
    .foot-base {
        letter-spacing: .08em;
        white-space: normal;
    }
}

/* ---- 13. Inner pages: page headers and text sections ---------- */

/* Photo header on the inner pages. The photo fills the right-hand two
   thirds and dissolves into the navy on its left, behind the text. It is
   not stretched across the whole window: on a wide window that would
   leave only a thin slice of it, with its subject cut off. The header
   also grows taller as the window grows wider, for the same reason. */
.hero.compact {
    justify-content: center;
}

@media (min-width: 901px) {
    .hero.compact {
        min-height: clamp(340px, 21vw, 520px);
    }
}

/* the text sits in the middle of the header's height, not at its foot */
@media (min-width: 901px) {
    .hero.compact .hero-content {
        padding-block: 44px;
    }
}

.hero.compact::after {
    background: linear-gradient(90deg, rgba(8, 16, 52, .55) 34%, rgba(8, 16, 52, 0) 68%);
}

@media (min-width: 901px) {
    .hero.compact .hero-media {
        left: 36%;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%);
        mask-image: linear-gradient(90deg, transparent 0, #000 42%);
    }
}

.hero.compact h1 {
    max-width: 13em;
    font-size: var(--fs-title);
}

.hero.compact .hero-content > p:not(.label) {
    max-width: 27em;
    margin-bottom: 0;
}

/* Key partners: the platform is seen from above, with a supply vessel
   above and below it. The header is a little taller than the others on
   wide windows, so that all three are whole. */
@media (min-width: 901px) {
    .hero.compact.hero-tall {
        min-height: clamp(360px, 26vw, 680px);
    }
}

/* Team: the top of the photo is pale sky. On wide windows it is deepened
   towards the navy, so it does not turn to grey smoke where the photo
   dissolves into the header. */
@media (min-width: 901px) {
    .hero.compact.hero-sky .hero-media {
        left: 37%;
    }

    .hero.hero-sky .hero-media::after {
        content: "";
        position: absolute;
        inset: 0 0 58% 0;
        background: linear-gradient(rgba(11, 19, 56, .66), rgba(11, 19, 56, 0));
        pointer-events: none;
    }
}

/* A header whose photo must be seen whole on narrow windows: a platform
   with its supply vessels. The photo is then a closer picture (see the
   page), shown in its own shape, which the header gives in its style
   attribute as --photo-shape (width / height). It fades to navy only at
   its foot, from --photo-fade down, and the text starts under it instead
   of on it. Wide windows are not changed. */
@media (max-width: 900px) {
    .hero.hero-clear {
        --photo-foot: 100cqw / (var(--photo-shape, 4 / 3));
    }

    .hero.hero-clear .hero-media {
        aspect-ratio: var(--photo-shape, 4 / 3);
    }

    .hero.hero-clear .hero-media :is(img, video, canvas) {
        object-position: 50% 50%;
    }

    .hero.hero-clear .hero-media::after {
        inset: var(--photo-fade, 88%) 0 0;
        background: linear-gradient(rgba(11, 19, 56, 0), var(--navy-deep));
    }

    .hero.hero-clear .hero-content {
        margin-top: 10px;
    }
}

/* Narrow windows that are wider than they are tall: a phone or tablet
   held sideways, or a narrow or squarish desktop window, 560 to 900px
   wide. With the photo on top, as on a phone held upright, the photo is
   as wide as the window and taller than it, and pushes the headline and
   the page out of sight. So these page headers keep the wide-window
   layout here, the text beside the photo, with the same values as above
   901px. Phones and tablets held upright keep the photo on top. The
   pages that show a closer photo on narrow windows (<source> on Key
   Partners, Team and the Vision page) switch to it on the same condition.
   The home page's first screen is not affected. (Design feedback 158.) */
@media (min-width: 560px) and (max-width: 900px) and (min-aspect-ratio: 5/6) {
    .hero.compact {
        --hero-h: clamp(340px, 21vw, 520px);
        display: flex;
    }

    .hero.compact::before {
        display: none;
    }

    .hero.compact::after {
        display: block;
    }

    .hero.compact .label::before {
        display: inline-block;
    }

    .hero.compact .hero-content,
    .hero.compact.hero-clear .hero-content {
        margin-top: 0;
        padding-block: 44px;
    }

    .hero.compact .hero-media,
    .hero.compact.hero-clear .hero-media {
        position: absolute;
        inset: 0 0 0 36%;
        aspect-ratio: auto;
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%);
        mask-image: linear-gradient(90deg, transparent 0, #000 42%);
    }

    .hero.compact .hero-media::after,
    .hero.compact.hero-clear .hero-media::after {
        content: none;
    }

    .hero.compact .hero-media :is(img, video, canvas),
    .hero.compact.hero-clear .hero-media :is(img, video, canvas) {
        object-position: var(--focus-x, 16%) var(--focus-y, 50%);
    }

    .hero.compact.hero-tall {
        --hero-h: clamp(360px, 26vw, 680px);
    }

    .hero.compact.hero-sky .hero-media {
        left: 37%;
    }

    .hero.compact.hero-sky .hero-media::after {
        content: "";
        position: absolute;
        inset: 0 0 58% 0;
        background: linear-gradient(rgba(11, 19, 56, .66), rgba(11, 19, 56, 0));
        pointer-events: none;
    }

    /* the text stops where the photo is still faded, so it never runs onto
       the photo itself; the photo starts a little further right */
    .hero.compact:not(.hero-lead) h1,
    .hero.compact .hero-content > p:not(.label) {
        max-width: min(27em, 47vw - var(--gutter));
    }

    .hero.compact .hero-media,
    .hero.compact.hero-clear .hero-media {
        left: 46%;
    }

    /* a phone held sideways is short: the header is never taller than the
       window under the site header, and the text has less space around it */
    .hero.compact,
    .hero.compact.hero-tall,
    .hero.compact.hero-lead {
        min-height: min(var(--hero-h), 100svh - var(--header));
    }

    .hero.compact .hero-content,
    .hero.compact.hero-clear .hero-content {
        padding-block: clamp(20px, 6svh, 44px);
    }
}

/* A small credit in the corner of a page header, for a photo whose
   licence asks for one (About: CC BY 2.0). Small and pale, so it is not in
   the way; its links leave the site, so they carry that icon (R37). */
.photo-credit {
    position: absolute;
    right: 14px;
    bottom: 10px;
    z-index: 3;
    margin: 0;
    font-family: var(--sans);
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .72);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}

.photo-credit a {
    color: inherit;
    text-decoration: none;
}

.photo-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

.photo-credit a.out::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: .2em;
    vertical-align: -.14em;
    background: currentColor;
    -webkit-mask: var(--out) center / contain no-repeat;
    mask: var(--out) center / contain no-repeat;
}

.section {
    --bg: var(--white);
    padding-block: clamp(44px, 4.2vw, 68px);
    background: var(--bg);
}

.section.paper {
    --bg: var(--paper);
}

.section.tight {
    padding-top: 0;
}

.section-head {
    max-width: 48rem;
    margin-bottom: clamp(22px, 2.2vw, 34px);
}

.section-head h2,
.split h2 {
    font-size: var(--fs-section);
}

.section-head p:not(.label) {
    margin: 16px 0 0;
    font-size: var(--fs-intro);
    line-height: 1.45;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.prose p {
    max-width: 36em;
}

.prose p:last-child {
    margin-bottom: 0;
}

.lead {
    color: var(--ink);
    font-size: var(--fs-lead);
    line-height: 1.45;
}

/* a sentence set apart with a red rule */
.callout {
    max-width: 30em;
    margin: 24px 0 0;
    padding: 4px 0 4px 28px;
    border-left: 3px solid var(--red);
    color: var(--ink);
    font-size: var(--fs-lead);
    font-style: italic;
    line-height: 1.35;
}

/* a link inside that sentence: underlined in red, and red when pointed at */
.callout a {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color .3s;
}

.callout a:hover {
    color: var(--red);
}

/* Wide photo between sections. Its top and bottom dissolve into the
   sections above and below, and the same light navy wash is applied. */
.band-image {
    --from: var(--white);
    --to: var(--white);
    position: relative;
    margin: 0;
    background: linear-gradient(var(--from) 50%, var(--to) 50%);
}

.section.paper + .band-image {
    --from: var(--paper);
}

.band-image:has(+ .section.paper) {
    --to: var(--paper);
}

/* the band grows taller as the window grows wider, so a wide window
   never cuts the photo down to a thin slice. The fade at its top and foot
   is short, so the night photo on the Natural Gas page does not turn to
   grey mist (design feedback 160). */
.band-image img {
    display: block;
    width: 100%;
    height: clamp(200px, 26vw, 560px);
    object-fit: cover;
    object-position: 50% var(--focus-y, 50%);
    -webkit-mask-image: linear-gradient(transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(transparent 0, #000 6%, #000 94%, transparent 100%);
}

.band-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 77, .14);
    -webkit-mask-image: linear-gradient(transparent 0, #000 20%, #000 80%, transparent 100%);
    mask-image: linear-gradient(transparent 0, #000 20%, #000 80%, transparent 100%);
    pointer-events: none;
}

/* A panorama in the wide band: the platforms and the boat are whole,
   with open sea and sky around them, so the band is a little taller and
   only sky and water fade at its top and foot. Narrow windows get a
   closer picture (see the page). */
.band-image.pano img {
    height: clamp(220px, 28vw, 720px);
    object-position: 100% var(--focus-y, 50%);
    -webkit-mask-image: linear-gradient(transparent 0, #000 5%, #000 93%, transparent 100%);
    mask-image: linear-gradient(transparent 0, #000 5%, #000 93%, transparent 100%);
}

.band-image.pano::after {
    -webkit-mask-image: linear-gradient(transparent 0, #000 7%, #000 91%, transparent 100%);
    mask-image: linear-gradient(transparent 0, #000 7%, #000 91%, transparent 100%);
}

@media (max-width: 900px) {
    .band-image.pano img {
        height: 75vw;
        object-position: 50% 50%;
    }
}

@media (max-width: 900px) {
    /* stacked, the paragraph sits as close under the heading as it does
       under every other section heading (design feedback 158) */
    .split {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }
}

/* ---- 14. Inner pages: topics, steps, companies, facts ---------- */

/* small line drawings, the same family as the service icons */
.icon {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: var(--navy);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon .accent {
    stroke: var(--red);
    stroke-width: 2.2;
}

/* numbered rows: heading on the left, text on the right */
.topics {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: topic;
}

.topics > li {
    display: grid;
    grid-template-columns: 64px minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 0 clamp(20px, 3vw, 48px);
    padding-block: clamp(18px, 1.8vw, 28px);
    border-top: 1px solid var(--rule);
    counter-increment: topic;
    scroll-margin-top: calc(var(--header) + 16px);
}

.topics > li:last-child {
    border-bottom: 1px solid var(--rule);
}

.topics > li::before {
    content: counter(topic, decimal-leading-zero);
    padding-top: 8px;
    color: var(--red);
    font: 700 14px/1 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
}

.topics h3 {
    font-size: var(--fs-sub);
    line-height: 1;
}

.topics .label {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.topic-body p:last-child {
    margin-bottom: 0;
}

/* short uppercase list with red dashes */
.ticks {
    columns: 2;
    column-gap: 28px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.ticks li {
    padding: 8px 0 8px 22px;
    border-top: 1px solid var(--rule);
    background: linear-gradient(var(--red), var(--red)) left center / 10px 2px no-repeat;
    color: var(--ink);
    font: 700 14px/1.3 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    break-inside: avoid;
}

/* steps joined by a red line */
.flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(16px, 2.4vw, 36px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 32px;
    height: 2px;
    background: var(--red);
}

.flow li {
    position: relative;
}

.js .flow::before {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(.6, 0, .2, 1) .25s;
}

.js .flow.is-visible::before {
    transform: none;
}

.js .flow li {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 170ms + 250ms);
}

.js .flow.is-visible li {
    opacity: 1;
    transform: none;
}

/* the icon sits on the line and hides the piece of line behind it */
.flow .icon {
    box-sizing: content-box;
    padding-right: 14px;
    background: var(--bg);
}

.flow h3 {
    margin: 16px 0 6px;
    font-size: 20px;
}

.flow p {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
}

/* in the row, a title that takes two lines does not push its description
   lower than the others: the steps share their rows, so every description
   starts on the same line */
@media (min-width: 901px) {
    .flow {
        grid-template-rows: auto auto auto;
        row-gap: 0;
    }

    .flow li {
        display: grid;
        grid-row: span 3;
        grid-template-rows: subgrid;
        row-gap: 0;
    }
}

/* The Superior companies. The company chart is drawn as a pipeline: a red
   line leaves the Superior logo and a branch turns down off it to each of
   the companies, each with its own drawing. On narrow windows the line
   leaves the logo downwards instead, and the companies sit one under
   another beside it. */
.companies {
    --line: var(--red);
}

.tree {
    --gap: clamp(12px, 1.5vw, 24px);
    --logo-w: clamp(124px, 10.5vw, 160px);
    --logo-h: calc(var(--logo-w) * 46 / 119);
    --bend: 18px;
    --indent: calc(var(--bend) + clamp(14px, 1.6vw, 24px));
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) repeat(3, minmax(0, 1fr));
    column-gap: var(--gap);
    margin-top: clamp(34px, 3.4vw, 54px);
}

/* whole-pixel columns, so the branch lines are as crisp as the main line */
@supports (width: round(down, 1px, 1px)) {
    .tree {
        --gap: round(nearest, clamp(12px, 1.5vw, 24px), 1px);
        grid-template-columns: minmax(0, 1fr) repeat(3, round(down, calc((100% - 3 * var(--gap)) / 3.9), 1px));
    }
}

/* the main line: out of the logo's right side and across, ending in a ring
   like the red line under the home page's headline */
.tree::before,
.tree::after {
    content: "";
    position: absolute;
}

.tree::before {
    top: calc(var(--logo-h) / 2 - 1.5px);
    left: calc(var(--logo-w) - 2px);
    right: 13px;
    height: 3px;
    background: var(--line);
    transform-origin: left;
}

.tree::after {
    top: calc(var(--logo-h) / 2 - 7px);
    right: 0;
    width: 14px;
    height: 14px;
    border: 3px solid var(--line);
    border-radius: 50%;
}

/* Superior, where the line starts */
.tree-root {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: clamp(22px, 2vw, 30px);
}

.tree-root img {
    position: relative;
    z-index: 1;
    width: var(--logo-w);
    height: auto;
    margin-bottom: clamp(22px, 2.2vw, 32px);
}

.tree-root h3 {
    font-size: var(--fs-mid);
    line-height: 1;
}

.tree-est {
    margin: 7px 0 0;
    color: var(--red);
    font: italic 500 clamp(22px, 1.8vw, 27px)/1.1 var(--serif);
    letter-spacing: -.01em;
}

.tree-root p:not(.tree-est) {
    max-width: 21em;
    margin: clamp(14px, 1.3vw, 18px) 0 18px;
}

/* the companies, one on each branch */
.tree-branches {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: subgrid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tree-branches li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--logo-h) / 2 + clamp(24px, 2.4vw, 36px)) 0 clamp(22px, 2vw, 30px) var(--indent);
}

/* the branch: it leaves the main line in a bend, runs down beside the
   company and ends in a ring */
.tree-branches li::before,
.tree-branches li::after {
    content: "";
    position: absolute;
}

.tree-branches li::before {
    top: calc(var(--logo-h) / 2 - 1.5px);
    bottom: 12px;
    left: 0;
    width: var(--bend);
    border: solid var(--line);
    border-width: 2px 2px 0 0;
    border-top-right-radius: var(--bend);
}

.tree-branches li::after {
    bottom: 0;
    left: calc(var(--bend) - 7px);
    width: 12px;
    height: 12px;
    border: 2px solid var(--line);
    border-radius: 50%;
}

/* each company's drawing, in the manner of the case-study drawings. All
   three are drawn to one size and stand on the same line. */
.tree-art {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-bottom: clamp(16px, 1.5vw, 22px);
    overflow: visible;
}

.tree-art path,
.tree-art circle {
    fill: none;
    stroke: var(--navy);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tree-art .grid {
    stroke: rgba(17, 27, 77, .1);
    stroke-width: 1;
}

.tree-art .dim {
    stroke: rgba(17, 27, 77, .4);
}

.tree-art .accent {
    stroke: var(--line);
    stroke-width: 2.4;
}

.tree-art .fill {
    fill: var(--line);
}

.tree-branches h3 {
    margin-bottom: 12px;
    /* the sub-heading size, but smaller on phones so a long company name stays on one line */
    font-size: clamp(18px, 1.5vw, 23px);
}

.tree-branches p {
    max-width: 24em;
    margin: 0 0 18px;
}

/* the four links share one line at the foot of the columns */
.tree .more {
    margin-top: auto;
}

/* the line runs out of the logo, each branch turns down in turn and its
   company arrives with it, every time the chart scrolls into view */
.js .tree[data-reveal] {
    opacity: 1;
    transform: none;
}

.js .tree-root,
.js .tree-branches li > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
}

.tree-branches li:nth-child(2) { --n: 1; }
.tree-branches li:nth-child(3) { --n: 2; }

.js .tree-branches li > * {
    transition-delay: calc(.3s + var(--n, 0) * .12s);
}

.js .tree::before {
    transform: scaleX(0);
    transition: transform .6s cubic-bezier(.4, 0, .2, 1) .1s;
}

.js .tree::after,
.js .tree-branches li::after {
    transform: scale(0);
    transition: transform .25s cubic-bezier(.3, 1.4, .5, 1) .7s;
}

.js .tree-branches li::before {
    clip-path: inset(0 0 100% 0);
    transition: clip-path .45s cubic-bezier(.4, 0, .2, 1);
    transition-delay: calc(.25s + var(--n, 0) * .12s);
}

.js .tree-branches li::after {
    transition-delay: calc(.65s + var(--n, 0) * .12s);
}

.js .tree.is-visible::before,
.js .tree.is-visible::after,
.js .tree.is-visible .tree-root,
.js .tree.is-visible .tree-branches li::after,
.js .tree.is-visible .tree-branches li > * {
    opacity: 1;
    transform: none;
}

.js .tree.is-visible .tree-branches li::before {
    clip-path: inset(0);
}

/* the section's opening sentence sits to the right of its heading, over
   the last two companies and starting where their text starts */
@media (min-width: 1101px) {
    .companies .section-head {
        --gap: clamp(12px, 1.5vw, 24px);
        display: grid;
        grid-template-columns: minmax(0, .9fr) repeat(3, minmax(0, 1fr));
        column-gap: var(--gap);
        align-items: end;
        max-width: none;
    }

    .companies .section-head .label {
        grid-column: 1 / -1;
    }

    .companies .section-head h2 {
        grid-column: 1 / 3;
    }

    .companies .section-head p:not(.label) {
        grid-column: 3 / -1;
        margin: 0 0 4px;
        padding-left: calc(18px + clamp(14px, 1.6vw, 24px));
    }
}

/* on short laptop windows the gaps and drawings are a little smaller, so
   the whole chart fits in the window */
@media (min-width: 961px) and (max-height: 800px) {
    .companies {
        padding-block: 30px 40px;
    }

    .companies .tree {
        margin-top: 26px;
    }

    .companies .tree-art {
        max-width: 220px;
        margin-bottom: 14px;
    }

    .companies .tree-root,
    .companies .tree-branches li {
        padding-bottom: 20px;
    }
}

@media (max-width: 960px) {
    .tree {
        --art: clamp(190px, 28vw, 250px);
        --indent: clamp(26px, 5vw, 40px);
        display: block;
    }

    /* the line leaves the logo's lower left corner and runs down the left
       side to a ring; a short line and a dot lead across to each company */
    .tree::before {
        top: calc(var(--logo-h) * .66);
        bottom: 13px;
        left: 0;
        right: auto;
        width: 3px;
        height: auto;
        transform-origin: top;
    }

    .tree::after {
        top: auto;
        bottom: 0;
        left: -5.5px;
        right: auto;
    }

    .tree-root {
        padding: 0 0 6px var(--indent);
    }

    .tree-root img {
        margin-left: calc(-1 * var(--indent));
    }

    .tree-root p:not(.tree-est) {
        max-width: 34em;
    }

    .tree .more {
        margin-top: 0;
    }

    .tree-branches {
        display: block;
    }

    .tree-branches li {
        display: grid;
        grid-template: auto auto 1fr / var(--art) minmax(0, 1fr);
        column-gap: clamp(22px, 4vw, 40px);
        justify-items: start;
        padding: 34px 0 6px var(--indent);
    }

    .tree-branches li:last-child {
        padding-bottom: 36px;
    }

    .tree-art {
        grid-row: 1 / -1;
        margin-bottom: 0;
    }

    .tree-branches li > :not(.tree-art) {
        grid-column: 2;
    }

    .tree-branches li::before {
        top: calc(34px + var(--art) / 4 - 1px);
        bottom: auto;
        left: 0;
        width: calc(var(--indent) - 8px);
        height: 2px;
        border: 0;
        border-radius: 0;
        background: var(--line);
        transform-origin: left;
    }

    .tree-branches li::after {
        top: calc(34px + var(--art) / 4 - 5px);
        bottom: auto;
        left: calc(var(--indent) - 12px);
        width: 10px;
        height: 10px;
        border: 0;
        background: var(--line);
    }

    .js .tree::before {
        transform: scaleY(0);
        transition: transform .7s cubic-bezier(.4, 0, .2, 1) .1s;
    }

    .js .tree::after {
        transition-delay: .8s;
    }

    .js .tree-branches li::before {
        clip-path: none;
        transform: scaleX(0);
        transition: transform .2s ease;
        transition-delay: calc(.25s + var(--n, 0) * .14s);
    }

    .js .tree.is-visible .tree-branches li::before {
        transform: none;
    }

    .js .tree-branches li::after {
        transition-delay: calc(.35s + var(--n, 0) * .14s);
    }
}

/* below this the drawing would be too small beside the text, so it sits above it */
@media (max-width: 700px) {
    .tree {
        --art: min(100%, 260px);
    }

    .tree-branches li {
        display: flex;
    }

    .tree-art {
        width: var(--art);
        margin-bottom: 16px;
    }

    .tree-branches li::before {
        top: 98px;
    }

    .tree-branches li::after {
        top: 94px;
    }
}

/* Key partners: the Walter partnership, shown as the route production
   takes. A photo of Walter's platform is on the left. A red line leaves
   its deck and carries natural gas across to Superior; a branch turns
   down off it and carries crude oil to Vision Energy; both lines run on
   to market. The three companies stand side by side and the lines are
   named for what flows in them, so it reads as who does what, not who
   owns whom.
   The photo is a wide panel that runs in from the left edge of the
   window, like the photo beside "How we work" on the home page, and
   dissolves into the page on its other sides, over open water. The
   script (see "Key partners" in site.js) works out where the deck falls
   and hands it to the lines as --y0 and --start-x.
   On narrow windows the photo is on top, whole, and the line runs down
   the page from under it, with the two companies beside it. */
.walter {
    /* the width of the photo's column */
    --art-w: clamp(300px, 34vw, 560px);
    /* the stretch of line between the photo's column and the companies */
    --lead: clamp(96px, 11vw, 170px);
    /* the distance from the window edge to the site's text column */
    --edge: max(var(--gutter), (100vw - var(--frame)) / 2);
}

.ally {
    --line: var(--red);
    --photo-h: min(620px, calc((var(--edge) + var(--art-w)) * .72));
    /* how far down the photo the red line leaves the platform's deck;
       the script sets the exact place */
    --y0: calc(var(--photo-h) * .5);
    /* how far down the second company the crude oil line runs */
    --y2: 46px;
    /* where the crude oil branch turns down */
    --bx: calc(var(--lead) * .46);
    --r: 18px;
    /* room at the right for the market each line ends at */
    --tail: clamp(130px, 13vw, 190px);
    position: relative;
    display: grid;
    grid-template-columns: var(--art-w) minmax(0, 1fr);
    margin-top: clamp(30px, 3vw, 48px);
}

.ally-source {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ally-photo {
    position: relative;
    display: block;
    width: calc(100% + var(--edge));
    height: var(--photo-h);
    margin: 0 0 clamp(18px, 1.8vw, 26px) calc(-1 * var(--edge));
}

.ally-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0 50%;
    -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%), linear-gradient(transparent 0, #000 9%, #000 85%, transparent 97%);
    mask-image: linear-gradient(90deg, #000 72%, transparent 100%), linear-gradient(transparent 0, #000 9%, #000 85%, transparent 97%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

/* the same light navy wash as the other photos */
.ally-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 77, .14);
    -webkit-mask-image: linear-gradient(90deg, #000 68%, transparent 96%), linear-gradient(transparent 0, #000 11%, #000 83%, transparent 95%);
    mask-image: linear-gradient(90deg, #000 68%, transparent 96%), linear-gradient(transparent 0, #000 11%, #000 83%, transparent 95%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    pointer-events: none;
}

/* the first stretch of the line, from a ring on the platform's deck to
   the photo's edge */
.ally-start {
    position: absolute;
    z-index: 1;
    top: calc(var(--y0) - 1.5px);
    left: var(--start-x, 45%);
    right: 0;
    height: 3px;
    background: var(--line);
}

.ally-start::before {
    content: "";
    position: absolute;
    top: -6.5px;
    left: -8px;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border: 3px solid var(--line);
    border-radius: 50%;
    background: var(--white);
}

/* wide windows: a longer, eased fade over the water */
@media (min-width: 1400px) {
    .ally-photo img {
        -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 97%), linear-gradient(transparent 0, #000 9%, #000 85%, transparent 97%);
        mask-image: linear-gradient(90deg, #000 62%, transparent 97%), linear-gradient(transparent 0, #000 9%, #000 85%, transparent 97%);
    }

    .ally-photo::after {
        -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 93%), linear-gradient(transparent 0, #000 11%, #000 83%, transparent 95%);
        mask-image: linear-gradient(90deg, #000 58%, transparent 93%), linear-gradient(transparent 0, #000 11%, #000 83%, transparent 95%);
    }
}

/* very wide windows: the heading and its paragraph stand beside the
   photo, above the two companies */
@media (min-width: 1800px) {
    .walter > .frame {
        position: relative;
    }

    .walter .section-head {
        position: absolute;
        z-index: 1;
        top: 0;
        left: calc(var(--art-w) + var(--lead));
        right: 0;
        margin: 0;
    }

    .walter .section-head > p:not(.label) {
        max-width: 30em;
    }

    .ally {
        margin-top: 0;
    }
}

.ally-source h3 {
    font-size: var(--fs-mid);
    line-height: 1;
}

/* the link under it sits as far below the text as the links of the two
   companies on the lines do */
.ally-source p {
    max-width: 16em;
    margin: clamp(12px, 1.2vw, 16px) 0 18px;
}

.ally-source .more {
    white-space: nowrap;
}

.ally-lines {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* one company on its line: the line runs along the top, the company's
   name and text hang under it and the market it reaches is at its end */
.ally-lines li {
    --at: var(--y0);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--at) + 22px) var(--tail) clamp(30px, 3vw, 46px) var(--lead);
}

.ally-lines li:last-child {
    --at: var(--y2);
    padding-bottom: 0;
}

.ally-lines i {
    position: absolute;
}

.ally-pipe {
    top: calc(var(--at) - 1.5px);
    left: 0;
    right: 92px;
    height: 3px;
    background: var(--line);
}

.ally-lines li:last-child .ally-pipe {
    left: var(--lead);
}

/* the crude oil branch: a bend down off the gas line, then down and
   across to the second company */
.ally-bend {
    top: calc(var(--y0) - 1.5px);
    left: calc(var(--bx) - var(--r));
    width: var(--r);
    height: var(--r);
    border: solid var(--line);
    border-width: 3px 3px 0 0;
    border-top-right-radius: var(--r);
}

.ally-run {
    top: calc(var(--y0) - 1.5px + var(--r));
    bottom: calc(-1 * var(--y2) - 1.5px);
    left: calc(var(--bx) - 3px);
    width: calc(var(--lead) - var(--bx) + 3px);
    border: solid var(--line);
    border-width: 0 0 3px 3px;
    border-bottom-left-radius: var(--r);
}

/* a ring on the line where each company takes the production on */
.ally-ring {
    top: calc(var(--at) - 8px);
    left: var(--lead);
    width: 16px;
    height: 16px;
    border: 3px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
}

/* what flows in the line, written above it */
.ally-lines .label {
    position: absolute;
    top: calc(var(--at) - 34px);
    left: calc(var(--lead) + 26px);
    margin: 0;
}

.ally-lines h3 {
    margin-bottom: 12px;
    font-size: var(--fs-sub);
}

.ally-lines li > p:not(.label) {
    max-width: 26em;
    margin: 0 0 18px;
}

/* the market at the end of each line: an arrowhead, a drawing and a name */
.ally-end {
    position: absolute;
    top: calc(var(--at) - 32px);
    right: 0;
    width: 64px;
}

.ally-end::before {
    content: "";
    position: absolute;
    top: 26px;
    left: -30px;
    width: 12px;
    height: 12px;
    border: solid var(--line);
    border-width: 3px 3px 0 0;
    transform: rotate(45deg);
}

.ally-end p {
    margin: 8px 0 0 -80px;
    color: var(--muted);
    font: 700 14px/1.3 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-align: right;
    text-transform: uppercase;
    white-space: nowrap;
}

.ally-market {
    display: none;
}

/* from where the line starts to the bottom of the drawing: the script
   draws the line once this is well up the window */
.ally-cue {
    position: absolute;
    top: var(--y0);
    bottom: 0;
    left: 0;
    width: 1px;
    pointer-events: none;
}

/* the photo and Walter fade in as the drawing scrolls into view; the gas
   line runs out of the platform, the crude oil branch turns down and each
   company arrives with its line once the line's start is well in view
   (is-drawn), every time */
.js .ally[data-reveal] {
    opacity: 1;
    transform: none;
}

.js .ally-source > *,
.js .ally-lines li > :not(i),
.js .ally-market {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
}

.js .ally-lines li > :not(i) {
    transition-delay: .45s;
}

.js .ally-lines li:last-child > :not(i) {
    transition-delay: .75s;
}

.js .ally-pipe {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1) .15s;
}

.js .ally-lines li:last-child .ally-pipe {
    transition-delay: .7s;
}

.js .ally-bend,
.js .ally-run {
    clip-path: inset(0 0 100% 0);
    transition: clip-path .16s linear .3s;
}

.js .ally-run {
    transition: clip-path .3s cubic-bezier(.4, 0, .2, 1) .44s;
}

.js .ally-ring {
    transform: scale(0);
    transition: transform .25s cubic-bezier(.3, 1.4, .5, 1) .4s;
}

.js .ally-lines li:last-child .ally-ring {
    transition-delay: .72s;
}

.js .ally.is-visible .ally-source > *,
.js .ally.is-drawn .ally-lines li > :not(i),
.js .ally.is-drawn .ally-market {
    opacity: 1;
    transform: none;
}

.js .ally.is-drawn .ally-pipe,
.js .ally.is-drawn .ally-ring {
    transform: none;
}

.js .ally.is-drawn .ally-bend,
.js .ally.is-drawn .ally-run {
    clip-path: inset(0 0 -4px 0);
}

@media (max-width: 900px) {
    .ally {
        --photo-h: 75vw;
        --y0: calc(var(--photo-h) + 14px);
        --indent: clamp(26px, 5vw, 40px);
        display: block;
        padding: 0 0 46px var(--indent);
    }

    /* the line starts under the photo, at the left, and runs down the
       left to an arrowhead */
    .ally::before,
    .ally::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .ally::before {
        top: calc(var(--y0) - 1.5px);
        bottom: 4px;
        width: var(--indent);
        border: solid var(--line);
        border-width: 3px 0 0 3px;
        border-top-left-radius: var(--r);
    }

    .ally::after {
        bottom: 3px;
        left: -4.5px;
        width: 12px;
        height: 12px;
        border: solid var(--line);
        border-width: 0 3px 3px 0;
        transform: rotate(45deg);
    }

    /* the photo as it was taken, as wide as the window */
    .ally-photo {
        width: 100vw;
        margin-left: calc(-1 * var(--gutter) - var(--indent));
    }

    .ally-photo img {
        object-position: 50% 50%;
        -webkit-mask-image: linear-gradient(transparent 0, #000 6%, #000 92%, transparent 100%);
        mask-image: linear-gradient(transparent 0, #000 6%, #000 92%, transparent 100%);
    }

    .ally-photo::after {
        -webkit-mask-image: linear-gradient(transparent 0, #000 8%, #000 90%, transparent 98%);
        mask-image: linear-gradient(transparent 0, #000 8%, #000 90%, transparent 98%);
    }

    .ally-start {
        display: none;
    }

    .ally-source {
        padding-bottom: 36px;
    }

    .ally-source p {
        max-width: 26em;
    }

    .ally-lines li,
    .ally-lines li:last-child {
        padding: 0 0 34px;
    }

    .ally-pipe,
    .ally-bend,
    .ally-run,
    .ally-end {
        display: none;
    }

    .ally-ring {
        top: 1px;
        left: calc(-1 * var(--indent) - 6.5px);
    }

    .ally-lines .label {
        position: static;
        margin-bottom: 10px;
    }

    /* where the line ends */
    .ally-market {
        display: block;
        position: absolute;
        bottom: 0;
        left: 22px;
        margin: 0;
        color: var(--muted);
        font: 700 14px/1.3 var(--sans);
        font-stretch: var(--w-label);
        letter-spacing: var(--track-label);
        text-transform: uppercase;
    }

    .js .ally::before {
        clip-path: inset(0 0 100% 0);
        transition: clip-path .7s cubic-bezier(.4, 0, .2, 1) .15s;
    }

    .js .ally.is-drawn::before {
        clip-path: inset(0);
    }

    .js .ally::after {
        opacity: 0;
        transition: opacity .2s ease .85s;
    }

    .js .ally.is-drawn::after {
        opacity: 1;
    }

    .js .ally-lines li > :not(i) {
        transition-delay: .35s;
    }

    .js .ally-lines li:last-child > :not(i) {
        transition-delay: .5s;
    }

    .js .ally-ring {
        transition-delay: .4s;
    }

    .js .ally-lines li:last-child .ally-ring {
        transition-delay: .55s;
    }

    .js .ally-market {
        transition-delay: .8s;
    }
}

/* a row of large figures */
.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    border-block: 1px solid var(--rule);
}

.facts div {
    padding: 22px clamp(16px, 2.4vw, 36px);
}

.facts div:first-child {
    padding-left: 0;
}

.facts div + div {
    border-left: 1px solid var(--rule);
}

.facts dt {
    color: var(--ink);
    font: 800 clamp(30px, 2.6vw, 40px)/1 var(--sans);
    font-stretch: 78%;
    letter-spacing: -.04em;
}

.facts dd {
    margin: 12px 0 0;
    color: var(--muted);
    font: 600 14px/1.5 var(--sans);
    font-stretch: 86%;
    letter-spacing: .16em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .topics > li {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .topic-body {
        grid-column: 2;
        margin-top: 18px;
    }

    .flow {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .flow::before {
        left: 31px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .js .flow::before {
        transform: scaleY(0);
        transform-origin: top;
    }

    /* the icon spans the title and the description; the description
       always sits straight under its title, however short it is */
    .flow li {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        align-items: start;
        gap: 0 22px;
        padding-bottom: 34px;
    }

    /* the line stops at the last step */
    .flow li:last-child {
        padding-bottom: 0;
        background: var(--bg);
    }

    .flow .icon {
        grid-row: span 2;
        padding: 8px 0;
    }

    .flow h3 {
        margin-top: 8px;
    }

    .facts {
        grid-template-columns: 1fr 1fr;
    }

    .facts div:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .facts div:nth-child(n + 3) {
        border-top: 1px solid var(--rule);
    }
}

@media (max-width: 520px) {
    .ticks {
        columns: 1;
    }
}

/* ---- 15. Case studies ---------------------------------------- */

.study {
    display: grid;
    /* the drawing's card is the same width in every story */
    grid-template-columns: 430px minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
    padding-block: clamp(30px, 3vw, 46px);
    border-top: 1px solid var(--rule);
}

.study:first-child {
    border-top: 0;
    padding-top: 0;
}

.study-figure .case .label {
    color: rgba(255, 255, 255, .7);
}

.study:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 430px;
}

.study:nth-child(even) .study-figure {
    order: 2;
}

/* the drawing and the headline number on a navy card */
.study-figure {
    padding: clamp(20px, 2.2vw, 32px);
    background: var(--navy);
    color: var(--white);
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}

.study-figure .case {
    padding-top: 0;
}

.study h2 {
    margin-bottom: 14px;
    font-size: var(--fs-mid);
    letter-spacing: var(--track-sub);
}

/* a label, so it keeps its capitals */
.study h3 {
    margin: 16px 0 5px;
    color: var(--red);
    font-size: 14px;
    font-stretch: var(--w-label);
    font-weight: 700;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
}

.study p {
    max-width: 34em;
    margin: 0;
}

@media (max-width: 900px) {
    .study,
    .study:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .study:nth-child(even) .study-figure {
        order: 0;
    }

    /* the story runs the full width under its card, so no side is left empty */
    .study p {
        max-width: none;
    }
}

/* ---- 16. Team -------------------------------------------------- */

/* One row across the full width of the text on wide windows: five to a
   row while there are five people or fewer, six when there are more
   (design feedback 158). Three to a row on tablets and two on phones. A
   row that is not full sits in the middle, so the grid looks balanced
   whatever the number of people. */
.people {
    --gap: clamp(16px, 2vw, 28px);
    --per-row: 6;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.person {
    flex: 0 0 calc((100% - (var(--per-row) - 1) * var(--gap)) / var(--per-row));
}

.people:not(:has(> .person:nth-child(6))) {
    --per-row: 5;
}

@media (max-width: 900px) {
    .people,
    .people:not(:has(> .person:nth-child(6))) {
        --per-row: 3;
    }
}

@media (max-width: 700px) {
    .people,
    .people:not(:has(> .person:nth-child(6))) {
        --per-row: 2;
    }
}

/* shows the photo, or the person's initials until a photo is added */
.person-photo {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    border-bottom: 4px solid var(--red);
    background: var(--navy);
    color: var(--white);
    font: italic 500 clamp(34px, 3.2vw, 46px)/1 var(--serif);
    letter-spacing: .02em;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person h3 {
    margin: 12px 0 3px;
    /* the photo above has a fixed width, so names keep the sub-heading's smallest size */
    font-size: 20px;
}

.person p {
    margin: 0;
    color: var(--muted);
    font: 700 14px/1.5 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
}


/* ---- 17. Contact form ------------------------------------------ */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field.wide,
.form .wide {
    grid-column: 1 / -1;
}

.field label {
    color: var(--ink);
    font: 700 14px/1.3 var(--sans);
    font-stretch: var(--w-label);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
}

.field label span {
    color: var(--muted);
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: none;
}

/* fields are tinted panels with a rule underneath; the rule turns red in use */
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 2px solid #b9b5a9;
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 18px/1.4 var(--serif);
    /* the 1ms delay stops a Chrome flash; see .button */
    transition: border-color .25s, background .25s 1ms, box-shadow .25s;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-bottom-color: var(--navy);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-bottom-color: var(--red);
    background: var(--white);
    box-shadow: 0 14px 34px rgba(17, 27, 77, .1);
    outline: 2px solid var(--navy);
    outline-offset: 0;
}

.field:focus-within label {
    color: var(--red);
}

.field label {
    transition: color .25s;
}

/* a field people never see; only automated spam fills it in */
.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

.form-foot button {
    cursor: pointer;
}

.form-foot button[disabled] {
    opacity: .6;
    cursor: progress;
}

.form-note {
    max-width: 26em;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.4;
}

.notice {
    margin: 0 0 28px;
    padding: 18px 22px;
    border-left: 4px solid;
    font: 600 17px/1.45 var(--sans);
    font-stretch: var(--w-label);
}

.notice.ok {
    border-color: #1c7c4a;
    background: #e8f4ec;
    color: #134f30;
}

.notice.bad {
    border-color: var(--red);
    background: #fdeceb;
    color: #7d0c11;
}

.notice {
    scroll-margin-top: calc(var(--header) + 24px);
}

.notice.wait {
    border-color: var(--muted);
    background: var(--paper);
    color: var(--ink);
}

.notice[hidden] {
    display: none;
}

/* shown without JavaScript when the address ends in #sent or #failed */
.notice.on-target {
    display: none;
}

.notice.on-target:target {
    display: block;
}

/* phone, fax and address on a navy card */
.details {
    padding: clamp(24px, 2.4vw, 34px);
    background: var(--navy);
    color: rgba(255, 255, 255, .88);
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}

.details h2 {
    margin: 0 0 12px;
    color: #ff5a60;
    font-size: 14px;
    font-stretch: var(--w-label);
    font-weight: 700;
    letter-spacing: var(--track-label);
    line-height: 1.3;
}

.details address,
.details p {
    margin: 0 0 22px;
    color: inherit;
    font-style: normal;
}

.details p:last-child {
    margin-bottom: 0;
}

.details .big {
    display: inline-block;
    color: var(--white);
    font: 800 var(--fs-mid)/1.1 var(--sans);
    font-stretch: var(--w-head);
    letter-spacing: var(--track-sub);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: border-color .3s;
}

.details .big:hover {
    border-bottom-color: var(--red);
}

/* text links on navy: white words on the red rule, turning the lighter
   red the footer's links turn */
:is(.results, .details) .more {
    color: var(--white);
}

:is(.results, .details) .more:hover {
    color: #ff5a60;
}

/* under the form, on tablets, the card runs the full width: Call on its
   left, the office on its right, so it is not mostly empty. The office
   lines up with the form's second column above it (the card is as wide
   as the form, and 10px is half the gap between the form's columns). The
   card holds, in order: the Call label, the number, the Office label,
   the address and the directions link. */
@media (min-width: 561px) and (max-width: 900px) {
    .details {
        display: grid;
        grid-template-columns: calc(50% + 10px) minmax(0, 1fr);
        align-items: start;
    }

    .details > :nth-child(1) {
        grid-area: 1 / 1;
    }

    .details > :nth-child(2) {
        grid-area: 2 / 1;
    }

    .details > :nth-child(3) {
        grid-area: 1 / 2;
    }

    .details > :nth-child(4) {
        grid-area: 2 / 2;
        margin-bottom: 0;
    }

    .details > :nth-child(5) {
        grid-area: 3 / 2;
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .form {
        grid-template-columns: 1fr;
    }
}

/* ---- 18. Link lists -------------------------------------------- */

.link-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px clamp(28px, 4vw, 64px);
}

.link-groups h2 {
    margin-bottom: 10px;
    font-size: var(--fs-sub);
    letter-spacing: var(--track-sub);
}

.link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-list li {
    border-top: 1px solid var(--rule);
}

.link-list a {
    display: block;
    padding: 10px 28px 10px 0;
    background: none;
    color: var(--ink);
    font: 700 17px/1.25 var(--sans);
    font-stretch: var(--w-label);
    text-decoration: none;
    transition: color .3s;
}

/* the icon belongs to the title's last word, so it never ends up alone on
   a line of its own (design feedback 158) */
.link-list a strong .tail {
    white-space: nowrap;
}

.link-list a strong .tail::after {
    content: "";
    display: inline-block;
    width: .88em;
    height: .88em;
    margin-left: .3em;
    vertical-align: -.1em;
    background: currentColor;
    -webkit-mask: var(--out) center / contain no-repeat;
    mask: var(--out) center / contain no-repeat;
}

.link-list a:hover {
    color: var(--red);
}

.link-list a > span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font: 400 17px/1.35 var(--serif);
}

@media (max-width: 900px) {
    .link-groups {
        grid-template-columns: 1fr;
    }
}

/* ---- 19. Reduced motion --------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    /* a looping animation would flicker at near-zero duration, so stop it */
    .hero-media :is(img, video, canvas) {
        animation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
}

/* a word that must not break at its hyphen, such as "co-founder" */
.keep {
    white-space: nowrap;
}

/* ---- 20. Print ------------------------------------------------ */

@media print {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .site-header {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        overflow: hidden !important;
    }

    .site-header::after,
    .skip,
    .menu-toggle,
    .site-nav,
    .hero-water,
    .hero-water-early,
    .cta-water,
    .schem-cue,
    .schem .hatch {
        display: none !important;
    }

    .js [data-reveal],
    .js .hero h1 > span,
    .js .page-head h1 > span,
    .js .flow li,
    .js .stmt-slices .ss-band span,
    .js .hero-line circle,
    .reasons .redline circle,
    .js .schem .draw.dash,
    .js .schem .draw.dot,
    .js .schem .pop,
    .js .region-map .map-names > *,
    .js .region-map .map-degs,
    .js .tree-root,
    .js .tree-branches li > *,
    .js .ally-source > *,
    .js .ally-lines li > :not(i),
    .js .ally-market,
    .js .ally-ring,
    .js .ally::after {
        opacity: 1 !important;
        transform: none !important;
    }

    .js .hero-line path,
    .reasons .redline path,
    .js .schem .draw,
    .js .schem .bar {
        stroke-dashoffset: 0 !important;
    }

    .reasons.has-redline .reasons-body .label::before {
        visibility: hidden;
    }

    .js .flow::before,
    .js .tree::before,
    .js .tree::after,
    .js .tree-branches li::after {
        transform: none !important;
    }

    .js .tree-branches li::before,
    .js .ally::before,
    .js .ally-pipe,
    .js .ally-bend,
    .js .ally-run {
        clip-path: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero,
    .results,
    .study-figure,
    .details,
    .person-photo,
    .cta,
    .site-header,
    .site-footer {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .hero.compact,
    .cta,
    .hero-services .service,
    .plate,
    .reasons,
    .region,
    .case,
    .study,
    .person,
    .topics > li,
    .flow > li,
    .details,
    .link-groups > div {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    h1,
    h2,
    h3 {
        break-after: avoid;
        page-break-after: avoid;
    }
}

@media print and (max-width: 1000px) {
    .reasons .redline {
        display: none !important;
    }

    .reasons.has-redline .reasons-body .label::before {
        visibility: visible;
    }
}
