/* Pages carried over from the old site (templates/page/content.html.twig).
   Same world as the homepage: sky gradient hero, condensed headlines, large
   text for readers aged 40 to 50, photos that open in the lightbox. */

.c-page {
    --c-gap: clamp(2.5rem, 1.6rem + 3.5vw, 5rem);
    padding-bottom: var(--c-gap);
}

/* Hero */

.c-hero {
    position: relative;
    padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) var(--c-gap);
    background:
        radial-gradient(50rem 26rem at 85% 20%, rgba(18, 195, 206, 0.13), transparent 70%),
        linear-gradient(180deg, var(--sky) 0%, #f5f9fd 65%, var(--white) 100%);
}

.c-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 46rem);
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
}

.c-hero--media .c-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.c-hero h1 {
    color: var(--blue);
    font-size: clamp(2.5rem, 1.5rem + 3vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.012em;
    text-wrap: balance;
}

.c-hero--post h1 {
    font-size: clamp(2.25rem, 1.5rem + 2.2vw, 3.5rem);
}

.c-hero-text {
    margin-top: 1.25rem;
    color: var(--ink-soft);
    font-size: var(--step-1);
    line-height: 1.6;
}

.c-hero-text p + p {
    margin-top: 0.9em;
}

.c-hero .actions {
    margin-top: 1.75rem;
}

.c-hero-text .c-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.5rem;
    margin-top: 1.75rem;
}

.c-hero-media {
    margin: 0;
}

.c-hero-media .c-photo {
    aspect-ratio: var(--ratio, 4 / 3);
    box-shadow: 0 30px 60px -34px rgba(13, 20, 51, 0.45);
}

/* A header without a photo gets the Frankfurt skyline of the homepage as
   a faint silhouette in its lower right corner, rising once on load. */

.c-hero:not(.c-hero--media),
.form-hero {
    position: relative;
    overflow: hidden;
}

/* The skyline sits 2% past the right edge; clip it so it never adds a
   sideways scroll, also not while it rises in. */
.c-hero:not(.c-hero--media) {
    overflow-x: clip;
}

.c-hero:not(.c-hero--media)::after,
.form-hero::after {
    content: "";
    position: absolute;
    right: -2%;
    bottom: 0;
    width: min(54rem, 62%);
    aspect-ratio: 2520 / 1280;
    background: linear-gradient(100deg, var(--blue) 20%, var(--cyan) 90%);
    opacity: 0.1;
    -webkit-mask: url("../images/frankfurt-skyline-EI0R-bq.svg") bottom right / contain no-repeat;
    mask: url("../images/frankfurt-skyline-EI0R-bq.svg") bottom right / contain no-repeat;
    pointer-events: none;
    animation: c-sky-rise 1.1s var(--ease-out) both;
}

.c-hero:not(.c-hero--media) > .wrap {
    position: relative;
    z-index: 1;
}

@keyframes c-sky-rise {
    from { transform: translateY(12%); opacity: 0; }
}

@media (max-width: 40rem) {
    .c-hero:not(.c-hero--media)::after {
        width: 100%;
        right: 0;
        opacity: 0.1;
    }
}

/* Plans: three open columns that share their rows (subgrid), so names,
   prices, lists and buttons line up. The price is the large figure. */

.c-plans {
    padding-top: var(--c-gap);
}

.c-plans-head {
    max-width: 46rem;
}

.c-plans-head .c-text {
    margin-top: 1rem;
}

/* Each plan is one open column: name, one line, the price, the button,
   then what the plan includes. The featured plan has the thick cyan rule. */
.c-plan-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    gap: 0 clamp(2rem, 4vw, 4.5rem);
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    padding: 0;
    list-style: none;
}

.c-plan {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    align-content: start;
    padding-top: 1.25rem;
    border-top: 2px solid var(--navy);
}

.c-plan.is-featured {
    border-top: 6px solid var(--cyan);
    padding-top: calc(1.25rem - 4px);
}

.c-plan-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
}

.c-plan h3 {
    color: var(--blue);
    font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
    line-height: 1.04;
}

.c-plan-badge {
    color: #0b8f98;
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.c-plan-text {
    margin-top: 0.6rem;
    color: var(--ink-soft);
    font-size: 1.0625rem;
    line-height: 1.5;
}

.c-plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.6rem;
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--navy);
}

