/* Todorov & Partners – plaster and ink.
   The grey plaster of the firm's building with the navy of the logo's dots as the one ink.
   Display: Brygada 1918 (with its italic). Text: Finlandica. Signature: the dot trail on the home page. */

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

@font-face {
    font-family: "Brygada 1918";
    src: url("/fonts/brygada-1918-italic.woff2") format("woff2");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

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

:root {
    --paper: #f5f4f0;
    --sheet: #fbfaf7;
    --plaster: #e6e3dc;
    --stone: #cbc6bb;
    --ink: #161c33;
    --muted: #464c63;
    --navy: #1a3270;          /* the logo's dots */
    --navy-hover: #233f8a;
    --night: #0e1430;
    --night-2: #151d42;
    --night-text: #eef0f7;
    --night-muted: #bcc3dd;
    --dot-light: #9db0f0;
    --line: rgba(22, 28, 51, .16);
    --focus: #2f55d4;
    --radius: 22px;
    --radius-s: 12px;
    --display: "Brygada 1918", Georgia, "Times New Roman", serif;
    --text: "Finlandica", "Segoe UI", system-ui, sans-serif;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 90px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: clip;
}

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

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

a:hover {
    color: var(--navy-hover);
    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: 500;
    line-height: 1.08;
    letter-spacing: -.015em;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5.4rem);
    letter-spacing: -.025em;
}

h2 {
    font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem);
}

h1 em,
h2 em {
    font-style: italic;
    color: var(--navy);
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

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

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

.eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .7rem;
}

/* three dots before every eyebrow, the rhythm of the logo's tail */
.eyebrow::before {
    content: "";
    width: 26px;
    height: 8px;
    flex: none;
    background:
        radial-gradient(circle, currentColor 3.6px, transparent 4.2px) 0 50% / 8px 8px no-repeat,
        radial-gradient(circle, currentColor 2.6px, transparent 3.2px) 11px 50% / 8px 8px no-repeat,
        radial-gradient(circle, currentColor 1.8px, transparent 2.4px) 20px 50% / 8px 8px no-repeat;
}

.lead {
    font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem);
    line-height: 1.55;
    color: var(--muted);
    max-width: 40em;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    padding: .7rem 1.4rem;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font: 600 1rem/1.2 var(--text);
    text-decoration: none;
    border: 2px solid var(--navy);
    cursor: pointer;
    transition: background-color .2s, transform .2s, box-shadow .2s;
    overflow-wrap: anywhere;
}

.btn:hover {
    background: var(--navy-hover);
    border-color: var(--navy-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(26, 50, 112, .7);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
}

.btn-ghost:hover {
    background: var(--navy);
    color: #fff;
}

.btn-small {
    min-height: 40px;
    padding: .45rem 1rem;
    font-size: .95rem;
}

.more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.more::after {
    content: "→";
    transition: transform .2s;
}

.more:hover::after {
    transform: translateX(4px);
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 244, 240, .86);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    min-height: var(--header-h);
    padding-block: 10px;
}

.brand {
    flex: none;
    display: block;
    margin-right: auto;
}

.brand img {
    height: 70px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem 1.4rem;
}

.nav > a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    padding: .4rem 0;
    position: relative;
}

.nav > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}

.nav > a:hover::after,
.nav > a[aria-current="page"]::after,
.nav > a.is-within::after {
    transform: scaleX(1);
}

.nav > a[aria-current="page"],
.nav > a.is-within {
    color: var(--navy);
}

.nav > a.top-mail {
    color: #fff;
    padding: .45rem 1rem;
}

.nav > a.top-mail::after {
    display: none;
}

.nav > a.top-mail:hover {
    color: #fff;
}

.lang {
    display: flex;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    font-size: .85rem;
    font-weight: 600;
}

.lang > * {
    padding: .2rem .6rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
}

