/* Equatorial Medical Company: shared site styles, loaded after Bootstrap. */

@view-transition {
    navigation: auto;
}

:root {
    --ink: #13201a;
    --ink-soft: #55615a;
    --paper: #fbfaf5;
    --bone: #f2efe5;
    --line: #e2ddcf;
    --line-strong: #8b8f80; /* form fields, 3:1 on paper */
    --leaf: #458f33; /* logo green: accents only, too light for body-size text */
    --leaf-deep: #2f6a24;
    --forest: #0c241a;
    --forest-raised: #133126;
    --forest-line: rgba(233, 226, 205, 0.18);
    --ivory: #f5f1e6;
    --on-forest: #c9d3c9;
    --brass: #c9ad72;
    --brass-deep: #76612f; /* brass for text on light backgrounds */
    --error: #a8200d;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --sans: "Figtree", "Segoe UI", Arial, sans-serif;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 0 56 28 28 56 0 28Z' fill='none' stroke='%23c9ad72' stroke-opacity='.16'/%3E%3C/svg%3E");
    --nested-diamonds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23c9ad72'%3E%3Cpath stroke-opacity='.5' d='m200 92 108 108-108 108L92 200Z'/%3E%3Cpath stroke-opacity='.32' d='m200 46 154 154-154 154L46 200Z'/%3E%3Cpath stroke-opacity='.18' d='m200 2 198 198-198 198L2 200Z'/%3E%3C/svg%3E");

    --bs-body-font-family: var(--sans);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--paper);
    --bs-link-color: var(--leaf-deep);
    --bs-link-color-rgb: 47, 106, 36;
    --bs-link-hover-color: var(--forest);
    --bs-link-hover-color-rgb: 12, 36, 26;
    --bs-border-color: var(--line);
}

html {
    scroll-padding-top: 6.5rem;
}

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

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.28s;
    }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }

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

body {
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--brass);
    color: var(--forest);
}

h1, h2 {
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.012em;
    line-height: 1.04;
    text-wrap: balance;
}

h1 {
    font-size: clamp(3rem, 2rem + 4.4vw, 5.75rem);
}

h2 {
    font-size: clamp(2.375rem, 1.9rem + 2.1vw, 3.75rem);
}

h3 {
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.35;
}

p {
    text-wrap: pretty;
}

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

main:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--leaf-deep);
    outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.page-header :focus-visible,
.article-head :focus-visible,
.section--forest :focus-visible,
.closer :focus-visible,
.contact__intro :focus-visible,
.not-found :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--brass);
}

.skip-link {
    position: absolute;
    top: -4rem;
    left: 1.25rem;
    z-index: 1100;
    padding: 0.625rem 1rem;
    background: var(--ivory);
    color: var(--forest);
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    color: var(--forest);
}

.container {
    --bs-gutter-x: 2.5rem;
}

@media (min-width: 992px) {
    .container {
        --bs-gutter-x: 4rem;
    }
}

.icon {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.label {
    margin-bottom: 1.25rem;
    color: var(--brass-deep);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero .label,
.page-header .label,
.contact__intro .label,
.not-found .label {
    color: var(--brass);
}

/* Reveal on scroll. site.js only hides content below the fold, so nothing depends on it running. */

[data-reveal] {
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-pending {
    opacity: 0;
    transform: translateY(1.25rem);
}

@media print {
    [data-reveal].is-pending {
        opacity: 1;
        transform: none;
    }
}

/* Buttons */

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding: 0.4375rem 0.4375rem 0.4375rem 1.625rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--forest);
    color: var(--ivory);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.pill:hover {
    background: var(--forest-raised);
    color: var(--ivory);
}

.pill__icon {
    display: grid;
    place-items: center;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 50%;
    background: var(--ivory);
    color: var(--forest);
    transition: transform 0.4s var(--ease);
}

.pill:hover .pill__icon {
    transform: translateX(2px) rotate(-45deg);
}

.pill--ivory {
    background: var(--ivory);
    color: var(--forest);
}

.pill--ivory:hover {
    background: #fff;
    color: var(--forest);
}

.pill--ivory .pill__icon {
    background: var(--forest);
    color: var(--ivory);
}

.pill--outline {
    padding-right: 1.625rem;
    border-color: var(--forest-line);
    background: transparent;
    color: var(--ivory);
}

.pill--outline:hover {
    border-color: var(--ivory);
    background: transparent;
}

.pill--small {
    min-height: 2.75rem;
    padding: 0.3125rem 1.25rem;
}

.pill:disabled {
    opacity: 0.75;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 2.75rem;
    color: var(--leaf-deep);
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) left calc(100% - 0.5rem) / 0 1px no-repeat;
    transition: background-size 0.4s var(--ease);
}

.text-link:hover {
    background-size: 100% 1px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--forest);
    transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
    box-shadow: 0 1px 0 var(--forest-line);
}