.c-plan-price strong {
    font-size: clamp(3.5rem, 2rem + 4vw, 5.5rem);
    font-stretch: var(--condensed);
    font-weight: 850;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.c-plan-price span {
    color: var(--ink-soft);
    font-size: 1.0625rem;
    font-weight: 600;
}

.c-plan-price small {
    flex-basis: 100%;
    margin-top: 0.5rem;
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.c-plan .button {
    justify-self: stretch;
    justify-content: center;
    margin-top: 1.5rem;
}

.c-plan-items {
    margin: 2rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--rule);
    list-style: none;
    font-size: 1.0625rem;
    line-height: 1.5;
}

.c-plan-items li {
    position: relative;
    padding-left: 1.25rem;
}

.c-plan-items li + li {
    margin-top: 0.6rem;
}

.c-plan-items li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 0.6rem;
    height: 2px;
    background: var(--cyan);
}

.c-plans-note,
.c-plans-note p {
    max-width: none;
}

.c-plans-note {
    margin-top: clamp(2rem, 4vw, 3rem);
    color: var(--ink-soft);
    font-size: 1.125rem;
}

@media (max-width: 64rem) {
    .c-plan-list {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        gap: 3.5rem;
    }

    .c-plan {
        grid-row: auto;
        grid-template-rows: none;
    }
}

/* Contact form: next to the page title on /contact/, below the legal
   text on /legal/. The form sits on white so its fields read clearly on
   the sky gradient. */

.c-hero--form .c-hero-grid,
.c-contact-grid {
    align-items: start;
}

.c-contact {
    padding-top: var(--c-gap);
}

/* The team photo under the contact options on /contact/. */
.c-hero-team {
    margin: 2.25rem 0 0;
}

.c-hero-team .c-photo {
    aspect-ratio: var(--ratio, 5 / 3);
    box-shadow: 0 30px 60px -34px rgba(13, 20, 51, 0.45);
}

.c-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 4.5rem);
}

.c-contact-copy .c-title + .c-text {
    margin-top: 1.25rem;
}

.c-hero-form {
    padding: clamp(1.25rem, 2.5vw, 2.25rem);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 30px 60px -34px rgba(13, 20, 51, 0.35);
}

/* Breadcrumb */

/* One quiet line at the top left of the page, above the hero and the
   stage. The current page's title gets cut with an ellipsis instead of
   wrapping. */
.c-crumbs {
    order: -2;
    background: var(--sky);
}

/* The sky tint only joins the crumbs to a hero or stage below; a page
   without one (Engage) keeps a white line. */
.c-page:not(:has(> .c-hero, > .c-stage)) > .c-crumbs {
    background: none;
}

.c-crumbs ol {
    display: flex;
    align-items: baseline;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.625rem var(--gutter) 0;
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--ink-soft);
    white-space: nowrap;
}

.c-crumbs li:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The slash trails its item, so a wrapped line never starts with one. */
.c-crumbs li:not(:last-child)::after {
    content: "/";
    margin-inline: 0.45rem;
    color: var(--teal);
}

.c-crumbs a {
    color: var(--ink-soft);
    text-decoration: none;
}

.c-crumbs a:hover {
    text-decoration: underline;
}

/* Photos */

.c-photo {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper);
    cursor: zoom-in;
}

.c-photo[href$="/"] {
    cursor: pointer;
}

.c-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
}

.c-photo:hover img {
    transform: scale(1.04);
}

/* A label on the photo, as the old site had it: a navy tab in the top left
   corner with a cyan rule under it. */
.c-photo:has(.c-photo-badge) {
    position: relative;
}

.c-photo-badge {
    position: absolute;
    top: 0;
    left: clamp(1rem, 3%, 1.5rem);
    padding: 0.7rem 0.85rem 0.55rem;
    border-bottom: 3px solid var(--cyan);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--navy);
    color: var(--white);
    font-size: var(--step--1);
    font-stretch: var(--semi);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}

/* Course facts (label and value) of a training, in a grid of small cells. */
.c-text .c-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 1.5rem;
    margin-top: 1.5em;
}

.c-facts > div {
    padding-top: 0.7rem;
    border-top: 2px solid var(--cyan);
}

.c-facts dt {
    color: var(--ink-soft);
    font-size: var(--step--1);
    line-height: 1.3;
}

