/* Andreev & Partners: sky field and logo navy. Oranienbaum (display) + Nunito Sans (text).
   One light theme; the dark bands (practice areas, footer) set their own colours and focus ring. */

@font-face {
    font-family: "Oranienbaum";
    src: url("/fonts/oranienbaum.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Nunito Sans";
    src: url("/fonts/nunito-sans-text.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --sky: #86c3ef;
    --sky-deep: #6fb3e6;
    --ice: #bde2fb;
    --navy: #133b74;
    --deep: #0b2147;
    --mid: #3e6296;
    --mist: #dfe0e5;
    --paper: #f6f8fb;
    --white: #fff;
    --ink: #0d1f3c;
    --muted: #44567a;
    --on-dark: #e9f3fc;
    --on-dark-soft: #c4d8ef;
    --focus: #0b2147;
    --radius: 18px;
    --display: "Oranienbaum", "Times New Roman", serif;
    --text: "Nunito Sans", "Segoe UI", Arial, sans-serif;
    --wrap: 1180px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--text);
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--navy);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--deep);
    text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--deep);
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
}

h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 700px) {
    .wrap {
        padding: 0 32px;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--deep);
    color: #fff;
    border-radius: 8px;
}

.skip:focus {
    top: 12px;
    color: #fff;
}

.kicker,
.eyebrow {
    font: 800 0.8rem/1.3 var(--text);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 1rem;
}

.kicker::before,
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    margin-right: 0.6em;
    background: var(--navy);
    vertical-align: -0.02em;
    box-shadow: 0.35em 0.35em 0 var(--sky);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    min-height: 48px;
    padding: 0.7em 1.4em;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 800 1rem/1.2 var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-ink {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(11, 33, 71, 0.7);
}

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

.btn-line {
    border-color: var(--deep);
    color: var(--deep);
}

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

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

.btn-sky:hover {
    background: var(--ice);
    color: var(--deep);
}

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

.top {
    position: relative;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(19, 59, 116, 0.14);
}

.top-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "brand menu"
        "call call"
        "nav nav";
    align-items: center;
    gap: 10px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: auto;
}

.brand-name {
    width: 150px;
    height: auto;
}

.call {
    grid-area: call;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 44px;
    padding: 0.5em 1.1em;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font: 800 1.05rem/1.2 var(--text);
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    background: var(--deep);
    color: #fff;
}

.menu-btn {
    grid-area: menu;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    min-height: 44px;
    padding: 0.4em 0.9em;
    border: 2px solid var(--navy);
    border-radius: 999px;
    background: transparent;
    color: var(--navy);
    font: 800 0.95rem/1 var(--text);
    cursor: pointer;
}

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

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.menu-bars {
    position: relative;
}

.menu-bars::before,
.menu-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

.menu-btn[aria-expanded="true"] .menu-bars {
    background: transparent;
}

.menu-btn[aria-expanded="true"] .menu-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav {
    grid-area: nav;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

.js-menu .nav {
    display: none;
}

.js-menu .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 0 4px;
}

.nav a,
.lang span {
    display: inline-block;
    white-space: nowrap;
    padding: 0.55em 0.75em;
    border-radius: 10px;
    color: var(--deep);
    font-weight: 700;
    text-decoration: none;
}

.nav a:hover {
    background: var(--ice);
    color: var(--deep);
}

.nav > a[aria-current] {
    box-shadow: inset 0 -3px 0 var(--sky);
}

.lang {
    display: inline-flex;
    gap: 2px;
    margin-left: 4px;
    padding: 3px;
    border: 1px solid rgba(19, 59, 116, 0.25);
    border-radius: 12px;
    align-self: flex-start;
}

.lang a,
.lang span {
    padding: 0.3em 0.6em;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.lang span[aria-current] {
    background: var(--navy);
    color: #fff;
}

@media (min-width: 1060px) {
    .top {
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.86);
        backdrop-filter: blur(12px);
    }

    .top-row {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "brand nav call";
        gap: 20px;
    }

    .brand-mark {
        width: 52px;
    }

    .brand-name {
        width: 172px;
    }

    .menu-btn,
    .js-menu .menu-btn {
        display: none;
    }

    .nav,
    .js-menu .nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        flex-direction: row;
    }

    .nav > a {
        font-size: 0.95rem;
        padding: 0.5em 0.6em;
    }

    .lang {
        align-self: center;
        margin-left: 10px;
    }
}