.site-header .navbar {
    --bs-navbar-padding-y: 0.875rem;
    --bs-navbar-brand-padding-y: 0;
    --bs-navbar-brand-margin-end: 0;
    transition: padding 0.3s var(--ease);
}

.site-header.is-scrolled .navbar {
    --bs-navbar-padding-y: 0.5rem;
}

.navbar-brand img {
    display: block;
    width: auto;
    height: 3.75rem;
    transition: height 0.3s var(--ease);
}

.site-header.is-scrolled .navbar-brand img {
    height: 3rem;
}

.site-header .nav-link {
    position: relative;
    padding: 0.625rem 0.875rem;
    color: var(--on-forest);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link[aria-current="page"] {
    color: var(--ivory);
}

.site-header .nav-link::after {
    content: "";
    position: absolute;
    right: 0.875rem;
    bottom: 0.3125rem;
    left: 0.875rem;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.site-header .nav-link:hover::after,
.site-header .nav-link[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: 1rem;
}

.navbar-toggler {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler span {
    position: absolute;
    right: 0.5rem;
    left: 0.5rem;
    height: 1.5px;
    background: var(--ivory);
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.navbar-toggler span:first-child {
    top: 1.125rem;
}

.navbar-toggler span:last-child {
    top: 1.5625rem;
}

.navbar-toggler[aria-expanded="true"] span {
    top: 1.34375rem;
}

.navbar-toggler[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
}

@media (max-width: 991.98px) {
    .navbar-brand img,
    .site-header.is-scrolled .navbar-brand img {
        height: 2.875rem;
    }

    .site-header .navbar,
    .site-header.is-scrolled .navbar {
        --bs-navbar-padding-y: 0.5rem;
    }

    .site-header .navbar-nav {
        padding: 1.25rem 0 1.5rem;
    }

    .site-header .nav-link {
        padding: 0.375rem 0;
        font-family: var(--serif);
        font-size: 2.125rem;
        font-weight: 400;
        line-height: 1.2;
    }

    .site-header .nav-link::after {
        display: none;
    }

    .site-header .nav-link[aria-current="page"] {
        color: var(--brass);
    }

    .nav-cta {
        margin: 1.25rem 0 0;
    }
}

/* Sections */

.section {
    position: relative;
    padding-block: clamp(4.5rem, 3rem + 6.5vw, 8.5rem);
}

.section--bone {
    background: var(--bone);
}

.section--forest {
    overflow: hidden;
    background: var(--forest);
    color: var(--on-forest);
}

.section--forest h2,
.section--forest h3 {
    color: var(--ivory);
}

.hero::before,
.page-header::before,
.article-head::before,
.section--forest::before,
.closer::before,
.not-found::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--lattice);
    mask-image: linear-gradient(105deg, transparent 40%, #000 100%);
    pointer-events: none;
}

.section--forest .container,
.closer .container,
.not-found .container {
    position: relative;
}

.section-intro {
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

/* A heading on the left that stays in view beside longer content. */
.rail {
    display: grid;
    gap: 2.5rem;
}

.rail__head p:not(.label) {
    margin-top: 1.25rem;
    color: var(--ink-soft);
    font-size: 1.125rem;
}

@media (min-width: 992px) {
    .rail {
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        align-items: start;
        gap: 4rem;
    }

    .rail__head {
        position: sticky;
        top: 7.5rem;
    }
}

/* Home hero */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--forest);
    color: var(--on-forest);
}

.hero__inner {
    position: relative;
    display: grid;
    flex: 1;
    align-items: center;
    gap: 3rem;
    padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.hero__copy {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--ivory);
    font-size: clamp(3.25rem, 2rem + 5.4vw, 6.75rem);
    line-height: 0.98;
}

.hero h1 em {
    color: var(--brass);
    font-style: italic;
    white-space: nowrap;
}

/* The two-column hero is narrow on small laptops, so the headline steps down to hold three lines. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

.hero__lead {
    max-width: 33rem;
    margin: 1.75rem 0 0;
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

.hero__art {
    display: none;
}

.hero__facts-wrap {
    position: relative;
    width: 100%;
}

.hero__facts {
    display: grid;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--forest-line);
    list-style: none;
}

.hero__facts li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.875rem;
    font-size: 0.9375rem;
}

.hero__facts li + li {
    border-top: 1px solid var(--forest-line);
}

.hero__facts strong {
    color: var(--ivory);
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 991.98px) {
    .hero::after {
        content: "";
        position: absolute;
        top: -7rem;
        right: -9rem;
        width: 24rem;
        height: 24rem;
        background: var(--nested-diamonds) center / contain no-repeat;
        pointer-events: none;
    }
}

@media (max-width: 575.98px) {
    .hero__actions .pill {
        flex: 1 1 100%;
    }

    .hero__actions .pill--outline {
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .hero {
        min-height: min(calc(100svh - 5.5rem), 62rem);
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    }

    .hero__art {
        position: relative;
        display: block;
        aspect-ratio: 1;
        width: 100%;
        max-width: min(37rem, 100svh - 17rem);
        margin-left: auto;
    }

    .hero__frame,
    .hero__photo,
    .hero__jewel {
        position: absolute;
        transform: rotate(45deg);
    }

    .hero__frame {
        border: 1px solid var(--brass);
        border-radius: 2.25rem;
    }

    .hero__frame--near {
        inset: 11%;
        opacity: 0.55;
    }

    .hero__frame--far {
        inset: 6%;
        opacity: 0.22;
    }

    .hero__photo {
        inset: 16%;
        overflow: hidden;
        border-radius: 1.75rem;
    }

    /* A CSS background, so phones never download the photo. */
    .hero__photo::before {
        content: "";
        position: absolute;
        inset: -22%;
        background: url("../img/hero.webp") center / cover no-repeat;
        transform: rotate(-45deg);
        animation: drift 26s ease-in-out infinite alternate;
    }

    .hero__jewel {
        top: calc(50% - 0.4375rem);
        right: -0.0625rem;
        width: 0.875rem;
        height: 0.875rem;
        border-radius: 2px;
        background: var(--brass);
    }

    .hero__facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero__facts li {
        flex-direction: column;
        gap: 0.125rem;
        padding-block: 1.375rem 1.625rem;
    }

    .hero__facts li + li {
        padding-left: 2rem;
        border-top: 0;
        border-left: 1px solid var(--forest-line);
    }

    .hero__facts strong {
        font-size: 1.75rem;
    }
}

/* Short laptop screens: keep the main button above the fold. */
@media (min-width: 992px) and (max-height: 820px) {
    .hero__inner {
        padding-block: 2rem;
    }

    .hero__lead {
        margin-top: 1.25rem;
    }

    .hero__actions {
        margin-top: 1.75rem;
    }
}

@media (min-width: 1200px) and (max-height: 820px) {
    .hero h1 {
        font-size: 5.25rem;
    }
}

@keyframes drift {
    from {
        transform: rotate(-45deg) scale(1);
    }

    to {
        transform: rotate(-45deg) scale(1.1);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }

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

.hero__copy > *,
.hero__art,
.page-header .container > * {
    animation: rise 1s var(--ease) both;
}

.hero__copy > :nth-child(2),
.page-header .container > :nth-child(2) {
    animation-delay: 0.08s;
}

.hero__copy > :nth-child(3),
.page-header .container > :nth-child(3) {
    animation-delay: 0.16s;
}

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

.hero__art {
    animation-delay: 0.12s;
}

/* What we supply */

.index-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
    counter-reset: index;
}

.index-list li {
    border-bottom: 1px solid var(--line);
    counter-increment: index;
}

.index-list a {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-block: 1.25rem;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
    line-height: 1.15;
    text-decoration: none;
    transition: padding-left 0.5s var(--ease), color 0.3s;
}

.index-list a::before {
    content: counter(index, decimal-leading-zero);
    flex: none;
    width: 2rem;
    color: var(--brass-deep);
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.index-list .icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    color: var(--leaf-deep);
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.5s var(--ease);
}

.index-list a:hover {
    padding-left: 0.75rem;
    color: var(--leaf-deep);
}

.index-list a:hover .icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Partner logos, in a ruled grid */

.logo-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--line);
    list-style: none;
}