.lang [aria-current] {
    background: var(--ink);
    color: var(--paper);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: .4rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--sheet);
    color: var(--ink);
    font: 600 1rem var(--text);
    cursor: pointer;
}

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

.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;
}

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

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

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

@media (max-width: 900px) {
    :root {
        --header-h: 72px;
    }

    .brand img {
        height: 52px;
    }

    .nav {
        width: 100%;
        gap: .25rem 1rem;
        padding-bottom: .4rem;
    }

    .has-menu .menu-toggle:not([hidden]) {
        display: inline-flex;
    }

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

    .has-menu .nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 0 1rem;
    }

    .has-menu .nav.is-open > a {
        padding: .8rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 1.1rem;
    }

    .has-menu .nav.is-open > a::after {
        display: none;
    }

    .has-menu .nav.is-open .lang {
        align-self: flex-start;
        margin: 1rem 0;
    }

    .has-menu .nav.is-open > a.top-mail {
        border: 2px solid var(--navy);
        justify-content: center;
        padding: .7rem 1rem;
    }
}

/* ---- sections ---- */

.band {
    padding-block: clamp(56px, 8vw, 110px);
}

.band-plaster {
    background: var(--plaster);
}

.section-head {
    margin-bottom: clamp(28px, 4vw, 48px);
    max-width: 46rem;
}

.section-head h2 {
    margin: 0;
}

.section-head-split {
    max-width: none;
    display: grid;
    gap: 1rem 4rem;
    align-items: end;
}

.section-head-split > p {
    color: var(--muted);
    margin: 0;
    max-width: 36rem;
}

@media (min-width: 900px) {
    .section-head-split {
        grid-template-columns: 1fr 1fr;
    }
}

/* the faint dot grid of the plaster sections */
.hero,
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle, rgba(26, 50, 112, .2) 1.3px, transparent 1.8px) 0 0 / 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 90% at 85% 10%, #000 10%, transparent 70%);
}

/* ---- home: hero ---- */

.hero {
    padding-block: clamp(48px, 9vw, 120px) clamp(56px, 8vw, 100px);
}

.hero-grid {
    display: grid;
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
}

.hero h1 {
    max-width: 13em;
    font-size: clamp(2.5rem, 1.2rem + 5.6vw, 6.2rem);
    margin-bottom: clamp(24px, 3vw, 40px);
}

.hero h1 em {
    display: block;
}

.hero .lead {
    margin: 0;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin: 2rem 0 0;
}

.hero-photo {
    margin: 0;
    position: relative;
    justify-self: center;
    max-width: 618px;
    width: 100%;
}

.hero-photo {
    padding: 0 18px 18px 0;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 18px 0 0 18px;
    border-radius: var(--radius);
    background: var(--navy);
    z-index: -1;
}

.hero-photo a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero-photo img {
    width: 100%;
    transition: transform .5s;
}

.hero-photo a:hover img {
    transform: scale(1.03);
}

@media (min-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr 1.05fr;
        align-items: end;
    }

    .hero-photo {
        justify-self: end;
        max-width: calc(618px + 18px);
    }
}

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

    .hero h1 {
        animation-delay: .08s;
    }

    .hero .lead {
        animation-delay: .18s;
    }

    .hero .actions {
        animation-delay: .28s;
    }

    .hero-photo {
        animation-delay: .38s;
    }

    .hero::before {
        animation: fade 1.6s ease-out both;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
}

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

/* ---- home: bento of the practice areas ---- */

.bento {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.bento a {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    height: 100%;
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.bento a:hover {
    transform: translateY(-4px);
    border-color: var(--navy);
    box-shadow: 0 18px 40px -24px rgba(14, 20, 48, .55);
    color: var(--ink);
}

.num {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--navy);
}

.bento-title {
    font-family: var(--display);
    font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem);
    font-weight: 500;
    line-height: 1.12;
    overflow-wrap: break-word;
    hyphens: auto;
}

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