/* ---- hero (home) ---- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60rem 30rem at 12% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
        linear-gradient(180deg, var(--sky) 0%, var(--sky) 70%, var(--sky-deep) 100%);
    padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 48px);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero::before {
    width: min(46vw, 520px);
    aspect-ratio: 1;
    right: -6vw;
    top: -12%;
    background: rgba(255, 255, 255, 0.28);
}

.hero::after {
    width: min(28vw, 300px);
    aspect-ratio: 1;
    left: -5vw;
    bottom: -18%;
    background: rgba(223, 224, 229, 0.55);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1.05fr;
        gap: 48px;
    }
}

.hero h1 {
    font-size: clamp(3rem, 8.4vw, 6.6rem);
    line-height: 0.92;
    color: var(--deep);
    margin-bottom: 0.3em;
}

.hero-lead {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    max-width: 34em;
    color: var(--deep);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.6rem 0 0;
}

/* ---- the portico: nine columns, one per practice area ---- */

.portico {
    margin: 0;
}

.portico svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.pt-pediment {
    fill: var(--white);
    stroke: var(--navy);
    stroke-width: 3;
    stroke-linejoin: round;
}

.pt-tympanum {
    fill: var(--ice);
}

.pt-year {
    font: 46px/1 var(--display);
    fill: var(--navy);
    letter-spacing: 0.04em;
}

.pt-beam {
    fill: var(--navy);
}

.pt-frieze {
    fill: var(--white);
    stroke: var(--navy);
    stroke-width: 2;
}

.pt-frieze-text {
    font: 800 13px/1 var(--text);
    letter-spacing: 0.32em;
    fill: var(--navy);
}

.pt-cap,
.pt-base {
    fill: var(--navy);
}

.pt-shaft {
    fill: var(--white);
    stroke: var(--navy);
    stroke-width: 2;
    transition: fill 0.25s ease;
}

.pt-flute {
    stroke: var(--ice);
    stroke-width: 2;
    transition: stroke 0.25s ease;
}

.pt-step.s1 {
    fill: var(--white);
    stroke: var(--navy);
    stroke-width: 2;
}

.pt-step.s2 {
    fill: var(--mist);
    stroke: var(--navy);
    stroke-width: 2;
}

.pt-step.s3 {
    fill: var(--navy);
}

.pt-num {
    font: 19px/1 var(--display);
    fill: var(--navy);
}

.pt-col {
    cursor: pointer;
}

.pt-col:focus-visible {
    outline: none;
}

.pt-col:focus-visible .pt-shaft {
    stroke: var(--deep);
    stroke-width: 4;
}

.pt-col:is(:hover, :focus-visible) .pt-shaft {
    fill: var(--navy);
}

.pt-col:is(:hover, :focus-visible) .pt-flute {
    stroke: var(--mid);
}

main:has(.area-grid a[data-col="1"]:is(:hover, :focus-visible)) .pt-col.c1 .pt-shaft,
main:has(.area-grid a[data-col="2"]:is(:hover, :focus-visible)) .pt-col.c2 .pt-shaft,
main:has(.area-grid a[data-col="3"]:is(:hover, :focus-visible)) .pt-col.c3 .pt-shaft,
main:has(.area-grid a[data-col="4"]:is(:hover, :focus-visible)) .pt-col.c4 .pt-shaft,
main:has(.area-grid a[data-col="5"]:is(:hover, :focus-visible)) .pt-col.c5 .pt-shaft,
main:has(.area-grid a[data-col="6"]:is(:hover, :focus-visible)) .pt-col.c6 .pt-shaft,
main:has(.area-grid a[data-col="7"]:is(:hover, :focus-visible)) .pt-col.c7 .pt-shaft,
main:has(.area-grid a[data-col="8"]:is(:hover, :focus-visible)) .pt-col.c8 .pt-shaft,
main:has(.area-grid a[data-col="9"]:is(:hover, :focus-visible)) .pt-col.c9 .pt-shaft {
    fill: var(--navy);
}