.logo-grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 8.5rem;
    padding: 1.5rem 1.25rem;
    background: var(--paper);
}

.logo-grid img {
    width: auto;
    max-width: min(100%, 9.5rem);
    height: auto;
    max-height: 4.25rem;
}

.logo-grid__name {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    line-height: 1.35;
    text-align: center;
}

.logo-grid:not(.logo-grid--named) .logo-grid__name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.logo-grid--named li {
    min-height: 13rem;
    justify-content: space-between;
    padding-block: 2.5rem 1.75rem;
}

.logo-grid--named img {
    margin-block: auto;
    max-width: min(100%, 12rem);
    max-height: 5.25rem;
}

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

    .logo-grid li {
        min-height: 10.5rem;
    }

    .logo-grid--named li {
        min-height: 15rem;
    }
}

/* Vision and mission */

.statements {
    display: grid;
    gap: 3.5rem;
}

.statement {
    padding-top: 1.75rem;
    border-top: 1px solid var(--forest-line);
}

.statement h2 {
    margin-bottom: 1.5rem;
    color: var(--brass);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.statement__lead {
    margin-bottom: 1.5rem;
    color: var(--ivory);
    font-family: var(--serif);
    font-size: clamp(1.75rem, 1.45rem + 1.15vw, 2.5rem);
    line-height: 1.16;
}

@media (min-width: 992px) {
    .statements {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5rem;
    }
}

/* Values */

.value-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid var(--line);
    background: var(--line);
    counter-reset: value;
}