.bento-1 a {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    justify-content: flex-end;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.bento-1 a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 1.4px, transparent 2px) 0 0 / 20px 20px;
    -webkit-mask-image: linear-gradient(200deg, #000, transparent 65%);
    mask-image: linear-gradient(200deg, #000, transparent 65%);
}

.bento-1 a:hover {
    color: #fff;
    border-color: var(--night);
}

.bento-1 .num,
.bento-1 .bento-text {
    color: #dfe5f7;
    position: relative;
}

.bento-1 .bento-title {
    font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem);
    position: relative;
}

.bento-6 a {
    background: var(--plaster);
}

@media (min-width: 700px) {
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-1 {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1000px) {
    .bento {
        grid-template-columns: repeat(6, 1fr);
    }

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

    .bento-2,
    .bento-3 {
        grid-column: span 3;
    }

    .bento-4,
    .bento-5,
    .bento-6 {
        grid-column: span 2;
    }
}

/* ---- home: the night band with the dot trail ---- */

.night {
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(42, 66, 150, .45), transparent 70%),
        var(--night);
    color: var(--night-text);
    padding-block: clamp(64px, 9vw, 120px);
    overflow: hidden;
}

.night h2 {
    color: #fff;
}

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

.night .eyebrow {
    color: var(--dot-light);
}

.night a {
    color: #fff;
}

.night-head {
    display: grid;
    gap: 1rem 3rem;
    align-items: end;
}

.night-head p:last-child {
    max-width: 34rem;
    margin: 0;
}

.big-year {
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(5rem, 3rem + 10vw, 11rem);
    line-height: .8;
    letter-spacing: -.04em;
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--dot-light);
}

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

.trail {
    list-style: none;
    margin: clamp(40px, 6vw, 72px) 0 0;
    padding: 0 0 0 30px;
    position: relative;
}

/* phone: a vertical line of dots */
.trail::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 6px;
    background: radial-gradient(circle, var(--dot-light) 2.4px, transparent 3px) 50% 0 / 6px 14px repeat-y;
    opacity: .6;
}

.trail li {
    position: relative;
    padding-bottom: 1.4rem;
}

.trail li::before {
    content: "";
    position: absolute;
    left: -30px;
    top: .35rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dot-light);
    box-shadow: 0 0 0 6px rgba(157, 176, 240, .16);
}

.trail a {
    display: grid;
    text-decoration: none;
    color: var(--night-text);
}