.portico-cap {
    min-height: 3.2em;
    margin-top: 10px;
    text-align: center;
    font: 700 1rem/1.4 var(--text);
    color: var(--deep);
}

.portico-cap b {
    font: 400 1.3em/1 var(--display);
    margin-right: 0.3em;
}

.portico-cap .cap {
    display: none;
}

.portico:has(.pt-col:is(:hover, :focus-visible)) .cap-default {
    display: none;
}

.portico:has(.pt-col.c1:is(:hover, :focus-visible)) .cap.c1,
.portico:has(.pt-col.c2:is(:hover, :focus-visible)) .cap.c2,
.portico:has(.pt-col.c3:is(:hover, :focus-visible)) .cap.c3,
.portico:has(.pt-col.c4:is(:hover, :focus-visible)) .cap.c4,
.portico:has(.pt-col.c5:is(:hover, :focus-visible)) .cap.c5,
.portico:has(.pt-col.c6:is(:hover, :focus-visible)) .cap.c6,
.portico:has(.pt-col.c7:is(:hover, :focus-visible)) .cap.c7,
.portico:has(.pt-col.c8:is(:hover, :focus-visible)) .cap.c8,
.portico:has(.pt-col.c9:is(:hover, :focus-visible)) .cap.c9 {
    display: inline;
}

@media (prefers-reduced-motion: no-preference) {
    .pt-col-body {
        transform-box: fill-box;
        transform-origin: 50% 100%;
        animation: pt-rise 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) both;
        animation-delay: calc(0.15s + var(--i) * 0.07s);
    }

    .pt-roof {
        animation: pt-settle 0.8s cubic-bezier(0.2, 0.75, 0.2, 1) both;
        animation-delay: 0.9s;
    }

    .hero-text > * {
        animation: fade-up 0.8s ease both;
    }

    .hero-text > :nth-child(2) {
        animation-delay: 0.08s;
    }

    .hero-text > :nth-child(3) {
        animation-delay: 0.16s;
    }

    .hero-text > :nth-child(4) {
        animation-delay: 0.24s;
    }
}