.value {
    padding: 1.875rem 1.75rem 2.25rem;
    background: var(--paper);
    counter-increment: value;
}

.value::before {
    content: counter(value, decimal-leading-zero);
    display: block;
    margin-bottom: 1.5rem;
    color: var(--brass-deep);
    font-family: var(--serif);
    font-size: 1.625rem;
    line-height: 1;
}

.value h3 {
    margin-bottom: 0.5rem;
}

.value p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .value-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Ruled rows: impact and reasons */

.ruled {
    border-top: 1px solid var(--line);
    counter-reset: row;
}

.ruled__row {
    display: grid;
    gap: 0.625rem 2.5rem;
    padding-block: 2rem;
    border-bottom: 1px solid var(--line);
    counter-increment: row;
}

.ruled__row h2,
.ruled__row h3 {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.625rem, 1.45rem + 0.7vw, 2.125rem);
    font-weight: 400;
    letter-spacing: -0.008em;
    line-height: 1.12;
}

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

.ruled--numbered .ruled__row::before {
    content: counter(row, decimal-leading-zero);
    color: var(--brass-deep);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 2.2;
}

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

    .ruled--numbered .ruled__row {
        grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 7fr);
    }
}

.fact-rows {
    margin: 0;
    border-top: 1px solid var(--line);
}

.fact-rows > div {
    display: grid;
    gap: 0.25rem 2rem;
    padding-block: 1.125rem;
    border-bottom: 1px solid var(--line);
}