.trail a:hover .trail-name {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.trail a:focus-visible {
    outline-color: var(--dot-light);
}

.trail-year {
    font-family: var(--display);
    font-size: 1.6rem;
    line-height: 1.1;
    color: #fff;
}

.trail-name {
    font-weight: 600;
}

.trail-role {
    font-size: .9rem;
    color: var(--night-muted);
}

@media (min-width: 900px) {
    .trail {
        padding: 0;
        height: 320px;
        margin-inline: 70px;
    }

    .trail::before {
        left: -8px;
        right: -8px;
        top: 50%;
        bottom: auto;
        width: auto;
        height: 6px;
        transform: translateY(-50%);
        background: radial-gradient(circle, var(--dot-light) 2.4px, transparent 3px) 0 50% / 14px 6px repeat-x;
        transform-origin: left;
    }

    .trail li {
        position: absolute;
        left: calc(var(--at) / var(--years) * 100%);
        top: 0;
        bottom: 0;
        width: 0;
        padding: 0;
    }

    .trail li::before {
        left: 0;
        top: 50%;
        width: 22px;
        height: 22px;
        transform: translate(-50%, -50%);
    }

    /* the stem from the dot to the label */
    .trail li::after {
        content: "";
        position: absolute;
        left: -.5px;
        width: 1px;
        height: 54px;
        background: linear-gradient(var(--dot-light), transparent);
        opacity: .7;
    }

    .trail li.is-up::after {
        bottom: calc(50% + 14px);
        transform: scaleY(-1);
    }

    .trail li.is-down::after {
        top: calc(50% + 14px);
    }

    .trail a {
        position: absolute;
        width: 170px;
        left: 0;
        transform: translateX(-50%);
        text-align: center;
    }

    .trail li:first-child a {
        transform: translateX(-24px);
        text-align: left;
    }

    .trail li:last-child a {
        transform: translateX(calc(-100% + 24px));
        text-align: right;
    }

    .trail .is-up a {
        bottom: calc(50% + 74px);
    }

    .trail .is-down a {
        top: calc(50% + 74px);
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .trail {
            view-timeline-name: --trail;
        }

        .trail::before {
            animation: draw-y linear both;
            animation-timeline: --trail;
            animation-range: entry 0% cover 30%;
            transform-origin: top;
        }

        .trail li {
            animation: pop linear both;
            animation-timeline: --trail;
            animation-range: entry calc(30% + var(--i) * 8%) entry calc(55% + var(--i) * 8%);
        }

        @media (min-width: 900px) {
            .trail::before {
                animation-name: draw-x;
            }

            .trail li {
                animation-range: cover calc(8% + var(--i) * 2.5%) cover calc(16% + var(--i) * 2.5%);
            }
        }
    }
}

@keyframes draw-x {
    from {
        transform: translateY(-50%) scaleX(0);
    }
    to {
        transform: translateY(-50%) scaleX(1);
    }
}

@keyframes draw-y {
    from {
        transform: scaleY(0);
    }
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* ---- home: the sideways strip of portraits ---- */

.strip {
    list-style: none;
    margin: 0;
    padding: 0 var(--gutter) 18px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: var(--navy) transparent;
}

@media (min-width: 1280px) {
    .strip {
        padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter));
        scroll-padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter));
    }
}

.strip li {
    flex: 0 0 clamp(170px, 46vw, 230px);
    scroll-snap-align: start;
}

.strip a {
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.strip img {
    width: 100%;
    aspect-ratio: 299 / 389;
    object-fit: cover;
    border-radius: var(--radius-s);
    filter: grayscale(1) contrast(1.02);
    transition: transform .3s, box-shadow .3s;
}

.strip a:hover img {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -18px rgba(14, 20, 48, .7);
}

.strip-name {
    display: block;
    margin-top: .7rem;
    font-family: var(--display);
    font-size: 1.15rem;
    line-height: 1.2;
}

.strip-role {
    display: block;
    color: var(--muted);
    font-size: .92rem;
}

.band-plaster .more {
    margin-top: 1.5rem;
}

/* ---- call to action band ---- */

.cta {
    background: var(--navy);
    color: #fff;
    padding-block: clamp(56px, 8vw, 96px);
    position: relative;
    overflow: hidden;
}

.cta::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 255, 255, .18) 1.6px, transparent 2.2px) 0 0 / 22px 22px;
    -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%);
    mask-image: radial-gradient(circle, #000 20%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    color: #fff;
}

.cta .eyebrow {
    color: #d8e0f7;
}

.cta a {
    color: #fff;
}

.cta address {
    font-style: normal;
    margin-bottom: .6rem;
}

.cta .btn-ghost {
    color: #fff;
    border-color: #fff;
}

.cta .btn-ghost:hover {
    background: #fff;
    color: var(--navy);
}

.cta-grid {
    display: grid;
    gap: 2rem;
    align-items: end;
    position: relative;
    z-index: 1;
}

.cta-mail {
    font-family: var(--display);
    font-size: clamp(1.4rem, .9rem + 2.4vw, 2.6rem);
    line-height: 1.15;
    margin: 0;
    overflow-wrap: anywhere;
}

.cta-mail a {
    text-decoration-thickness: 1px;
}

.cta p .btn + .btn {
    margin-left: .5rem;
}

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

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