@keyframes pt-rise {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes pt-settle {
    from {
        transform: translateY(-36px);
        opacity: 0;
    }

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

@keyframes fade-up {
    from {
        transform: translateY(14px);
        opacity: 0;
    }

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

/* ---- frieze of the original's photos, at their own size ---- */

.frieze {
    background: var(--white);
    border-bottom: 1px solid var(--mist);
}

.frieze-row {
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 auto;
    padding-top: 18px;
    padding-bottom: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: thin;
}

.frieze-row li {
    flex: none;
    scroll-snap-align: start;
}

.frieze-row img {
    height: 106px;
    width: auto;
    border-radius: 6px;
    outline: 1px solid rgba(19, 59, 116, 0.2);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .frieze-row {
        justify-content: flex-start;
    }
}

/* ---- about ---- */

.about {
    padding: clamp(56px, 8vw, 104px) 0;
}

.about-grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 340px 1fr;
        gap: 64px;
        align-items: start;
    }
}

.about-art {
    position: relative;
    width: 300px;
    max-width: 100%;
    height: 290px;
}

.about-art .sq {
    position: absolute;
}

.sq-grey {
    left: 0;
    top: 0;
    width: 210px;
    height: 210px;
    background: var(--mist);
}

.sq-sky {
    left: 110px;
    top: 120px;
    width: 160px;
    height: 160px;
    background: var(--sky);
}

.portrait {
    position: absolute;
    left: 56px;
    top: 52px;
    width: 90px;
    border: 6px solid var(--white);
    box-shadow: 0 18px 36px -18px rgba(11, 33, 71, 0.6);
}

.about-mark {
    position: absolute;
    left: 168px;
    top: 162px;
    width: 76px;
    box-shadow: 0 18px 36px -18px rgba(11, 33, 71, 0.6);
}

.statement {
    margin: 0 0 1.6rem;
    padding: 0;
}

.statement p {
    font: 400 clamp(1.8rem, 3.6vw, 2.9rem)/1.12 var(--display);
    color: var(--deep);
    margin: 0;
}

.statement p::before {
    content: "„";
    color: var(--mid);
}

.statement p::after {
    content: "“";
    color: var(--mid);
}

:lang(en) .statement p::before,
:lang(it) .statement p::before {
    content: "“";
}

:lang(en) .statement p::after,
:lang(it) .statement p::after {
    content: "”";
}

.founded {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    font-weight: 700;
    color: var(--deep);
}

.founded-year {
    font: 400 3.4rem/1 var(--display);
    color: var(--navy);
}

.about-text > p:last-child {
    max-width: 44em;
}

/* ---- practice areas band ---- */

.areas-band {
    --focus: var(--sky);
    background:
        radial-gradient(50rem 26rem at 90% 0%, rgba(134, 195, 239, 0.18), transparent 60%),
        linear-gradient(160deg, var(--navy), var(--deep) 70%);
    color: var(--on-dark);
    padding: clamp(56px, 8vw, 104px) 0;
}

.areas-band h2,
.areas-band .kicker {
    color: #fff;
}

.areas-band .kicker::before {
    background: var(--sky);
    box-shadow: 0.35em 0.35em 0 var(--mid);
}

.band-lead {
    font-size: 1.15rem;
    max-width: 40em;
}

.area-grid {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

@media (min-width: 1100px) {
    .area-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .area-grid > :nth-child(1),
    .area-grid > :nth-child(6),
    .area-grid > :nth-child(9) {
        grid-column: span 2;
    }

    .areas-page .area-grid > :nth-child(6) {
        grid-column: auto;
    }
}

.area-card a {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-height: 200px;
    padding: 22px 22px 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(134, 195, 239, 0.32);
    background: rgba(255, 255, 255, 0.05);
    color: var(--on-dark);
    text-decoration: none;
    overflow: hidden;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.area-card a::after {
    content: "";
    position: absolute;
    right: -26px;
    bottom: -26px;
    width: 78px;
    height: 78px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.area-card a:hover,
.area-card a:focus-visible {
    background: var(--sky);
    border-color: var(--sky);
    color: var(--deep);
    transform: translateY(-3px);
}

.area-card a:is(:hover, :focus-visible)::after {
    transform: translate(-10px, -10px);
    opacity: 1;
}

.area-n {
    font: 400 2.6rem/1 var(--display);
    color: var(--sky);
    transition: color 0.25s ease;
}

.area-card a:is(:hover, :focus-visible) .area-n {
    color: var(--navy);
}

.area-card strong {
    font: 400 1.65rem/1.1 var(--display);
}

.area-short-text {
    color: var(--on-dark-soft);
    font-size: 0.98rem;
    transition: color 0.25s ease;
}

.area-card a:is(:hover, :focus-visible) .area-short-text {
    color: var(--deep);
}

.area-short a {
    border-style: dashed;
}

.more {
    margin: 32px 0 0;
}

.areas-page {
    padding-top: clamp(32px, 5vw, 64px);
}

.areas-page .area-grid {
    margin-top: 0;
}

/* ---- correspondents ---- */

.network {
    background: var(--mist);
    padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 88px);
    overflow: hidden;
}

.countries {
    list-style: none;
    margin: 28px auto 0;
    padding: 0 16px;
    max-width: 1400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 0;
}

.countries li {
    font: 400 clamp(2rem, 6.4vw, 5rem)/1.1 var(--display);
    color: var(--deep);
    letter-spacing: -0.01em;
}

.countries li::before {
    content: "";
    display: inline-block;
    width: 0.28em;
    height: 0.28em;
    margin: 0 0.4em;
    background: var(--sky);
    box-shadow: 0.1em 0.1em 0 var(--navy);
    vertical-align: 0.2em;
}

.countries .and-more {
    color: var(--mid);
    font-style: italic;
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .countries li {
            animation: fade-up linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 70%;
        }

        .area-card {
            animation: fade-up linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 60%;
        }
    }
}

/* ---- clients teaser ---- */

.clients-teaser {
    background: var(--white);
    padding: clamp(56px, 8vw, 104px) 0;
}

.clients-grid {
    display: grid;
    gap: 36px;
    align-items: center;
}

@media (min-width: 900px) {
    .clients-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 64px;
    }
}

.state-box {
    --focus: var(--sky);
    position: relative;
    padding: 32px 28px;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--on-dark);
    box-shadow: 10px 10px 0 var(--sky);
}