.c-facts dd {
    margin: 0.2rem 0 0;
    color: var(--navy);
    font-size: var(--step-1);
    font-stretch: var(--semi);
    font-weight: 700;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.c-facts + * {
    margin-top: 1.5em;
}

@media (min-width: 40em) {
    .c-text .c-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Headings and running text */

.c-title {
    color: var(--blue);
    font-size: clamp(2rem, 1.35rem + 2vw, 3.125rem);
    line-height: 1.04;
    text-wrap: balance;
}

h3.c-title {
    font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem);
}

.c-title--small {
    font-size: var(--step-2);
}

.c-text {
    color: var(--ink);
    font-size: var(--step-0);
    line-height: 1.7;
}

.c-title + .c-text,
.c-title + .c-inline-media {
    margin-top: 1.25rem;
}

.c-text > * + * {
    margin-top: 1em;
}

.c-text h2,
.c-text h3,
.c-text h4 {
    margin-top: 1.6em;
    color: var(--blue);
    font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
    line-height: 1.1;
}

.c-text h4 {
    font-size: var(--step-1);
}

.c-text a {
    overflow-wrap: anywhere;
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.c-text a:hover {
    text-decoration-thickness: 2px;
}

.c-text ul,
.c-text ol {
    padding-left: 1.3em;
}

.c-text li + li {
    margin-top: 0.4em;
}

.c-text li::marker {
    color: var(--cyan);
}

/* A schedule list has one row per date, with its "Add to cart" at the end. */
.c-text ul:has(> li > .button) {
    padding-left: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.c-text li:has(> .button) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--rule);
}

.c-text li > .button {
    color: var(--white);
    overflow-wrap: normal;
}

.c-text strong {
    font-weight: 700;
    color: var(--navy);
}

.c-text blockquote {
    margin: 1.5em 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--cyan);
    font-size: var(--step-1);
    color: var(--navy);
}

.c-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.c-text iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
}

.c-text table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.125rem;
}

.c-text th,
.c-text td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: top;
}

.c-measure {
    max-width: 46rem;
}

.c-page .actions {
    margin-top: 1.75rem;
}

/* Feature: photo and text side by side, alternating */

.c-feature {
    padding-top: var(--c-gap);
}

.c-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5.5rem);
    align-items: center;
}

.c-feature--flip .c-feature-media {
    order: 2;
}

.c-feature--text .c-feature-grid {
    grid-template-columns: minmax(0, 46rem);
}

.c-feature-media {
    margin: 0;
}

.c-feature-media .c-photo {
    aspect-ratio: var(--ratio, 4 / 3);
}

/* A logo in a photo frame is shown whole on white, never cropped. */
.c-photo--logo {
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--rule);
}

.c-photo--logo img {
    object-fit: contain;
    padding: 8%;
}

.c-feature-copy .c-text {
    max-width: 44rem;
}

/* A long feature: the photo sits next to the opening paragraphs, set a
   step larger, and the rest of the text follows in the reading column. */

.c-feature--long .c-feature-copy .c-text {
    font-size: var(--step-1);
    line-height: 1.6;
}

.c-feature-more {
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

/* Prose */

.c-prose,
.c-buttons,
.c-heading,
.c-image,
.c-video,
.c-embed,
.c-yard,
.c-accordion,
.c-linklist {
    margin: 0;
    padding-top: var(--c-gap);
}

.c-buttons,
.c-prose + .c-prose {
    padding-top: 1.5rem;
}

.c-inline-media {
    margin: 0 0 1.5rem;
}

/* Cards */

.c-cards,
.c-logos,
.c-gallery {
    padding-top: var(--c-gap);
}

.c-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.25rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-card a {
    display: grid;
    align-content: start;
    gap: 1rem;
    height: 100%;
    color: var(--ink);
    text-decoration: none;
}

.c-card-photo {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background: var(--paper);
}

.c-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
}

.c-card a:hover .c-card-photo img {
    transform: scale(1.05);
}

.c-card-body {
    display: grid;
    align-content: start;
    gap: 0.4rem;
}

.c-card :is(h2, h3) {
    position: relative;
    padding-bottom: 0.6rem;
    color: var(--blue);
    font-size: 1.625rem;
    line-height: 1.08;
}

.c-card :is(h2, h3)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.25rem;
    height: 3px;
    background: var(--cyan);
    transition: width 500ms var(--ease-out);
}

.c-card a:hover :is(h2, h3) {
    color: var(--blue);
}

.c-card a:hover :is(h2, h3)::after {
    width: 100%;
}

.c-card-text {
    color: var(--ink-soft);
    font-size: 1.125rem;
    line-height: 1.55;
}

