:root {
    color-scheme: light;
    --ink: #29292b;
    --ink-soft: #505055;
    --paper: #f5f2e9;
    --paper-deep: #ebe6d9;
    --white: #fff;
    --yellow: #f0c327;
    --yellow-strong: #d9a900;
    --line: rgba(41, 41, 43, 0.16);
    --success: #1e684b;
    --danger: #9a2f3c;
    --shell: 1220px;
    --shadow-sm: 0 12px 36px rgba(35, 34, 30, 0.08);
    --shadow-lg: 0 28px 80px rgba(35, 34, 30, 0.17);
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 34px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
}

body::selection {
    color: var(--ink);
    background: var(--yellow);
}

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

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.94;
}

h2 {
    font-size: clamp(2.25rem, 4.4vw, 4.6rem);
    line-height: 1.02;
}

h3 {
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    line-height: 1.25;
}

.skip-link {
    padding: 10px 16px;
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    color: var(--ink);
    background: var(--yellow);
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(var(--shell), calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding-block: clamp(76px, 9vw, 132px);
}

.section--ink {
    color: var(--white);
    background: var(--ink);
}

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

.eyebrow {
    margin-bottom: 18px;
    color: var(--yellow-strong);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.section--ink .eyebrow {
    color: var(--yellow);
}

.lead {
    color: var(--ink-soft);
    font-size: clamp(1.06rem, 1.8vw, 1.28rem);
    line-height: 1.65;
}

.section--ink .lead {
    color: rgba(255, 255, 255, 0.72);
}

.button {
    min-height: 52px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 13px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 0 10px 24px rgba(240, 195, 39, 0.18);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    background: #ffd63c;
    box-shadow: 0 14px 34px rgba(240, 195, 39, 0.26);
    transform: translateY(-2px);
}

.button--dark {
    color: var(--white);
    background: var(--ink);
    box-shadow: none;
}

.button--dark:hover {
    background: #3b3b3e;
}

.button--outline {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
    background: transparent;
    box-shadow: none;
}

.button--outline:hover {
    border-color: var(--yellow);
    background: rgba(255, 255, 255, 0.06);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    text-decoration: none;
}

.text-link::after {
    font-size: 1.25em;
    content: "↗";
    transition: transform 160ms ease;
}

.text-link:hover::after {
    transform: translate(3px, -3px);
}

.site-header {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 30;
    color: var(--white);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-stuck,
body:not(.home) .site-header {
    border-color: var(--line);
    color: var(--ink);
    background: rgba(245, 242, 233, 0.94);
    box-shadow: 0 10px 35px rgba(35, 34, 30, 0.07);
    backdrop-filter: blur(18px);
    position: fixed;
}

.site-header__inner {
    width: min(var(--shell), calc(100% - 48px));
    min-height: 100px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.site-logo img {
    width: 62px;
    height: 65px;
    object-fit: contain;
}

.site-logo span {
    display: grid;
    line-height: 1.15;
}

.site-logo strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    font-weight: 600;
}

.site-logo small {
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 34px);
}

.site-nav > a {
    padding-block: 8px;
    color: inherit;
    font-size: 0.91rem;
    font-weight: 750;
    text-decoration: none;
    position: relative;
}

.site-nav > a:not(.nav-cta)::after {
    width: 0;
    height: 2px;
    position: absolute;
    bottom: 2px;
    left: 0;
    background: var(--yellow);
    content: "";
    transition: width 180ms ease;
}

.site-nav > a:hover::after,
.site-nav > a[aria-current="page"]::after {
    width: 100%;
}

.site-nav .nav-cta {
    border: 1px solid var(--yellow);
    border-radius: 999px;
    padding: 11px 18px;
    color: var(--ink);
    background: var(--yellow);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
    background: #ffd63c;
}

.nav-toggle {
    width: 48px;
    height: 48px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: none;
    place-items: center;
    color: inherit;
    background: transparent;
}

.nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    width: 20px;
    height: 2px;
    display: block;
    background: currentColor;
    content: "";
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle__icon::before {
    transform: translateY(-6px);
}

.nav-toggle__icon::after {
    transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
    transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
    transform: translateY(-2px) rotate(-45deg);
}

.hero {
    min-height: 920px;
    padding: 170px 0 80px;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(18, 18, 19, 0.9) 0%, rgba(18, 18, 19, 0.56) 52%, rgba(18, 18, 19, 0.13) 100%),
        url("/images/hero-atelier.webp") center 48% / cover no-repeat;
    position: relative;
}

.hero::after {
    width: 42%;
    height: 8px;
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--yellow);
    content: "";
}