.state-box h3 {
    font: 800 0.82rem/1.3 var(--text);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ice);
}

.state-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.state-box li {
    font: 400 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--display);
    color: #fff;
    padding: 12px 0;
    border-top: 1px solid rgba(189, 226, 251, 0.25);
}

/* ---- call band ---- */

.cta {
    background:
        linear-gradient(120deg, var(--sky), var(--ice));
    padding: clamp(48px, 7vw, 88px) 0;
}

.cta-grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

@media (min-width: 900px) {
    .cta-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 48px;
    }
}

.cta h2 {
    margin-bottom: 0.3em;
}

.cta p {
    color: var(--deep);
    font-size: 1.1rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.cta-phone {
    display: inline-flex;
    flex-direction: column;
    font: 400 clamp(2rem, 4.4vw, 3rem)/1.05 var(--display);
    color: var(--deep);
    text-decoration: none;
}

.cta-phone span {
    font: 800 0.78rem/1.4 var(--text);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy);
}

.cta-phone:hover {
    color: var(--navy);
}

.cta-mail {
    font-weight: 700;
    color: var(--deep);
}

/* ---- inner pages ---- */

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(50rem 24rem at 10% 0%, rgba(255, 255, 255, 0.5), transparent 60%),
        var(--sky);
    padding: clamp(36px, 6vw, 80px) 0 clamp(32px, 5vw, 64px);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: clamp(140px, 22vw, 280px);
    aspect-ratio: 1;
    background: rgba(223, 224, 229, 0.6);
    box-shadow: -60px -60px 0 rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

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

.page-hero h1 {
    max-width: 14em;
}

.page-text {
    max-width: 44em;
    color: var(--deep);
}

.crumbs {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 24px;
}

.crumbs a {
    color: var(--deep);
}

.crumbs span[aria-hidden] {
    margin: 0 0.3em;
    color: var(--navy);
}

.area-head {
    display: grid;
    gap: 8px 28px;
    align-items: end;
}

@media (min-width: 700px) {
    .area-head {
        grid-template-columns: auto 1fr;
    }
}

.area-big-n {
    font: 400 clamp(5rem, 14vw, 10rem)/0.8 var(--display);
    color: var(--navy);
}

.area-head h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.area-body {
    padding: clamp(48px, 7vw, 96px) 0;
}

.area-body-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .area-body-grid {
        grid-template-columns: 320px 1fr;
        gap: 56px;
    }
}

.muted {
    color: var(--muted);
}

.trail-list {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
}

.trail-list li {
    counter-increment: step;
    position: relative;
    padding: 4px 0 28px 70px;
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--ink);
}

.trail-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    font: 400 1.4rem/1 var(--display);
    box-shadow: 5px 5px 0 var(--sky);
}

.trail-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 56px;
    bottom: 6px;
    width: 2px;
    background: var(--ice);
}

.others {
    background: var(--white);
    padding: clamp(40px, 6vw, 72px) 0;
    border-top: 1px solid var(--mist);
}

.others h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chips a {
    display: inline-block;
    padding: 0.55em 1em;
    border-radius: 999px;
    border: 1px solid rgba(19, 59, 116, 0.3);
    color: var(--deep);
    font-weight: 700;
    text-decoration: none;
}

.chips a span {
    font-family: var(--display);
    color: var(--mid);
    margin-right: 0.2em;
}

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

.chips a:hover span {
    color: var(--ice);
}

.entries {
    padding: clamp(48px, 7vw, 88px) 0;
}

.entry-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.entry {
    position: relative;
    padding: 26px 24px 20px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--mist);
    box-shadow: 10px 10px 0 var(--mist);
}

.entry .area-n {
    display: block;
    color: var(--navy);
    margin-bottom: 8px;
}

.entry:target {
    border-color: var(--navy);
    box-shadow: 10px 10px 0 var(--sky);
}

/* clients */

.client-list {
    padding: clamp(48px, 7vw, 96px) 0;
}

.client-group {
    margin-top: 28px;
}