.fact-rows dt {
    color: var(--brass-deep);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 2;
    text-transform: uppercase;
}

.fact-rows dd {
    margin: 0;
}

@media (min-width: 576px) {
    .fact-rows > div {
        grid-template-columns: 9rem minmax(0, 1fr);
    }
}

/* Closing call to action, flows into the footer */

.closer {
    position: relative;
    overflow: hidden;
    background: var(--forest);
    color: var(--on-forest);
}

.closer__inner {
    display: grid;
    gap: 2rem;
    padding-block: clamp(4.5rem, 3rem + 6vw, 8rem);
}

.closer h2 {
    max-width: 16ch;
    color: var(--ivory);
    font-size: clamp(2.75rem, 2rem + 3.6vw, 5rem);
}

.closer p {
    max-width: 30rem;
    margin-top: 1.25rem;
    font-size: 1.125rem;
}

.closer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.75rem;
}

.closer__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 2.75rem;
    color: var(--ivory);
    font-weight: 500;
    text-decoration: none;
}

.closer__phone:hover {
    color: var(--brass);
}

@media (min-width: 992px) {
    .closer__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 4rem;
    }
}

/* Footer */

.site-footer {
    padding-bottom: 1.75rem;
    background: var(--forest);
    color: var(--on-forest);
    font-size: 0.9375rem;
}

.site-footer__grid {
    display: grid;
    gap: 2.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--forest-line);
}

.site-footer__logo {
    display: inline-block;
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: 3.75rem;
}

.site-footer__tagline {
    max-width: 21rem;
    margin-top: 1.25rem;
    color: var(--ivory);
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1.2;
}

.site-footer__title {
    margin-bottom: 0.875rem;
    color: var(--brass);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

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

.site-footer__list a,
.site-footer__list span {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 2.25rem;
    color: var(--on-forest);
    text-decoration: none;
}

.site-footer__list a:hover {
    color: var(--ivory);
}

.site-footer__list .icon {
    width: 1.0625rem;
    height: 1.0625rem;
    color: var(--brass);
}

.site-footer__legal {
    margin: 3rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--forest-line);
    font-size: 0.875rem;
}

@media (min-width: 576px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 6fr) minmax(0, 2fr) minmax(0, 4fr);
    }

    .site-footer__brand {
        grid-column: auto;
    }
}

/* Inner page header */

.page-header {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem);
    background: var(--forest);
    color: var(--on-forest);
}

.page-header::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6rem;
    width: 34rem;
    height: 34rem;
    margin-top: -17rem;
    background: var(--nested-diamonds) center / contain no-repeat;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    max-width: 15ch;
    color: var(--ivory);
}

.page-header__lead {
    max-width: 38rem;
    margin: 1.5rem 0 0;
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

@media (max-width: 991.98px) {
    .page-header::after {
        top: -6rem;
        right: -11rem;
        width: 22rem;
        height: 22rem;
        margin-top: 0;
        opacity: 0.7;
    }
}

/* About */

.lead-copy {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.75rem, 1.45rem + 1.15vw, 2.5rem);
    line-height: 1.16;
}

.about-copy {
    max-width: 38rem;
    margin-top: 1.75rem;
    color: var(--ink-soft);
}

.about-facts {
    margin-top: 3rem;
}

.apart-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--line);
    list-style: none;
}

.apart-grid li {
    display: flex;
    align-items: flex-end;
    min-height: 8.5rem;
    padding: 1.5rem;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
    line-height: 1.12;
}

@media (min-width: 992px) {
    .apart-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .apart-grid li {
        min-height: 11rem;
    }
}

.team-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--line);
    list-style: none;
}

.person {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    padding: 1.5rem;
    background: var(--paper);
}

.person__initials {
    display: grid;
    flex: none;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid var(--brass);
    border-radius: 50%;
    color: var(--brass-deep);
    font-family: var(--serif);
    font-size: 1.375rem;
    line-height: 1;
}

.person__name {
    margin: 0;
    font-size: 1.0625rem;
}

.person__role {
    margin: 0.125rem 0 0;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    line-height: 1.35;
}