.hero__content {
    max-width: 880px;
}

.hero h1 {
    max-width: 850px;
    margin-bottom: 28px;
}

.hero h1 span {
    color: var(--yellow);
    font-style: italic;
}

.hero__lead {
    max-width: 720px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__facts {
    max-width: 780px;
    margin: 76px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
}

.hero__facts li {
    min-height: 84px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    padding: 5px 24px;
    display: grid;
    align-content: center;
}

.hero__facts li:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero__facts strong {
    color: var(--yellow);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.1rem;
    font-weight: 500;
    line-height: 1;
}

.hero__facts span {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
    align-items: start;
    gap: clamp(55px, 10vw, 150px);
}

.intro-grid h2 {
    margin-bottom: 30px;
}

.intro-grid__text {
    padding-top: 48px;
}

.intro-grid__text p {
    color: var(--ink-soft);
    font-size: 1.04rem;
}

.intro-signature {
    margin-top: 34px;
    border-top: 1px solid var(--line);
    padding-top: 26px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.intro-signature strong {
    display: block;
}

.intro-signature span {
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.image-ribbon {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 1fr 0.9fr;
    gap: 10px;
    background: var(--ink);
}

.image-ribbon article {
    min-height: 520px;
    overflow: hidden;
    position: relative;
}

.image-ribbon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.image-ribbon article:hover img {
    transform: scale(1.045);
}

.image-ribbon__caption {
    padding: 80px 24px 24px;
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    color: var(--white);
    background: linear-gradient(transparent, rgba(20, 20, 21, 0.86));
}

.image-ribbon__caption span {
    color: var(--yellow);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.image-ribbon__caption h3 {
    margin: 8px 0 0;
}

.section-heading {
    margin-bottom: clamp(42px, 6vw, 76px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
    align-items: end;
    gap: 50px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading p {
    margin-bottom: 7px;
    color: var(--ink-soft);
}

.section--ink .section-heading p {
    color: rgba(255, 255, 255, 0.68);
}

.expertise-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expertise-card {
    min-height: 330px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: clamp(32px, 5vw, 65px);
}

.expertise-card:nth-child(even) {
    border-right: 0;
}

.expertise-card__number {
    margin-bottom: 42px;
    display: block;
    color: var(--yellow);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

.expertise-card h3 {
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    font-weight: 500;
}

.expertise-card p {
    max-width: 510px;
    color: rgba(255, 255, 255, 0.68);
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(50px, 9vw, 140px);
}

.story-media {
    min-height: 700px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.story-media img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
}

.story-badge {
    width: 158px;
    height: 158px;
    border-radius: 50%;
    padding: 20px;
    display: grid;
    place-content: center;
    position: absolute;
    right: 30px;
    bottom: 30px;
    color: var(--ink);
    background: var(--yellow);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.2;
    text-align: center;
}

.story-copy h2 {
    margin-bottom: 30px;
}

.story-copy p:not(.eyebrow) {
    color: var(--ink-soft);
}

.story-list {
    margin: 34px 0 38px;
    padding: 0;
    display: grid;
    gap: 15px;
    list-style: none;
}

.story-list li {
    border-bottom: 1px solid var(--line);
    padding: 0 0 15px 34px;
    font-weight: 750;
    position: relative;
}

.story-list li::before {
    position: absolute;
    left: 0;
    color: var(--yellow-strong);
    content: "◆";
}

.project-cta {
    border-radius: var(--radius-lg);
    padding: clamp(48px, 8vw, 100px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 50px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(28, 28, 29, 0.96), rgba(28, 28, 29, 0.72)),
        url("/images/maison-autruche-maconnerie.webp") center / cover no-repeat;
}

.project-cta h2 {
    max-width: 830px;
    margin-bottom: 18px;
}

.project-cta p {
    max-width: 680px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.page-hero {
    padding-top: 200px;
    padding-bottom: 100px;
    color: var(--white);
    background: var(--ink);
    position: relative;
}

.page-hero::after {
    width: 38%;
    height: 7px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--yellow);
    content: "";
}

.page-hero__inner h1 {
    max-width: 1000px;
    margin-bottom: 25px;
    font-size: clamp(3.2rem, 7vw, 6.2rem);
}

.page-hero__inner > p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item {
    min-height: 390px;
    border: 0;
    border-radius: var(--radius-md);
    padding: 0;
    grid-column: span 4;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
    position: relative;
}

.gallery-item:nth-child(5n + 1),
.gallery-item:nth-child(5n + 5) {
    grid-column: span 7;
}

.gallery-item:nth-child(5n + 2),
.gallery-item:nth-child(5n + 4) {
    grid-column: span 5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.04);
}

.gallery-item span {
    padding: 70px 24px 20px;
    position: absolute;
    inset: auto 0 0;
    background: linear-gradient(transparent, rgba(20, 20, 21, 0.84));
    font-weight: 750;
    text-align: left;
}

.gallery-dialog {
    width: min(1120px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    border: 0;
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    color: var(--white);
    background: #161617;
    box-shadow: var(--shadow-lg);
}

.gallery-dialog::backdrop {
    background: rgba(13, 13, 14, 0.86);
    backdrop-filter: blur(8px);
}

.gallery-dialog figure {
    margin: 0;
}

.gallery-dialog img {
    width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
}

.gallery-dialog figcaption {
    min-height: 62px;
    padding: 18px 70px 18px 24px;
}

.gallery-dialog__close {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    color: var(--ink);
    background: var(--yellow);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(45px, 8vw, 110px);
}

.contact-aside {
    position: sticky;
    top: 140px;
}

.contact-aside h2 {
    margin-bottom: 26px;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.contact-aside > p {
    color: var(--ink-soft);
}

.contact-details {
    margin-top: 38px;
    border-top: 1px solid var(--line);
}

.contact-detail {
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}

.contact-detail span {
    display: block;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-detail strong,
.contact-detail a {
    margin-top: 5px;
    display: inline-block;
    font-size: 1.04rem;
    font-style: normal;
    font-weight: 750;
    text-decoration: none;
}

.site-form {
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 58px);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.form-intro {
    margin-bottom: 34px;
}

.form-intro h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.form-intro p {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.field {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label,
.field legend {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    color: var(--ink);
    background: #fbfaf6;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field textarea {
    min-height: 180px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--yellow-strong);
    outline: 0;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(240, 195, 39, 0.18);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

.field-honeypot {
    position: absolute;
    left: -10000px;
}

.field-error {
    color: var(--danger);
    font-size: 0.83rem;
    font-weight: 700;
}

.form-alert {
    margin-bottom: 28px;
    border: 1px solid rgba(154, 47, 60, 0.2);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--danger);
    background: #fff2f3;
}

.form-success {
    margin-bottom: 28px;
    border: 1px solid rgba(30, 104, 75, 0.2);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    color: var(--success);
    background: #eff9f4;
}

.form-success strong {
    display: block;
}

.consent-field {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 12px;
    font-size: 0.9rem;
    cursor: pointer;
}

.consent-field input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--yellow-strong);
}

.form-privacy {
    margin: 10px 0 25px;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 820px);
    align-items: start;
    justify-content: space-between;
    gap: 70px;
}

.legal-nav {
    border-left: 3px solid var(--yellow);
    padding-left: 22px;
    display: grid;
    gap: 12px;
    position: sticky;
    top: 140px;
}

.legal-nav a {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

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

.legal-content h2 {
    margin: 65px 0 22px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin: 32px 0 10px;
}

.legal-content p,
.legal-content li {
    color: var(--ink-soft);
}

.legal-content a {
    font-weight: 700;
}

.legal-notice {
    margin-bottom: 42px;
    border-left: 5px solid var(--yellow);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
    background: #fff8d9;
}

.legal-notice strong {
    display: block;
    margin-bottom: 5px;
}

.legal-notice p {
    margin-bottom: 0;
    color: var(--ink);
}

.site-footer {
    color: var(--white);
    background: #202022;
}

.site-footer__main {
    width: min(var(--shell), calc(100% - 48px));
    margin-inline: auto;
    padding-block: 80px;
    display: grid;
    grid-template-columns: 1.4fr 0.75fr 0.9fr 0.9fr;
    gap: 55px;
}

.site-footer h2 {
    margin-bottom: 20px;
    color: var(--yellow);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-footer p,
.site-footer address {
    color: rgba(255, 255, 255, 0.63);
    font-style: normal;
}

.footer-intro > p {
    max-width: 390px;
}

.footer-logo {
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.footer-logo img {
    width: 58px;
    height: 62px;
    object-fit: contain;
}

.footer-logo span {
    display: grid;
    line-height: 1.1;
}

.footer-logo strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

.footer-logo small {
    margin-top: 5px;
    color: var(--yellow);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}

.site-footer li a,
.footer-phone {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.site-footer li a:hover,
.footer-phone:hover {
    color: var(--yellow);
}

.footer-phone {
    margin-top: 12px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 800;
}

.site-footer__legal {
    width: min(var(--shell), calc(100% - 48px));
    min-height: 76px;
    margin-inline: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer__legal p {
    margin: 0;
    font-size: 0.82rem;
}

.site-footer__legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.site-footer__legal a {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.82rem;
    text-decoration: none;
}

@media (max-width: 1050px) {
    .nav-toggle {
        display: grid;
    }

    .site-nav {
        width: min(420px, calc(100% - 32px));
        border-radius: var(--radius-md);
        padding: 18px;
        display: none;
        align-items: stretch;
        position: absolute;
        top: 88px;
        right: 24px;
        color: var(--ink);
        background: var(--white);
        box-shadow: var(--shadow-lg);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav > a {
        border-bottom: 1px solid var(--line);
        padding: 13px 8px;
    }

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

    .site-nav .nav-cta {
        margin-top: 8px;
        border-bottom: 0;
        text-align: center;
    }

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

    .image-ribbon article {
        min-height: 430px;
    }

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

@media (max-width: 820px) {
    .shell,
    .site-header__inner,
    .site-footer__main,
    .site-footer__legal {
        width: min(100% - 32px, var(--shell));
    }

    .site-header__inner {
        min-height: 88px;
    }

    .site-logo img {
        width: 52px;
        height: 55px;
    }

    .site-logo small {
        display: none;
    }

    .hero {
        min-height: 800px;
        padding-top: 145px;
        background-position: 58% 45%;
    }

    .hero__facts {
        margin-top: 54px;
    }

    .intro-grid,
    .section-heading,
    .story-grid,
    .contact-layout,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .intro-grid__text {
        padding-top: 0;
    }

    .section-heading {
        gap: 15px;
    }

    .expertise-card {
        padding: 38px 28px;
    }

    .story-media {
        min-height: 560px;
    }

    .project-cta {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .contact-aside,
    .legal-nav {
        position: static;
    }

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

    .gallery-item,
    .gallery-item:nth-child(5n + 1),
    .gallery-item:nth-child(5n + 2),
    .gallery-item:nth-child(5n + 4),
    .gallery-item:nth-child(5n + 5) {
        grid-column: span 6;
    }
}

@media (max-width: 620px) {
    h1 {
        font-size: clamp(2.8rem, 15vw, 4.3rem);
    }

    .section {
        padding-block: 72px;
    }

    .hero {
        min-height: 740px;
        padding: 130px 0 55px;
        align-items: center;
        background-position: 64% center;
    }

    .hero__lead {
        font-size: 1rem;
    }

    .hero__actions {
        display: grid;
    }

    .hero__facts {
        margin-top: 45px;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero__facts li,
    .hero__facts li:first-child {
        min-height: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.24);
        border-left: 0;
        padding: 14px 0;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .hero__facts strong {
        min-width: 85px;
        font-size: 1.65rem;
    }

    .hero__facts span {
        margin-top: 0;
    }

    .image-ribbon {
        grid-template-columns: 1fr;
    }

    .image-ribbon article {
        min-height: 410px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .expertise-card,
    .expertise-card:nth-child(even) {
        border-right: 0;
    }

    .story-media {
        min-height: 450px;
    }

    .story-badge {
        width: 125px;
        height: 125px;
        right: 18px;
        bottom: 18px;
        font-size: 1rem;
    }

    .project-cta {
        border-radius: var(--radius-md);
        padding: 40px 24px;
    }

    .page-hero {
        padding-top: 150px;
        padding-bottom: 76px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item:nth-child(n) {
        min-height: 330px;
        grid-column: 1;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field--full {
        grid-column: auto;
    }

    .site-form {
        border-radius: var(--radius-md);
        padding: 26px 20px;
    }

    .legal-nav {
        grid-template-columns: 1fr;
    }

    .site-footer__main {
        padding-block: 62px;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .site-footer__legal {
        padding-block: 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer__legal nav {
        display: grid;
        gap: 8px;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