.c-card-meta {
    color: var(--ink-soft);
    font-size: 1rem;
}

.c-cards--people .c-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.c-cards--people .c-card-photo {
    aspect-ratio: 1;
}

.c-cards--list .c-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
}

.c-cards--list .c-card-photo {
    aspect-ratio: 16 / 10;
}

.c-cards--list .c-card :is(h2, h3) {
    font-size: 1.5rem;
}

/* Long lists (blog, news): the newest entry opens the list across two
   columns, like the lead story of a magazine page. */

@media (min-width: 64rem) {
    .c-cards--list:not(.c-cards--people, .c-cards--after-stage) .c-card:first-child:has(.c-card-photo img) {
        grid-column: span 2;
    }

    .c-cards--list:not(.c-cards--people, .c-cards--after-stage) .c-card:first-child:has(.c-card-photo img) .c-card-photo {
        aspect-ratio: 16 / 8.2;
    }

    .c-cards--list:not(.c-cards--people, .c-cards--after-stage) .c-card:first-child:has(.c-card-photo img) :is(h2, h3) {
        font-size: clamp(2rem, 1.2rem + 1.6vw, 2.75rem);
    }

    .c-cards--list:not(.c-cards--people, .c-cards--after-stage) .c-card:first-child:has(.c-card-photo img) .c-card-text {
        font-size: var(--step-1);
    }
}

/* Logos */

.c-logos .logo-field {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 1rem 2rem;
    margin-bottom: 0;
}

/* Partner logos in page content come as 4:3 canvases with the mark in the
   middle; shown at the tile's full width they read at a normal size. */
.c-logos .logo-field a,
.c-logos .logo-field span {
    min-height: 0;
}

.c-logos .logo-field img {
    width: 100%;
    max-width: 15rem;
    height: auto;
    object-fit: contain;
}

/* Gallery */

.c-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.c-gallery-grid a {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background: var(--paper);
    cursor: zoom-in;
}

.c-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
}

.c-gallery-grid a:hover img {
    transform: scale(1.05);
}

/* Media and embeds */

.c-image figcaption {
    margin-top: 0.6rem;
    color: var(--ink-soft);
    font-size: 1rem;
}

.c-video video {
    display: block;
    width: 100%;
    max-width: 64rem;
    border-radius: var(--radius);
    background: var(--navy);
}

.c-frame {
    max-width: 64rem;
}

.c-frame iframe {
    display: block;
    width: 100%;
    height: min(var(--h, 900px), 1400px);
    border: 0;
    border-radius: var(--radius);
    background: var(--white);
}

.c-frame--video iframe {
    height: auto;
    aspect-ratio: 16 / 9;
}

.c-yard .yard {
    min-height: 12rem;
}

/* yard.js draws the calendar wider than the phone screen for a moment. */
.c-yard {
    overflow-x: clip;
}

/* Accordion */

.c-accordion details {
    border-top: 1px solid var(--rule);
}

.c-accordion details:last-child {
    border-bottom: 1px solid var(--rule);
}

.c-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding: 0.9rem 0;
    color: var(--navy);
    font-size: var(--step-1);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.c-accordion summary::-webkit-details-marker {
    display: none;
}

.c-accordion summary::after {
    content: "+";
    color: var(--blue);
    font-size: 1.75rem;
    line-height: 1;
    transition: transform 300ms var(--ease-out);
}

.c-accordion details[open] summary::after {
    transform: rotate(45deg);
}

.c-accordion details .c-text {
    padding-bottom: 1.25rem;
}

/* Link lists */

.c-linklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
    gap: 2rem 3rem;
}

.c-linklist ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

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

.c-page [id] {
    scroll-margin-top: calc(var(--header-h, 5rem) + 1.5rem);
}

.c-linklist span {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--ink);
    font-size: var(--step-0);
}

.c-linklist a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--ink);
    font-size: var(--step-0);
    text-decoration: none;
}

.c-linklist a:hover {
    color: var(--blue);
}

/* Search page */

.c-search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 46rem;
    margin-top: 1.5rem;
}

.c-search-form input {
    flex: 1;
    min-width: 0;
    min-height: 56px;
    padding: 0 1.1rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: var(--step-0);
}

/* The knowledge hub pages: search field in the header, "BETA" next to the title. */
.c-hero-search {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.c-hero-badge {
    margin-left: 0.15em;
    font-family: var(--font);
    font-size: max(0.26em, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--cyan);
    vertical-align: super;
}

.c-search-form input:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
}

