/* Business Logic (www.business-logic.biz): the break-even chart at night.
   Night navy under the sky blue of the firm's own logo (#67b3e6); the leaf green of the numbers in its
   slogan banner (#94c966) is kept for profit and for the main action. See CONTENT_SOURCE.md, "Design". */

@font-face {
    font-family: "TikTok Sans";
    src: url("/fonts/tiktok-sans.woff2") format("woff2");
    font-weight: 300 900;
    font-stretch: 75% 150%;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "STIX Two Text";
    src: url("/fonts/stix-two-text.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "STIX Two Text";
    src: url("/fonts/stix-two-text-italic.woff2") format("woff2");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --night: #081b2e;
    --night-2: #0d2740;
    --night-3: #143551;
    --night-line: #27496b;
    --sky: #67b3e6;
    --sky-soft: #a6d3f2;
    --sky-wash: #e7f3fc;
    --sky-deep: #17629a;
    --leaf: #94c966;
    --leaf-soft: #b4dc8f;
    --leaf-wash: #edf6e3;
    --leaf-deep: #3f6b22;
    --silver: #f0f2f5;
    --line: #d3dce6;
    --ink: #0b2136;
    --ink-2: #44586c;
    --on-night: #e9f1f8;
    --on-night-2: #a9bfd3;

    --sans: "TikTok Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "STIX Two Text", Georgia, "Times New Roman", serif;

    --pad: clamp(1.1rem, 4vw, 2.5rem);
    --r: 1.1rem;
    --r-lg: clamp(1.4rem, 3vw, 2.25rem);
    --ring: var(--sky-deep);

    --lb-bg: rgba(5, 16, 28, .96);
    --lb-text: #e9f1f8;
    --lb-accent: #94c966;
    --lb-accent-soft: #a6d3f2;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.6;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}

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

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.02em;
    text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure,
address {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

address {
    font-style: normal;
}

a {
    color: var(--sky-deep);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
    border-radius: 4px;
}

.top,
.hero,
.page-hero,
.band-night,
.foot,
.contact-card,
.not-found {
    --ring: var(--leaf);
}

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

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 60;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    background: var(--leaf);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.skip:focus {
    top: .8rem;
}

.wrap {
    width: min(100%, 1240px);
    margin-inline: auto;
    padding-inline: var(--pad);
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    min-height: 3rem;
    padding: .7em 1.35em;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-leaf {
    background: var(--leaf);
    color: var(--ink);
}

.btn-leaf:hover {
    background: #fff;
    color: var(--ink);
}

.btn-line {
    border-color: var(--night-line);
    background: transparent;
    color: #fff;
}

.btn-line:hover {
    border-color: var(--sky);
    background: var(--night-3);
    color: #fff;
}

.btn-ink,
.btn-night {
    background: var(--ink);
    color: #fff;
}

.btn-ink:hover,
.btn-night:hover {
    background: var(--night-3);
    color: #fff;
}

.btn-ink-line {
    border-color: var(--ink);
    background: transparent;
    color: var(--ink);
}

.btn-ink-line:hover {
    background: var(--ink);
    color: #fff;
}

.btn-phone {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 27, 46, .9);
    color: #fff;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(103, 179, 230, .16);
}

.top-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    min-height: 4.5rem;
    padding-block: .6rem;
}

.brand {
    display: block;
    margin-right: auto;
    line-height: 0;
}

.brand img {
    display: block;
    width: auto;
    height: 2.5rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
    order: 5;
    width: 100%;
}

.nav a {
    padding: .5rem .75rem;
    border-radius: 999px;
    color: var(--on-night);
    font-size: .98rem;
    font-weight: 550;
    text-decoration: none;
}

.nav a:hover {
    background: var(--night-3);
    color: #fff;
}

.nav a[aria-current="page"] {
    background: var(--night-3);
    color: var(--sky-soft);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .4rem .95rem;
    border: 2px solid var(--leaf);
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    white-space: nowrap;
}

.call svg {
    flex: none;
    color: var(--leaf);
}

.call:hover {
    background: var(--leaf);
    color: var(--ink);
}

.call:hover svg {
    color: var(--ink);
}

.lang {
    display: flex;
    align-items: center;
    gap: .1rem;
    font-size: .9rem;
    font-weight: 650;
}

.lang a,
.lang span {
    padding: .45rem .5rem;
    border-radius: .5rem;
    color: var(--on-night-2);
    text-decoration: none;
}

.lang a:hover {
    color: #fff;
}

.lang span[aria-current] {
    color: var(--sky-soft);
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.75rem;
    padding: .4rem .85rem;
    border: 2px solid var(--night-line);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: .95rem;
    font-weight: 650;
    cursor: pointer;
}

.menu-btn[hidden] {
    display: none;
}

.menu-ico {
    position: relative;
    width: 1.05rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
    transition: box-shadow .18s;
}

.is-open .menu-ico {
    box-shadow: 0 0 0 currentColor, 0 0 0 currentColor;
}

@media (max-width: 899px) {
    .js .nav {
        display: none;
    }

    .js .is-open .nav {
        display: grid;
        padding-block: .4rem .6rem;
    }

    .js .nav a {
        padding: .8rem .75rem;
        border-radius: .75rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 899px) {
    .lang {
        order: 1;
    }

    .call {
        order: 2;
    }

    .menu-btn {
        order: 3;
    }
}

@media (max-width: 479px) {
    .call {
        padding-inline: .7rem;
    }

    .menu-btn {
        padding-inline: .8rem;
    }

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

    .brand img {
        height: 2.25rem;
    }

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

    .call svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (min-width: 900px) {
    .top-row {
        flex-wrap: nowrap;
    }

    .nav {
        order: 0;
        width: auto;
        margin-right: .4rem;
    }

    .menu-btn,
    .menu-btn:not([hidden]) {
        display: none;
    }
}

/* ---- hero ---- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2rem, 5vw, 3.75rem) clamp(2.5rem, 6vw, 4.5rem);
    background-color: var(--night);
    color: var(--on-night);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto 35%;
    height: 120%;
    background: radial-gradient(closest-side, rgba(103, 179, 230, .2), rgba(103, 179, 230, 0));
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
}

.hero h1 {
    color: #fff;
    font-weight: 850;
}

.h1-a {
    display: block;
    margin-bottom: .35em;
    font-size: clamp(1.45rem, 3.5vw, 2.9rem);
    font-weight: 500;
    letter-spacing: -.015em;
}

.h1-b {
    display: block;
    font-size: clamp(3rem, 14.5vw, 5.4rem);
    line-height: .92;
    letter-spacing: -.04em;
}

.hero-lead {
    max-width: 34rem;
    margin-top: clamp(1.25rem, 3vw, 2rem);
    font-size: clamp(1.06rem, 1.5vw, 1.2rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.hero .btn-phone {
    font-size: 1.15rem;
}

@media (min-width: 980px) {
    .hero-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: end;
    }

    .hero h1 {
        grid-column: 1 / -1;
        font-stretch: 112%;
    }

    .h1-b {
        font-size: clamp(5.2rem, 8.5vw, 7.6rem);
        white-space: nowrap;
    }

    .hero-copy {
        display: contents;
    }

    .hero-lead,
    .hero-actions {
        grid-column: 1;
    }

    .hero-lead {
        grid-row: 2;
        align-self: start;
        margin-top: 0;
    }

    .hero-actions {
        grid-row: 3;
        align-self: start;
        margin-top: 0;
    }

    .cvp {
        grid-column: 2;
        grid-row: 2 / span 3;
    }
}

/* ---- the cost-volume-profit chart ---- */

.cvp {
    min-width: 0;
}

.cvp-plot {
    position: relative;
    aspect-ratio: 1 / .86;
}

.cvp-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cvp-layer path {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.cvp-grid {
    stroke: #a9bfd3;
    stroke-opacity: .13;
    stroke-width: 1;
}

.cvp-axis {
    stroke: #a9bfd3;
    stroke-width: 1.5;
}

.cvp-fixed {
    stroke: #a9bfd3;
    stroke-width: 1.5;
    stroke-dasharray: 5 6;
}

.cvp-line-costs path {
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.cvp-line-revenue path {
    stroke: var(--sky);
    stroke-width: 5;
    stroke-linecap: round;
}

.cvp-dot {
    position: absolute;
    left: 59.4%;
    top: 42%;
    width: 1.15rem;
    height: 1.15rem;
    margin: -.575rem 0 0 -.575rem;
    border: .25rem solid var(--leaf);
    border-radius: 50%;
    background: var(--night);
}

.cvp-label {
    position: absolute;
    color: var(--on-night-2);
    font-size: .8125rem;
    font-weight: 550;
    line-height: 1.2;
    white-space: nowrap;
}

.cvp-l-y { left: 8%; top: 0; }
.cvp-l-x { right: 3%; top: 92%; }
.cvp-l-revenue { right: 7.5%; top: 1%; color: var(--sky); }
.cvp-l-costs { left: 9%; top: 42.5%; color: #fff; }
.cvp-l-fixed { right: 5%; top: 62%; }
.cvp-l-loss { left: 10%; top: 63.5%; }
.cvp-l-profit { right: 6.5%; top: 25.5%; color: var(--ink); font-weight: 750; }
.cvp-l-point { left: 62.5%; top: 45.5%; color: var(--leaf); font-weight: 700; }

.cvp-marker,
.cvp-gap {
    display: none;
    position: absolute;
    left: var(--x, 70.08%);
    pointer-events: none;
}

.is-live .cvp-marker,
.is-live .cvp-gap {
    display: block;
}

.cvp-marker {
    top: 4%;
    bottom: 10%;
    border-left: 1px dashed var(--sky-soft);
    opacity: .7;
}

.cvp-gap {
    top: var(--gap-top, 32.4%);
    height: var(--gap-h, 6%);
    width: .4rem;
    margin-left: -.2rem;
    border-radius: 999px;
    background: var(--leaf);
    box-shadow: 0 0 0 3px var(--night);
}

[data-state="loss"] .cvp-gap {
    background: #fff;
}

[data-state="even"] .cvp-gap {
    display: none;
}

.cvp-control {
    display: grid;
    gap: .35rem .9rem;
    align-items: center;
    margin-top: .9rem;
    padding: .9rem 1.1rem 1rem;
    border: 1px solid var(--night-line);
    border-radius: var(--r);
    background-color: var(--night-2);
}

.cvp-control[hidden] {
    display: none;
}

.cvp-control label {
    color: var(--on-night-2);
    font-size: .9rem;
    font-weight: 600;
}

.cvp-control output {
    color: #fff;
    font-weight: 650;
}

[data-state="profit"] .cvp-control output {
    color: var(--leaf);
}

.cvp-control input[type="range"] {
    width: 100%;
    height: 2rem;
    margin: 0;
    background: transparent;
    accent-color: var(--sky);
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
}

.cvp-control input[type="range"]::-webkit-slider-runnable-track {
    height: .4rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #5d7790 0 60%, var(--leaf) 60% 100%);
}

.cvp-control input[type="range"]::-moz-range-track {
    height: .4rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #5d7790 0 60%, var(--leaf) 60% 100%);
}

.cvp-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.6rem;
    height: 1.6rem;
    margin-top: -.6rem;
    border: .3rem solid var(--night);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px var(--sky);
}

.cvp-control input[type="range"]::-moz-range-thumb {
    width: 1.1rem;
    height: 1.1rem;
    border: .3rem solid var(--night);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px var(--sky);
}

.cvp figcaption {
    margin-top: .9rem;
    color: var(--on-night-2);
    font-size: .92rem;
}

@media (min-width: 620px) {
    .cvp-plot {
        aspect-ratio: 16 / 9.4;
    }

    .cvp-label {
        font-size: .875rem;
    }

    .cvp-control {
        grid-template-columns: auto minmax(8rem, 1fr);
    }

    .cvp-control output {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero h1 span {
        animation: rise .7s both cubic-bezier(.2, .7, .2, 1);
    }

    .hero .h1-b {
        animation-delay: .12s;
    }

    .hero-lead,
    .hero-actions {
        animation: rise .7s .3s both cubic-bezier(.2, .7, .2, 1);
    }

    .cvp-axes {
        animation: wipe .7s .25s both cubic-bezier(.3, .6, .2, 1);
    }

    .cvp-line-costs {
        animation: wipe .9s .7s both cubic-bezier(.3, .6, .2, 1);
    }

    .cvp-line-revenue {
        animation: wipe 1.1s 1s both cubic-bezier(.3, .6, .2, 1);
    }

    .cvp-areas,
    .cvp-label,
    .cvp-marker,
    .cvp-gap {
        animation: fade .7s 1.9s both;
    }

    .cvp-dot {
        animation: pop .5s 1.7s both cubic-bezier(.3, 1.6, .5, 1), ping 1.5s 2.2s 2;
    }

    .cvp-gap {
        transition: top .12s, height .12s, left .12s;
    }

    .cvp-marker {
        transition: left .12s;
    }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(.6em); }
    to { opacity: 1; transform: none; }
}

@keyframes wipe {
    from { clip-path: inset(-2% 100% -2% -2%); }
    to { clip-path: inset(-2% -2% -2% -2%); }
}

@keyframes fade {
    from { opacity: 0; }
}

@keyframes pop {
    from { opacity: 0; transform: scale(.2); }
    to { opacity: 1; transform: none; }
}

@keyframes ping {
    from { box-shadow: 0 0 0 0 rgba(148, 201, 102, .6); }
    to { box-shadow: 0 0 0 1.4rem rgba(148, 201, 102, 0); }
}

/* ---- bands ---- */

.band {
    padding-block: clamp(3rem, 7vw, 5.75rem);
}

.band-silver {
    background-color: var(--silver);
}

.band-night {
    background-color: var(--night);
    color: var(--on-night);
}

.band-sky {
    background-color: var(--sky);
    color: var(--ink);
}

.band h2,
.practice h2,
.svc-section h2,
.topic h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-stretch: 108%;
}

/* ---- home: about ---- */

.about-grid {
    display: grid;
    gap: 1.5rem clamp(2rem, 5vw, 4rem);
}

.about h2 {
    color: var(--sky-deep);
    font-size: clamp(1.15rem, 1.7vw, 1.35rem);
    font-stretch: 100%;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.3;
}

.statement {
    font-size: clamp(1.6rem, 3.6vw, 2.85rem);
    font-weight: 650;
    line-height: 1.14;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.about-cols {
    display: grid;
    gap: 1rem 2.5rem;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--ink-2);
}

@media (min-width: 860px) {
    .about-grid {
        grid-template-columns: 15rem minmax(0, 1fr);
    }

    .about-cols {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- home: the two practices ---- */

.practices {
    padding-bottom: clamp(3rem, 7vw, 5.75rem);
}

.practices-grid {
    display: grid;
    gap: 1.1rem;
}

.practice {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border-radius: var(--r-lg);
    color: var(--ink);
}

.practice-sky {
    background-color: var(--sky);
}

.practice-leaf {
    background-color: var(--leaf);
}

.practice h2 a {
    color: inherit;
    text-decoration: none;
}

.practice h2 a:hover {
    text-decoration: underline;
    text-decoration-thickness: .06em;
}

.practice h3 {
    margin-bottom: .6rem;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: 0;
}

.practice-cols {
    display: grid;
    gap: 1.5rem 2rem;
    margin-top: 1.6rem;
}

.practice li {
    padding-block: .5rem;
    border-top: 1px solid rgba(11, 33, 54, .22);
    font-weight: 500;
    line-height: 1.35;
}

.practice-list {
    margin-top: 1.6rem;
}

.practice-more {
    margin-top: auto;
    padding-top: 1.75rem;
}

@media (min-width: 620px) {
    .practice-cols {
        grid-template-columns: 1fr 1fr;
    }

    .practice-list {
        columns: 2;
        column-gap: 2rem;
    }

    .practice-list li {
        break-inside: avoid;
    }
}

@media (min-width: 1040px) {
    .practices-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- home: international experience ---- */

.intl {
    padding-top: 0;
}

.intl-grid {
    display: grid;
    gap: 1.75rem clamp(2rem, 5vw, 4rem);
}

.intl-note {
    max-width: 30rem;
    margin-top: 1.1rem;
    color: var(--ink-2);
}

.intl-list li {
    padding-block: 1.05rem;
    border-top: 2px solid var(--ink);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    line-height: 1.25;
}

.intl-list li:last-child {
    border-bottom: 2px solid var(--ink);
}

@media (min-width: 860px) {
    .intl-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
}

/* ---- home: the methods, a sideways strip ---- */

.tools-head {
    display: grid;
    gap: .9rem 3rem;
    margin-bottom: 2rem;
}

.tools-head p {
    max-width: 30rem;
    color: var(--on-night-2);
}

.tools-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82vw, 21.5rem);
    gap: .9rem;
    overflow-x: auto;
    padding: .25rem max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad))) 1.25rem;
    scroll-snap-type: x proximity;
    scroll-padding-inline: max(var(--pad), calc((100vw - 1240px) / 2 + var(--pad)));
    scrollbar-color: var(--night-line) transparent;
}

.tool {
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.4rem 1.5rem;
    border: 1px solid var(--night-line);
    border-radius: var(--r);
    background-color: var(--night-2);
    scroll-snap-align: start;
}

.tool-sym {
    padding-bottom: 1.5rem;
    color: var(--sky);
    font-family: var(--serif);
    font-size: clamp(2.3rem, 4.4vw, 3rem);
    font-style: italic;
    line-height: 1;
    white-space: nowrap;
}

.tool h3 {
    margin-bottom: .45rem;
    color: #fff;
    font-size: 1.12rem;
    letter-spacing: 0;
}

.tool p:last-child {
    color: var(--on-night-2);
    font-size: .98rem;
}

.tools-more {
    margin-top: 1.25rem;
}

@media (min-width: 860px) {
    .tools-head {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: end;
    }
}

/* ---- questions, the free hour ---- */

.questions-grid {
    display: grid;
    gap: 1.25rem clamp(2rem, 5vw, 4rem);
}

.q-list li {
    padding-block: .8rem;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2.1vw, 1.55rem);
    font-style: italic;
    line-height: 1.3;
}

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

@media (min-width: 860px) {
    .questions-grid {
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    }
}

.free {
    display: grid;
    gap: 1.25rem 2rem;
    align-items: center;
    margin-top: clamp(2rem, 5vw, 3.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--r-lg);
    background-color: var(--leaf);
    color: var(--ink);
}

.free .free-title {
    margin-bottom: .4rem;
    font-size: clamp(1.5rem, 3.2vw, 2.3rem);
    font-stretch: 106%;
}

.free-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

@media (min-width: 900px) {
    .free {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

/* ---- publications ---- */

.pubs-head {
    display: grid;
    gap: .6rem 3rem;
    margin-bottom: 2rem;
}

.pubs-head p {
    color: var(--ink-2);
}

.pub-cards {
    display: grid;
    gap: 1rem;
}

.pub-card {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: 1rem 1.1rem;
    align-content: start;
    padding: 1.35rem;
    border-radius: var(--r);
    background-color: #fff;
}

.pub-card img {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 28%;
    background-color: #fff;
    box-shadow: 0 0 0 2px var(--sky);
}

.pub-card h3,
.pub-row h3 {
    margin-block: .3rem .5rem;
    font-size: 1.3rem;
    line-height: 1.18;
    letter-spacing: -.01em;
}

.pub-card h3 a,
.pub-row h3 a {
    color: var(--ink);
    text-decoration-color: var(--sky);
    text-decoration-thickness: .1em;
}

.pub-card h3 a:hover,
.pub-row h3 a:hover {
    color: var(--sky-deep);
}

.pub-card p:last-child {
    color: var(--ink-2);
    font-size: .97rem;
}

.pub-meta,
.article-meta {
    font-size: .9rem;
    line-height: 1.35;
}

.pub-by {
    display: block;
    font-weight: 700;
}

.pub-src {
    display: block;
    color: var(--ink-2);
}

.pubs-more {
    margin-top: 1.75rem;
}

@media (min-width: 700px) {
    .pubs-head {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: end;
    }
}

@media (min-width: 1000px) {
    .pub-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.author-row {
    display: grid;
    gap: 1.5rem;
}

.author figure {
    display: grid;
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: end;
}

.author a {
    display: block;
    overflow: hidden;
    border-radius: var(--r);
    background-color: #fff;
    box-shadow: 0 0 0 2px var(--sky);
}

.author img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 20%;
    transition: transform .3s;
}

.author a:hover img {
    transform: scale(1.04);
}

.author figcaption {
    padding-bottom: .4rem;
    color: var(--ink-2);
}

.author figcaption strong {
    display: block;
    margin-bottom: .2rem;
    color: var(--ink);
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.authors {
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 760px) {
    .author-row {
        grid-template-columns: 1fr 1fr;
    }

    .author figure {
        grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
    }
}

.pub-index h2 {
    margin-bottom: 1.5rem;
}

.pub-row {
    padding-block: 1.5rem;
    border-top: 2px solid var(--ink);
}

.pub-row:last-child {
    border-bottom: 2px solid var(--ink);
}

.pub-row h3 {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    letter-spacing: -.02em;
}

.pub-row > p:last-child {
    max-width: 46rem;
    color: var(--ink-2);
}

.pub-lang {
    color: var(--ink);
    font-weight: 600;
}

@media (min-width: 860px) {
    .pub-row {
        display: grid;
        grid-template-columns: 15rem minmax(0, 1fr);
        gap: .25rem 2.5rem;
    }

    .pub-row .pub-meta {
        grid-row: 1 / span 2;
        padding-top: .55rem;
    }

    .pub-row h3,
    .pub-row > p:last-child {
        grid-column: 2;
    }

    .pub-row h3 {
        margin-top: 0;
    }
}

/* ---- contact band and contact page ---- */

.contact-band-grid {
    display: grid;
    gap: 2rem clamp(2rem, 5vw, 4rem);
}

.big-phone-line {
    margin-block: .7rem .5rem;
    line-height: 1;
}

.big-phone {
    color: inherit;
    font-size: clamp(2rem, 7.4vw, 4.6rem);
    font-stretch: 100%;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.035em;
    text-decoration: none;
    white-space: nowrap;
}

.big-phone:hover {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: .06em;
}

.band-sky a {
    color: var(--ink);
    font-weight: 600;
}

.band-sky a:hover {
    color: #000;
}

.contact-facts {
    display: grid;
    gap: 1.5rem 2.5rem;
    align-content: end;
}

.contact-facts dt,
.contact-list dt {
    margin-bottom: .3rem;
    font-size: .9rem;
    font-weight: 750;
}

@media (min-width: 560px) {
    .contact-facts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 980px) {
    .contact-band-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: end;
    }
}

.contact-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.contact-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--r-lg);
    background-color: var(--night);
    color: var(--on-night);
}

.contact-card .big-phone {
    color: #fff;
    font-size: clamp(1.9rem, 6.6vw, 3.1rem);
}

.contact-card a {
    color: var(--sky-soft);
}

.contact-card a:hover {
    color: #fff;
}

.contact-list {
    display: grid;
    gap: 1.4rem;
    margin-top: 1.6rem;
}

.contact-list dt {
    color: var(--on-night-2);
}

.contact-form-card h2 {
    margin-bottom: 1.25rem;
}

@media (min-width: 940px) {
    .contact-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: clamp(2rem, 5vw, 4rem);
    }
}

.contact-form > div {
    margin-bottom: 1.1rem;
}

.contact-form label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 650;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .8rem .95rem;
    border: 2px solid var(--line);
    border-radius: .8rem;
    background-color: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form textarea {
    min-height: 10rem;
    resize: vertical;
}

.contact-form ::placeholder {
    color: #5a6c7e;
    opacity: 1;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    border-color: var(--sky-deep);
    outline-offset: 1px;
}

.contact-form ul {
    margin-bottom: .35rem;
    color: #a3242b;
    font-weight: 600;
}

.form-hint {
    margin-top: .9rem;
    color: var(--ink-2);
    font-size: .92rem;
}

.contact-sent {
    margin-bottom: 1.25rem;
    padding: 1rem 1.2rem;
    border-radius: var(--r);
    background-color: var(--leaf-wash);
    color: var(--ink);
}

.contact-sent strong {
    display: block;
}

/* ---- inner pages: hero ---- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2.25rem, 6vw, 4rem);
    background-color: var(--night);
    color: var(--on-night);
}

.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    right: -4%;
    width: min(38%, 30rem);
    height: 0;
    transform-origin: 100% 50%;
    pointer-events: none;
}

.page-hero::before {
    top: 8%;
    border-top: 5px solid var(--sky);
    border-radius: 999px;
    transform: rotate(-24deg);
    opacity: .5;
}

.page-hero::after {
    top: 34%;
    border-top: 2.5px solid #fff;
    transform: rotate(-9deg);
    opacity: .3;
}

.page-hero .wrap {
    position: relative;
    z-index: 1;
}

@media (max-width: 760px) {
    .page-hero::before,
    .page-hero::after {
        display: none;
    }
}

.page-hero h1 {
    max-width: 18ch;
    color: #fff;
    font-size: clamp(2.5rem, 7.4vw, 5.25rem);
    font-stretch: 108%;
    font-weight: 850;
    line-height: .98;
    letter-spacing: -.035em;
}

.page-hero .lead {
    max-width: 40rem;
    margin-top: 1.25rem;
    font-size: clamp(1.08rem, 1.6vw, 1.25rem);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.75rem;
}

.chips a {
    padding: .45rem .9rem;
    border: 1px solid var(--night-line);
    border-radius: 999px;
    background-color: var(--night-2);
    color: var(--on-night);
    font-size: .93rem;
    font-weight: 550;
    line-height: 1.25;
    text-decoration: none;
}

.chips a:hover {
    border-color: var(--sky);
    color: #fff;
}

/* ---- accounting ---- */

.svc-grid {
    display: grid;
    gap: 2rem clamp(2rem, 5vw, 4.5rem);
}

.svc-index {
    font-size: .95rem;
    line-height: 1.35;
}

.svc-index-title {
    margin-bottom: .7rem;
    color: var(--ink-2);
    font-size: .9rem;
    font-weight: 650;
}

.svc-index > p:not(.svc-index-title) {
    margin-top: .9rem;
    font-weight: 750;
}

.svc-index a {
    color: var(--ink);
    text-decoration: none;
}

.svc-index a:hover {
    color: var(--sky-deep);
    text-decoration: underline;
}

.svc-index ul {
    display: none;
}

.svc-index li {
    margin-top: .45rem;
    padding-left: .9rem;
    border-left: 2px solid var(--line);
}

.svc-index li a {
    color: var(--ink-2);
}

.svc-section + .svc-section {
    margin-top: clamp(3rem, 7vw, 5rem);
}

.svc-section h2 {
    margin-bottom: 1.5rem;
}

.entry {
    display: grid;
    gap: .9rem 2.5rem;
    padding-block: 1.6rem;
    border-top: 2px solid var(--ink);
}

.entry h3 {
    font-size: clamp(1.3rem, 2.3vw, 1.6rem);
    line-height: 1.12;
}

.entry-text {
    max-width: 44rem;
}

.ticks li {
    position: relative;
    padding: .28rem 0 .28rem 1.9rem;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: .15rem;
    top: .68rem;
    width: .95rem;
    height: .5rem;
    border-left: 3px solid var(--leaf-deep);
    border-bottom: 3px solid var(--leaf-deep);
    transform: rotate(-45deg);
}

.entry-text + .ticks,
.entry-text + .more,
.ticks + .more {
    margin-top: 1rem;
}

.more summary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .45rem 1.1rem .45rem .55rem;
    border-radius: 999px;
    background-color: var(--sky-wash);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.more summary::before {
    content: "";
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background:
        linear-gradient(#fff, #fff) 50% 50% / .8rem 2px no-repeat,
        linear-gradient(#fff, #fff) 50% 50% / 2px .8rem no-repeat,
        var(--ink);
    transition: transform .2s;
}

.more[open] summary::before {
    transform: rotate(45deg);
}

.more summary:hover {
    background-color: var(--sky-soft);
}

.more-body {
    max-width: 46rem;
    padding-top: 1.1rem;
    color: var(--ink);
}

.more-body h4 {
    margin-block: 1.25rem .4rem;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.more-body p + p {
    margin-top: .7rem;
}

.dashes {
    margin-top: .7rem;
}

.dashes li {
    position: relative;
    padding: .3rem 0 .3rem 1.6rem;
}

.dashes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.02rem;
    width: .85rem;
    border-top: 2px solid var(--sky-deep);
}

.defs {
    display: grid;
    gap: 1.1rem 2rem;
    margin-top: .4rem;
}

.defs dt {
    font-weight: 750;
}

.defs dd {
    color: var(--ink-2);
}

.other-list {
    max-width: 46rem;
}

.other-list li {
    padding-block: .9rem;
    border-top: 2px solid var(--ink);
    font-weight: 550;
    line-height: 1.4;
}

.other-list li:last-child {
    border-bottom: 2px solid var(--ink);
}

@media (min-width: 720px) {
    .defs {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1000px) {
    .svc-grid {
        grid-template-columns: 15.5rem minmax(0, 1fr);
        align-items: start;
    }

    .svc-index {
        position: sticky;
        top: 6.5rem;
    }

    .svc-index ul {
        display: block;
    }

    .entry {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    }
}

/* ---- consulting ---- */

.topic {
    display: grid;
    gap: 1.1rem clamp(2rem, 5vw, 4rem);
    padding-block: clamp(2rem, 4.5vw, 3.25rem);
    border-top: 2px solid var(--ink);
}

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

.topic h2 {
    font-size: clamp(1.6rem, 3.1vw, 2.35rem);
    font-stretch: 104%;
}

.topic-body > * + * {
    margin-top: 1rem;
}

.topic-body > p {
    max-width: 44rem;
}

.topic-body .q-list + p {
    margin-top: 1.5rem;
}

.topic-blocks {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.topic-block {
    padding: 1.4rem 1.5rem 1.5rem;
    border-radius: var(--r);
    background-color: var(--sky-wash);
}

.topic-block:nth-child(2) {
    background-color: var(--leaf-wash);
}

.topic-block h3 {
    margin-bottom: .5rem;
    font-size: 1.25rem;
}

@media (min-width: 720px) {
    .topic-blocks {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 940px) {
    .topic {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    }
}

/* ---- an article ---- */

.article-hero h1 {
    max-width: 22ch;
    font-size: clamp(2.1rem, 5.6vw, 4rem);
}

.crumb {
    margin-bottom: 1.1rem;
    font-weight: 650;
}

.crumb a {
    color: var(--sky-soft);
    text-decoration: none;
}

.crumb a::before {
    content: "";
    display: inline-block;
    width: .55em;
    height: .55em;
    margin-right: .5em;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-.1em);
}

.crumb a:hover {
    color: #fff;
}

.article-meta {
    margin-top: 1.25rem;
    font-size: 1rem;
}

.article-meta .pub-by {
    color: #fff;
}

.article-meta .pub-src {
    color: var(--on-night-2);
}

.article-grid {
    display: grid;
    gap: 2rem clamp(2rem, 5vw, 4.5rem);
}

.article-side {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    color: var(--ink-2);
    font-size: .95rem;
    line-height: 1.4;
}

.article-side img {
    width: 5.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 28%;
    background-color: #fff;
    box-shadow: 0 0 0 2px var(--sky);
}

.article-side strong {
    display: block;
    color: var(--ink);
    font-size: 1.1rem;
}

.article-main {
    min-width: 0;
    max-width: 44rem;
}

.article-summary {
    font-size: clamp(1.2rem, 2.1vw, 1.45rem);
    font-weight: 600;
    line-height: 1.32;
    letter-spacing: -.01em;
}

.article-other {
    margin-top: 1.25rem;
    padding: .85rem 1.1rem;
    border-radius: var(--r);
    background-color: var(--sky-wash);
    font-weight: 550;
}

.article-body {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--ink);
    font-family: var(--serif);
    font-size: 1.1875rem;
    line-height: 1.68;
    overflow-wrap: break-word;
}

.article-body > * + * {
    margin-top: 1.15em;
}

.article-body h2 {
    margin-top: 2em;
    font-family: var(--sans);
    font-size: 1.3rem;
    font-stretch: 100%;
    line-height: 1.22;
    letter-spacing: -.01em;
}

.article-body ol {
    padding-left: 1.6em;
    list-style: decimal;
}

.article-body li + li {
    margin-top: .6em;
}

.article-points > li + li {
    margin-top: 1.6em;
}

.article-points p + p {
    margin-top: 1em;
}

.article-body li::marker {
    font-family: var(--sans);
    font-weight: 750;
}

.article-lead {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 650;
    line-height: 1.4;
}

.article-sign {
    font-style: italic;
    font-weight: 600;
}

.article-note {
    color: var(--ink-2);
    font-style: italic;
}

.article-back {
    margin-top: 2.5rem;
}

@media (min-width: 980px) {
    .article-grid {
        grid-template-columns: 13rem minmax(0, 1fr);
        align-items: start;
    }

    .article-side {
        position: sticky;
        top: 6.5rem;
        grid-template-columns: 1fr;
    }

    .article-side img {
        width: 9rem;
    }
}

/* ---- footer ---- */

.foot {
    padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    background-color: var(--night);
    color: var(--on-night-2);
    font-size: .98rem;
}

.foot-grid {
    display: grid;
    gap: 2rem;
}

.foot-brand img {
    display: block;
    margin-bottom: 1rem;
}

.foot-name {
    margin-bottom: .35rem;
    color: #fff;
    font-weight: 700;
}

.foot h2 {
    margin-bottom: .7rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.foot a {
    color: var(--sky-soft);
    text-decoration: none;
}

.foot a:hover {
    color: #fff;
    text-decoration: underline;
}

.foot p + p {
    margin-top: .45rem;
}

.foot li + li {
    margin-top: .3rem;
}

.foot-phone {
    font-size: 1.2rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.foot-bottom {
    margin-top: 2.5rem;
    font-size: .9rem;
}

.foot-bottom p {
    padding-top: 1.25rem;
    border-top: 1px solid var(--night-line);
}

@media (min-width: 640px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1000px) {
    .foot-grid {
        grid-template-columns: 1.5fr 1.1fr 1fr .8fr;
    }
}

/* ---- 404 ---- */

.not-found {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem var(--pad);
    background-color: var(--night);
    color: var(--on-night);
}

.not-found > div {
    max-width: 36rem;
}

.not-found img {
    display: block;
    margin-bottom: 2.5rem;
}

.not-found h1 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(2.2rem, 8vw, 4rem);
    font-weight: 850;
    letter-spacing: -.035em;
}

.not-found h2 {
    margin-bottom: .6rem;
    color: #fff;
    font-size: 1.4rem;
}

.not-found p + p {
    margin-top: 1.1rem;
}

.not-found a:not(.btn) {
    color: var(--sky-soft);
}

.not-found a[href^="tel:"] {
    white-space: nowrap;
}

.not-found [lang="en"] {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--night-line);
}

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

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

@media print {
    .top,
    .cvp-control,
    .free-actions {
        display: none;
    }
}

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