@media (min-width: 576px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.team-note {
    margin-top: 1.5rem;
    color: var(--ink-soft);
}

/* Contact */

.contact {
    position: relative;
    overflow: hidden;
    background: var(--forest);
    color: var(--on-forest);
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--lattice);
    mask-image: linear-gradient(285deg, transparent 40%, #000 100%);
    pointer-events: none;
}

.contact__inner {
    position: relative;
    display: grid;
    gap: 3rem;
    padding-block: clamp(3rem, 2rem + 5vw, 6.5rem);
}

.contact__intro h1 {
    color: var(--ivory);
}

.contact__intro > p:not(.label) {
    max-width: 30rem;
    margin-top: 1.5rem;
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.contact-lines {
    margin: 2.5rem 0 0;
    padding: 0;
    border-top: 1px solid var(--forest-line);
    list-style: none;
}

.contact-lines li {
    border-bottom: 1px solid var(--forest-line);
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem;
    color: var(--ivory);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-line:hover {
    color: var(--brass);
}

.contact-line > div {
    min-width: 0;
}

.contact-line .icon {
    color: var(--brass);
}

.contact-line .icon:last-child {
    width: 1.125rem;
    height: 1.125rem;
    margin-left: auto;
    opacity: 0.7;
}

.contact-line__label {
    display: block;
    color: var(--on-forest);
    font-size: 0.875rem;
    line-height: 1.4;
}

.contact-line__value {
    display: block;
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.contact-form,
.form-success {
    padding: clamp(1.75rem, 1.25rem + 2vw, 3.25rem);
    background: var(--paper);
    color: var(--ink);
}

.contact-form h2,
.form-success h2 {
    margin-bottom: 1.75rem;
    font-size: clamp(2rem, 1.75rem + 1vw, 2.75rem);
}

.contact-form .form-label {
    margin-bottom: 0.125rem;
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 600;
}

.contact-form .form-control {
    min-height: 2.875rem;
    padding: 0.5rem 0;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.0625rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea.form-control {
    min-height: 7rem;
}

.contact-form .form-control:focus {
    border-bottom-color: var(--leaf-deep);
    box-shadow: 0 1px 0 var(--leaf-deep);
}

.contact-form .form-control[aria-invalid="true"] {
    border-bottom-color: var(--error);
    box-shadow: 0 1px 0 var(--error);
}

.field-error {
    margin-top: 0.375rem;
    color: var(--error);
    font-size: 0.9375rem;
    font-weight: 500;
}

.field-error:empty {
    display: none;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.375rem;
    color: var(--ink-soft);
    font-size: 0.875rem;
}

.field-meta .field-error {
    margin-top: 0;
}

.field-meta__count {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.contact-form .pill {
    width: 100%;
}

.form-success:focus {
    outline: none;
}

.form-success h2 {
    margin: 0 0 0.75rem;
}

.form-success p {
    color: var(--ink-soft);
}

.form-success__mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--brass);
    border-radius: 50%;
    color: var(--leaf-deep);
}

.form-success .pill {
    margin-top: 1.75rem;
}

.contact-map {
    height: clamp(18rem, 12rem + 18vw, 28rem);
    background: var(--bone);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(0.95);
}

@media (min-width: 992px) {
    .contact__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 5rem;
    }
}

/* Blog list */

.post-grid {
    display: grid;
    gap: 3.5rem 2.5rem;
    grid-template-columns: minmax(0, 1fr);
}

.post__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.post__media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--bone);
}

.post__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.post__link:hover .post__media img {
    transform: scale(1.04);
}

.post__placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--brass-deep);
}

.post__placeholder .icon {
    width: 2.25rem;
    height: 2.25rem;
}

.post__body {
    padding-top: 1.5rem;
}

.post__date,
.article__date {
    display: block;
    color: var(--brass-deep);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.post h2 {
    margin-top: 0.75rem;
    font-size: clamp(1.75rem, 1.55rem + 0.85vw, 2.25rem);
    line-height: 1.1;
    transition: color 0.3s;
}

.post__link:hover h2 {
    color: var(--leaf-deep);
}

.post p {
    margin-top: 0.875rem;
    color: var(--ink-soft);
}

.post__more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--leaf-deep);
    font-weight: 600;
}