.c-results {
    display: grid;
    gap: 0;
    max-width: 58rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.c-results a {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem 0;
    color: var(--ink);
    text-decoration: none;
}

.c-results .ph {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background: var(--paper);
}

/* A result without a photo shows the skyline instead of an empty box. */
.c-results .ph:empty {
    position: relative;
}

.c-results .ph:empty::after {
    content: "";
    position: absolute;
    inset: 15% 0 0;
    background: linear-gradient(100deg, var(--blue), var(--cyan));
    opacity: 0.3;
    -webkit-mask: url("../images/frankfurt-skyline-EI0R-bq.svg") bottom center / cover no-repeat;
    mask: url("../images/frankfurt-skyline-EI0R-bq.svg") bottom center / cover no-repeat;
}

.c-results .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-results h2 {
    color: var(--blue);
    font-size: 1.625rem;
    line-height: 1.1;
}

.c-results a:hover h2 {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.c-results p {
    margin-top: 0.35rem;
    color: var(--ink-soft);
    font-size: 1.125rem;
    line-height: 1.5;
}

@media (max-width: 64rem) {
    .c-hero--media .c-hero-grid,
    .c-contact-grid,
    .c-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .c-feature--flip .c-feature-media {
        order: 0;
    }
}

@media (max-width: 40rem) {
    .c-results a {
        grid-template-columns: 5rem minmax(0, 1fr);
        gap: 1rem;
    }

    .c-results h2 {
        font-size: 1.375rem;
    }

    .c-card-grid,
    .c-cards--list .c-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .c-cards--people .c-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .c-cards--people .c-card :is(h2, h3) {
        font-size: 1.25rem;
    }

    .c-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .c-search-form {
        flex-wrap: wrap;
    }

    .c-search-form .button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c-photo img,
    .c-card-photo img,
    .c-gallery-grid img {
        transition: none;
    }
}

/* Blog stage: the newest post on navy, photo left, title and teaser right. */

.c-stage {
    position: relative;
    overflow: hidden;
    margin-top: var(--c-gap);
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    background:
        radial-gradient(45rem 30rem at 85% 110%, rgba(18, 195, 206, 0.3), transparent 70%),
        linear-gradient(150deg, var(--navy) 0%, #152463 75%, var(--blue) 140%);
    color: var(--white);
}

.c-stage-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(1.75rem, 4vw, 4rem);
}

.c-stage-photo {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 16 / 10;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.c-stage-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
}

.c-stage-photo:hover img {
    transform: scale(1.04);
}

.c-stage-copy {
    display: grid;
    justify-items: start;
    gap: 1.25rem;
}

.c-stage h2 {
    font-size: clamp(2rem, 1.1rem + 2.2vw, 3.25rem);
    line-height: 1.05;
}

.c-stage h2 a {
    color: var(--white);
    text-decoration: none;
    background: linear-gradient(var(--cyan), var(--cyan)) no-repeat 0 100% / 0 3px;
    transition: background-size 500ms var(--ease-out);
}

.c-stage h2 a:hover {
    background-size: 100% 3px;
}

.c-stage p {
    max-width: 44ch;
    color: rgba(255, 255, 255, 0.86);
    font-size: var(--step-1);
    line-height: 1.5;
}

.c-stage + .c-cards {
    padding-top: var(--c-gap);
}

@media (max-width: 56rem) {
    .c-stage-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .c-stage-photo img,
    .c-stage h2 a {
        transition: none;
    }
}

/* On a page with a stage the stage comes first on screen, directly under
   the header; the page title and the grid follow. The h1 stays first in
   the markup. */
.c-page:has(> .c-stage) {
    display: flex;
    flex-direction: column;
}

.c-page > .c-stage {
    order: -1;
    margin-top: 0;
}

/* Blog posts read in one column: the text of every feature stays on the
   left, where the following paragraphs continue, and all body text has
   the same size. */
.c-page--post .c-feature-media,
.c-page--post .c-feature--flip .c-feature-media {
    order: 2;
}

.c-page--post .c-feature--long .c-feature-copy .c-text {
    font-size: var(--step-0);
    line-height: 1.7;
}

@media (max-width: 64rem) {
    .c-page--post .c-feature-media,
    .c-page--post .c-feature--flip .c-feature-media {
        order: 0;
    }
}