.page-hero {
    background: var(--plaster);
    padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px);
}

.page-hero h1 {
    margin-bottom: .3em;
}

.page-hero .lead {
    margin: 0;
}

/* practice areas: a numbered list */
.areas {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.areas li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .2rem clamp(18px, 4vw, 56px);
    padding-block: clamp(26px, 4vw, 44px);
    border-top: 1px solid var(--line);
}

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

.areas .num {
    font-size: clamp(2.4rem, 1.6rem + 3vw, 4.6rem);
    line-height: .9;
    font-weight: 400;
    color: var(--navy);
    min-width: 1.5em;
}

.areas h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.3rem);
    margin-bottom: .4em;
}

.areas p {
    max-width: 44rem;
    color: var(--muted);
    margin: 0;
    font-size: 1.1rem;
}

.areas li:target {
    background: linear-gradient(90deg, rgba(26, 50, 112, .07), transparent);
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .areas li,
        .team li {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

/* team grid */
.team {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: clamp(20px, 3vw, 34px) clamp(16px, 2.4vw, 28px);
}

@media (min-width: 1000px) {
    .team {
        grid-template-columns: repeat(3, minmax(0, 330px));
        justify-content: space-between;
    }
}

.team a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--ink);
    text-decoration: none;
}

.team-photo {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--plaster);
    margin-bottom: 1rem;
}

.team-photo img {
    width: 100%;
    aspect-ratio: 299 / 389;
    object-fit: cover;
    filter: grayscale(1);
    transition: transform .5s;
}

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

.team-name {
    font-family: var(--display);
    font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem);
    overflow-wrap: break-word;
    line-height: 1.15;
}

.team a:hover .team-name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

.team-role {
    color: var(--navy);
    font-weight: 600;
    font-size: .95rem;
    margin-top: .25rem;
}

.team-areas {
    color: var(--muted);
    font-size: .95rem;
    margin-top: .35rem;
}

/* bio */
.bio {
    padding-block: clamp(32px, 5vw, 72px) clamp(48px, 7vw, 96px);
    position: relative;
}

.bio::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 340px;
    background: var(--plaster);
    z-index: -1;
}

.bio-grid {
    display: grid;
    gap: clamp(28px, 5vw, 72px);
}

.crumbs {
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.crumbs a {
    text-decoration: none;
}

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

.bio-photo {
    margin: 0;
    position: relative;
    max-width: 396px;
}

.bio-photo {
    padding: 0 16px 16px 0;
    width: min(100%, 300px);
}

@media (min-width: 860px) {
    .bio-photo {
        width: auto;
    }
}

.bio-photo::before {
    content: "";
    position: absolute;
    inset: 16px 0 0 16px;
    border-radius: var(--radius);
    background: var(--navy);
    z-index: -1;
}

.bio-photo a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}

.bio-photo img {
    width: 100%;
    filter: grayscale(1);
}

.bio-main h1 {
    font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem);
    margin-bottom: .2em;
}

.bio-role {
    font-family: var(--display);
    font-style: italic;
    font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem);
    color: var(--navy);
    margin-bottom: .4rem;
}

.bio-note {
    color: var(--muted);
    margin-bottom: .4rem;
}

.bio-mail {
    margin: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .7rem;
    align-items: baseline;
}

.bio-mail span {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.bio-mail a {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.bio-part {
    margin-top: clamp(28px, 4vw, 44px);
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.bio-part h2 {
    font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem);
}

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

.chips li {
    padding: .4rem .95rem;
    border-radius: 999px;
    background: var(--sheet);
    border: 1px solid var(--line);
    font-weight: 500;
}

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

.dots li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .55rem;
    max-width: 46rem;
}

.dots li::before {
    content: "";
    position: absolute;
    left: .2rem;
    top: .62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--navy);
}

.dots-title {
    font-weight: 600;
    margin: 1rem 0 .5rem;
}