.post__more .icon {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.4s var(--ease);
}

.post__link:hover .post__more .icon {
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .post--lead {
        grid-column: 1 / -1;
    }

    .post--lead .post__link {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: center;
        gap: 4rem;
    }

    .post--lead .post__body {
        padding-top: 0;
    }

    .post--lead h2 {
        font-size: clamp(2.5rem, 1.9rem + 1.8vw, 3.5rem);
        line-height: 1.04;
    }
}

.empty-state {
    padding-block: 4rem;
    border-block: 1px solid var(--line);
    color: var(--ink-soft);
    text-align: center;
}

/* Blog article */

.read-progress {
    display: none;
}

@supports (animation-timeline: scroll()) {
    .read-progress {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1040;
        display: block;
        height: 2px;
        background: var(--brass);
        transform-origin: left;
        animation: read linear both;
        animation-timeline: scroll(root);
    }

    @keyframes read {
        from {
            transform: scaleX(0);
        }

        to {
            transform: scaleX(1);
        }
    }
}

.article-head {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(6rem, 5rem + 6vw, 11rem);
    background: var(--forest);
    color: var(--on-forest);
    text-align: center;
}

.article-head .container {
    position: relative;
}

.article-head .text-link {
    color: var(--on-forest);
}

.article-head .text-link:hover {
    color: var(--ivory);
}

.article-head__back {
    margin-bottom: 1.5rem;
}

.article__date {
    color: var(--brass);
}

.article-head h1 {
    max-width: 22ch;
    margin: 1.25rem auto 0;
    color: var(--ivory);
    font-size: clamp(2.5rem, 1.8rem + 3.2vw, 4.75rem);
}

.article__image {
    position: relative;
    display: block;
    width: 100%;
    max-width: 62rem;
    aspect-ratio: 16 / 9;
    margin: calc(-1 * clamp(4rem, 3rem + 6vw, 9rem)) auto 0;
    object-fit: cover;
}

.article {
    padding-block: clamp(3rem, 2.5rem + 3vw, 5rem) clamp(4rem, 3rem + 5vw, 7rem);
}

.article__body {
    max-width: 42rem;
    margin-inline: auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.article__body h2 {
    margin: 3rem 0 0.75rem;
    font-size: clamp(1.875rem, 1.65rem + 0.9vw, 2.5rem);
    line-height: 1.1;
}

.article__body > h2:first-child {
    margin-top: 0;
}

.article__body > p:first-of-type {
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.5rem, 1.35rem + 0.7vw, 1.875rem);
    line-height: 1.3;
}

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

.article__body li {
    position: relative;
    padding: 0.625rem 0 0.625rem 1.5rem;
    border-bottom: 1px solid var(--line);
}

.article__body li::before {
    content: "";
    position: absolute;
    top: 1.375rem;
    left: 0.125rem;
    width: 0.4375rem;
    height: 0.4375rem;
    background: var(--brass);
    transform: rotate(45deg);
}

.gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    max-width: 62rem;
    margin: 3rem auto 0;
}

.gallery figure {
    margin: 0;
}

.gallery__open {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.gallery__open img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

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

.gallery figcaption {
    margin-top: 0.5rem;
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

#galleryModal .modal-content {
    border: 0;
    background: transparent;
}

#galleryModal img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

#galleryModal .modal-caption {
    margin-top: 0.625rem;
    color: #fff;
    text-align: center;
}

/* 404 */

.not-found {
    position: relative;
    overflow: hidden;
    padding-block: clamp(5rem, 4rem + 9vw, 11rem);
    background: var(--forest);
    color: var(--on-forest);
    text-align: center;
}

.not-found h1 {
    color: var(--ivory);
}

.not-found p:not(.label) {
    max-width: 30rem;
    margin: 1.25rem auto 0;
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.25rem;
}