.client-group h3 {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.names {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2 300px;
    column-gap: 40px;
}

.names li {
    break-inside: avoid;
    position: relative;
    padding: 12px 0 12px 26px;
    border-bottom: 1px solid var(--mist);
}

.names li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 10px;
    height: 10px;
    background: var(--sky);
    box-shadow: 3px 3px 0 var(--navy);
}

.client-state {
    --focus: var(--sky);
    padding: 28px 26px;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--on-dark);
}

.client-state h3 {
    color: #fff;
}

.client-state .names li {
    border-color: rgba(189, 226, 251, 0.25);
    font: 400 1.35rem/1.25 var(--display);
}

/* links */

.link-list {
    padding: clamp(48px, 7vw, 96px) 0;
}

.link-grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .link-grid {
        grid-template-columns: 1.3fr 1fr;
        gap: 64px;
    }
}

.link-grid h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

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

.links li {
    border-bottom: 1px solid var(--mist);
}

.links a,
.links span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
}

.links a {
    font-weight: 700;
    color: var(--deep);
    text-decoration: none;
}

.links a svg {
    flex: none;
    color: var(--mid);
}

.links a:hover {
    background: var(--ice);
    color: var(--deep);
}

.links span {
    color: var(--muted);
}

/* contact */

.contact-band {
    padding: clamp(40px, 6vw, 88px) 0;
}

.contact-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.15fr;
        gap: 32px;
        align-items: start;
    }
}

.contact-card,
.form-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--mist);
}

.contact-card {
    box-shadow: 14px 14px 0 var(--sky);
}

.contact-card img {
    margin-bottom: 18px;
}

.contact-card h2,
.form-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.contact-list {
    margin: 0;
}

.contact-list div {
    padding: 14px 0;
    border-top: 1px solid var(--mist);
}

.contact-list dt {
    font: 800 0.78rem/1.4 var(--text);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
}

.contact-list dd {
    margin: 4px 0 0;
}

.big-phone {
    font: 400 clamp(1.7rem, 3.6vw, 2.3rem)/1.1 var(--display);
    color: var(--deep);
    text-decoration: none;
}

.big-phone:hover {
    color: var(--navy);
    text-decoration: underline;
}

.contact-form label {
    display: block;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--deep);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #b7c2d4;
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--navy);
    outline: 3px solid var(--ice);
    outline-offset: 0;
}

.contact-form > div {
    margin-bottom: 16px;
}

.form-hint {
    margin-top: 12px;
    font-size: 0.92rem;
    color: var(--muted);
}

.contact-sent {
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--ice);
    color: var(--deep);
}

.contact-form ul {
    margin: 4px 0 0;
    padding-left: 1.2em;
    color: #9b1c1c;
}

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

.foot {
    --focus: var(--sky);
    background: var(--deep);
    color: var(--on-dark-soft);
    padding: clamp(48px, 7vw, 80px) 0 24px;
    font-size: 0.98rem;
}

.foot a {
    color: var(--on-dark);
}

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

.foot h2 {
    font: 800 0.8rem/1.3 var(--text);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sky);
    margin: 0 0 12px;
}

.foot h2:not(:first-child) {
    margin-top: 22px;
}

.foot-grid {
    display: grid;
    gap: 36px;
}

@media (min-width: 900px) {
    .foot-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 48px;
    }
}

.foot-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.foot-logo img:first-child {
    width: 60px;
}

.foot-lines span {
    color: var(--on-dark-soft);
}

.foot-phone {
    font-weight: 800;
}

.foot address {
    font-style: normal;
}

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

.foot-list li {
    padding: 3px 0;
}

.foot-bottom {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(189, 226, 251, 0.18);
    font-size: 0.9rem;
}

.foot-bottom p {
    margin: 0;
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background:
        radial-gradient(50rem 24rem at 10% 0%, rgba(255, 255, 255, 0.5), transparent 60%),
        var(--sky);
    color: var(--deep);
}

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

.nf-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.not-found h1 {
    font-size: clamp(2.4rem, 7vw, 4rem);
}

.not-found h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-top: 1.4em;
}

.not-found a:not(.btn) {
    color: var(--deep);
    font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---- 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;
    }
}

.lightbox {
    --lb-bg: rgba(8, 22, 48, 0.95);
    --lb-accent: #86c3ef;
    --lb-accent-soft: rgba(134, 195, 239, 0.25);
}