.bio-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(40px, 6vw, 72px);
}

.bio-pager a {
    display: grid;
    padding: 1rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    text-decoration: none;
    font-family: var(--display);
    font-size: 1.15rem;
    line-height: 1.2;
    min-width: 0;
    flex: 0 1 300px;
    background: var(--sheet);
    transition: border-color .2s, transform .2s;
}

.bio-pager a:last-child {
    text-align: right;
}

.bio-pager a:hover {
    border-color: var(--navy);
    transform: translateY(-2px);
}

.bio-pager span {
    font-family: var(--text);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (min-width: 860px) {
    .bio-grid {
        grid-template-columns: minmax(260px, 380px) 1fr;
        align-items: start;
    }

    .bio-side {
        position: sticky;
        top: calc(var(--header-h) + 24px);
    }
}

/* contact */
.duo {
    display: grid;
    gap: 24px;
    align-items: start;
}

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

.panel {
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 40px);
}

.panel h2 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
}

.panel-ink {
    background: var(--night);
    border-color: var(--night);
    color: var(--night-text);
}

.panel-ink a {
    color: #fff;
}

.panel-ink a:focus-visible {
    outline-color: var(--dot-light);
}

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

.contact-list dt {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dot-light);
    margin-bottom: .2rem;
}

.contact-list dd {
    margin: 0;
}

.big-mail {
    font-family: var(--display);
    font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.panel-note {
    margin: 2rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: var(--night-muted);
    font-size: .95rem;
}

/* the form of the platform */
.contact-form > div {
    margin-bottom: 1.1rem;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--stone);
    border-radius: var(--radius-s);
    padding: .75rem .9rem;
}

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

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

.contact-form ::placeholder {
    color: #6a6f82;
}

.contact-form ul {
    margin: .3rem 0 0;
    padding-left: 1.1rem;
    color: #a3221b;
}

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

.contact-sent {
    background: #e3ecdf;
    border-left: 4px solid #2e6b2c;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.4rem;
}

.contact-sent strong {
    display: block;
}

/* legal texts */
.prose {
    max-width: 52rem;
}

.prose section + section {
    margin-top: clamp(32px, 5vw, 56px);
    padding-top: clamp(24px, 4vw, 40px);
    border-top: 1px solid var(--line);
}

.prose h2 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
}

.prose p {
    color: var(--ink);
}

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

.foot {
    background: var(--night);
    color: var(--night-muted);
    padding-block: clamp(48px, 7vw, 80px) 28px;
}

.foot a {
    color: var(--night-text);
}

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

.foot a:focus-visible {
    outline-color: var(--dot-light);
}

.foot h2 {
    font-family: var(--text);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dot-light);
    margin-bottom: .9rem;
}

.foot address {
    font-style: normal;
}

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

.foot-brand img {
    width: min(100%, 330px);
    margin-bottom: 1.2rem;
}

.foot-brand p {
    max-width: 24rem;
}

.foot-mail {
    overflow-wrap: anywhere;
}

.foot-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.foot-bottom {
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .9rem;
}

.foot-bottom p {
    margin: 0;
}

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

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

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px var(--gutter);
    text-align: center;
    background: radial-gradient(circle, rgba(26, 50, 112, .16) 1.3px, transparent 1.8px) 0 0 / 22px 22px, var(--paper);
}

.not-found > div {
    max-width: 36rem;
    background: var(--paper);
    padding: clamp(24px, 5vw, 48px);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -40px rgba(14, 20, 48, .6);
}

.not-found img {
    margin: 0 auto 1.6rem;
    width: min(100%, 407px);
}

.not-found h1 {
    font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
}

.not-found h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

/* ---- motion off ---- */

@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(10, 14, 34, .97);
    --lb-text: #eef0f7;
    --lb-accent: #9db0f0;
    --lb-accent-soft: rgba(157, 176, 240, .2);
}
