:root {
  --black: #111111;
  --charcoal: #333333;
  --teal: #1f7a8c;
  --sky: #bfdbf7;
  --pearl: #f5f5f5;
  --white: #ffffff;
  --line: rgba(17, 17, 17, 0.15);
  --space: clamp(5.25rem, 9vw, 9.5rem);
  --container: 1240px;
  --rounded: 1.1rem;
  --font-body: Inter, Roboto, Arial, Helvetica, sans-serif;
  --font-heading: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--black); background: var(--pearl); font-family: var(--font-body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: var(--white); background: var(--teal); }

.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 200; padding: 0.7rem 1rem; color: var(--black); background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 3rem), var(--container)); margin-inline: auto; }
.section { padding-block: var(--space); }
.section-dark { color: var(--white); background: var(--black); }
.eyebrow { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 1.15rem; color: var(--teal); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; line-height: 1.2; text-transform: uppercase; }
.eyebrow::before { width: 1.5rem; height: 2px; background: currentColor; content: ""; }
.eyebrow.light { color: var(--sky); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; line-height: 0.96; letter-spacing: -0.025em; }
h1, h2 { font-family: var(--font-heading); text-transform: uppercase; }
h1 { max-width: 920px; margin-bottom: 1.25rem; font-size: clamp(3.8rem, 8.4vw, 8.5rem); }
h1 em { color: var(--sky); font-family: var(--font-body); font-size: 0.76em; font-style: normal; font-weight: 300; letter-spacing: -0.075em; text-transform: none; }
h2 { margin-bottom: 0; font-size: clamp(2.65rem, 5vw, 5rem); }
h3 { font-family: var(--font-body); font-size: 1.4rem; font-weight: 750; line-height: 1.08; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 2rem; min-height: 3.5rem; padding: 0.85rem 1.25rem; border: 1px solid transparent; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease; }
.button:hover { transform: translateY(-3px); }
.button:focus-visible, .filter-button:focus-visible, .project-card:focus-visible, .menu-button:focus-visible, .primary-nav a:focus-visible, .dialog-close:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--teal); }
.button-primary:hover { color: var(--black); background: var(--sky); }
.button-outline { margin-top: 2.5rem; border-color: rgba(255,255,255,.35); color: var(--white); }
.button-outline:hover { color: var(--black); border-color: var(--sky); background: var(--sky); }
.text-link { display: inline-flex; align-items: center; gap: 0.8rem; padding-bottom: 0.2rem; border-bottom: 1px solid var(--teal); color: var(--black); font-size: .83rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: gap .22s ease, border-color .22s ease; }
.text-link:hover { gap: 1.2rem; border-color: var(--black); }
.text-link.light { color: var(--white); border-color: var(--sky); }

.scroll-progress { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 3px; background: transparent; }
.scroll-progress span { display: block; width: 0; height: 100%; background: var(--sky); transition: width .08s linear; }
.site-header { position: fixed; z-index: 90; top: 0; width: 100%; color: var(--white); transition: background-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { color: var(--black); background: rgba(245,245,245,.96); box-shadow: 0 1px 0 rgba(17,17,17,.12); backdrop-filter: blur(12px); }
.nav-wrap { display: flex; align-items: center; min-height: 5.75rem; justify-content: space-between; }
.brand { flex: 0 0 auto; width: 9.85rem; }
.brand img { width: 100%; height: auto; transition: filter .25s ease; }
.site-header.is-scrolled .brand img { filter: brightness(0) saturate(100%); }
.primary-nav { display: flex; align-items: center; gap: 1.65rem; }
.utility-actions { display: flex; gap: .4rem; align-items: center; margin-left: 1rem; }
.utility-button { display: grid; width: 2.45rem; height: 2.45rem; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.45); color: currentColor; background: rgba(17,17,17,.15); font-size: .72rem; font-weight: 800; letter-spacing: .06em; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.utility-button:hover { color: var(--black); border-color: var(--sky); background: var(--sky); transform: translateY(-2px); }
.site-header.is-scrolled .utility-button { border-color: rgba(17,17,17,.35); background: transparent; }
.theme-icon { font-size: 1.15rem; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.primary-nav > a { position: relative; font-size: .76rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.primary-nav > a:not(.nav-cta)::after { position: absolute; right: 0; bottom: -.35rem; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.primary-nav > a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.primary-nav .nav-cta { padding: .75rem .9rem; color: var(--white); background: var(--teal); transition: background .2s ease, color .2s ease; }
.primary-nav .nav-cta:hover { color: var(--black); background: var(--sky); }
.menu-button { display: none; position: relative; z-index: 2; width: 2.9rem; height: 2.9rem; padding: .6rem; border: 1px solid rgba(255,255,255,.45); border-radius: 0; color: currentColor; background: rgba(17,17,17,.15); }
.site-header.is-scrolled .menu-button { border-color: rgba(17,17,17,.35); background: transparent; }
.menu-button span { display: block; width: 100%; height: 2px; margin: 4px 0; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
body.menu-open .menu-button span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-button span:nth-child(2) { opacity: 0; }
body.menu-open .menu-button span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero { position: relative; display: flex; min-height: max(740px, 100vh); align-items: center; overflow: hidden; color: var(--white); background: var(--black); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: hero-zoom 17s ease-out both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 10, .94) 0%, rgba(5, 8, 10, .77) 42%, rgba(5, 8, 10, .31) 100%), linear-gradient(0deg, rgba(5, 8, 10, .68), transparent 45%); }
.hero-grid { position: absolute; inset: 0; opacity: .34; background-image: linear-gradient(rgba(191,219,247,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(191,219,247,.13) 1px, transparent 1px); background-size: 65px 65px; mask-image: linear-gradient(90deg, black 0%, transparent 74%); }
.hero-content { position: relative; z-index: 1; padding-top: 9.5rem; padding-bottom: 8.5rem; }
.hero-kicker { animation: enter-up .8s .1s both; }
.hero h1 { animation: enter-up .9s .22s both; }
.hero-copy { max-width: 610px; margin-bottom: 2.15rem; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.6vw, 1.28rem); animation: enter-up .8s .4s both; }
.hero-actions { display: flex; align-items: center; gap: 1.7rem; animation: enter-up .8s .53s both; }
.hero-stamp { position: absolute; z-index: 1; right: max(1.5rem, calc((100vw - var(--container)) / 2)); bottom: 9.2rem; display: flex; flex-direction: column; width: 9rem; height: 9rem; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; color: var(--white); text-align: center; transform: rotate(8deg); animation: enter-up .8s .7s both; }
.hero-stamp span { font-size: .7rem; letter-spacing: .05em; }
.hero-stamp strong { font-size: 1.15rem; text-transform: uppercase; }
.hero-bottom { position: absolute; z-index: 1; bottom: 1.85rem; left: 50%; display: flex; justify-content: space-between; color: rgba(255,255,255,.66); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: translateX(-50%); }
.hero-bottom span { display: flex; align-items: center; gap: .65rem; }
.hero-bottom span::before { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); content: ""; }

.intro { background: var(--pearl); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .74fr); gap: min(10vw, 10rem); align-items: end; }
.intro h2 { max-width: 680px; }
.intro-copy { padding-bottom: .6rem; font-size: 1.1rem; }
.intro-copy p { margin-bottom: 2rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr) 1.45fr; gap: 1px; margin-top: clamp(3.7rem, 7vw, 7rem); border: 1px solid var(--line); background: var(--line); }
.metric, .metrics-note { min-height: 175px; padding: 1.5rem; margin: 0; background: var(--pearl); }
.metric { display: flex; flex-direction: column; justify-content: space-between; }
.metric strong { font-family: var(--font-heading); font-size: 4.4rem; font-weight: 400; line-height: .8; }
.metric span, .metrics-note { font-size: .83rem; font-weight: 700; line-height: 1.25; }
.metrics-note { display: flex; align-items: end; color: var(--white); background: var(--teal); }

.section-heading { display: grid; grid-template-columns: 1fr .55fr; gap: 4rem; align-items: end; }
.section-heading h2 { max-width: 840px; }
.section-heading > p { max-width: 350px; margin-bottom: .35rem; color: rgba(255,255,255,.74); }
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; border-top: 1px solid rgba(255,255,255,.2); }
.expertise-card { min-height: 345px; padding: 1.6rem; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); transition: color .25s ease, background .25s ease; }
.expertise-card:first-child { border-left: 1px solid rgba(255,255,255,.2); }
.expertise-card:hover { color: var(--black); background: var(--sky); }
.card-number { display: block; margin-bottom: 6rem; color: var(--sky); font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.expertise-card:hover .card-number { color: var(--teal); }
.expertise-card h3 { max-width: 210px; margin-bottom: 1rem; }
.expertise-card p { margin: 0; color: rgba(255,255,255,.72); font-size: .85rem; }
.expertise-card:hover p { color: var(--charcoal); }

.projects { background: var(--white); }
.projects-top { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.projects-top h2 { max-width: 650px; }
.filter-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.filter-button { padding: .55rem .8rem; border: 1px solid var(--line); color: var(--charcoal); background: transparent; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: color .2s ease, background .2s ease; }
.filter-button:hover, .filter-button.is-active { color: var(--white); border-color: var(--black); background: var(--black); }
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.project-card { position: relative; grid-column: span 4; min-width: 0; padding: 0; border: 0; overflow: hidden; color: var(--white); text-align: left; background: var(--black); isolation: isolate; transition: opacity .2s ease, transform .35s ease; }
.project-card[hidden] { display: none; }
.project-card.project-large { grid-column: span 8; grid-row: span 2; }
.project-card.project-wide { grid-column: span 8; }
.project-card img, .project-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-card img { object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.project-shade { background: linear-gradient(0deg, rgba(0,0,0,.85), transparent 64%); }
.project-card:hover img { transform: scale(1.08); }
.project-content { position: absolute; z-index: 1; right: 1.35rem; bottom: 1.25rem; left: 1.35rem; display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: end; }
.project-content span { grid-column: 1 / -1; color: var(--sky); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-content strong { font-family: var(--font-heading); font-size: clamp(1.6rem, 2.4vw, 2.65rem); font-weight: 400; line-height: .88; letter-spacing: -.02em; text-transform: uppercase; }
.project-content i { display: grid; width: 2.1rem; height: 2.1rem; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; font-size: 1rem; font-style: normal; transition: color .2s ease, background .2s ease; }
.project-card:hover i { color: var(--black); background: var(--sky); }

.team { overflow: hidden; background: var(--pearl); }
.team-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr); gap: clamp(2.5rem, 8vw, 9rem); align-items: center; }
.team-photo { position: relative; }
.team-photo > img { min-height: 570px; width: 100%; object-fit: cover; }
.team-badge { position: absolute; right: -2.1rem; bottom: 2rem; max-width: 260px; padding: 1.35rem; color: var(--white); background: var(--teal); box-shadow: 0 16px 26px rgba(17,17,17,.22); }
.team-badge strong, .team-badge span { display: block; }
.team-badge strong { margin-bottom: .25rem; font-size: 1.1rem; }
.team-badge span { font-size: .78rem; line-height: 1.35; }
.team-content h2 { margin-bottom: 1.6rem; }
.team-content > p:not(.eyebrow) { max-width: 500px; font-size: 1.05rem; }
.team-leader { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.team-leader img { width: 70px; height: 70px; object-fit: cover; object-position: center 25%; border-radius: 50%; }
.team-leader strong, .team-leader span { display: block; }
.team-leader strong { font-size: .92rem; }
.team-leader span { color: var(--charcoal); font-size: .78rem; }

.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(3rem, 9vw, 10rem); align-items: start; }
.contact-intro h2 { margin-bottom: 1.5rem; }
.contact-intro > p:not(.eyebrow) { max-width: 440px; color: rgba(255,255,255,.7); }
.contact-phone { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1.3rem; color: var(--sky); font-family: var(--font-heading); font-size: clamp(2.1rem, 3.5vw, 3.6rem); letter-spacing: .01em; }
.contact-phone span { font-family: var(--font-body); font-size: .6em; }
.contact-email { display: block; width: max-content; margin-top: .35rem; padding-bottom: .18rem; border-bottom: 1px solid var(--teal); color: var(--white); font-size: .88rem; }
.contact-form { display: grid; gap: 1.15rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: #202020; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-field { display: grid; gap: .45rem; }
.form-field label { color: var(--sky); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.38); border-radius: 0; padding: .55rem 0; color: var(--white); outline: 0; background: transparent; font-size: .96rem; transition: border-color .2s ease; }
.form-field select { cursor: pointer; }
.form-field option { color: var(--black); background: var(--white); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--sky); }
.form-feedback { min-height: 1.3em; margin: -.25rem 0 0; color: var(--sky); font-size: .78rem; }

.site-footer { padding-top: 2.75rem; color: var(--white); background: #090909; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: center; padding-bottom: 2.5rem; }
.footer-top > img { width: 170px; height: auto; }
.footer-top p { margin: 0; color: rgba(255,255,255,.58); font-size: .88rem; }
.back-to-top { justify-self: end; color: var(--sky); font-size: .73rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.5); font-size: .68rem; letter-spacing: .04em; }

.project-dialog { width: min(900px, calc(100% - 2rem)); max-height: min(92vh, 820px); padding: 0; border: 0; color: var(--black); background: var(--white); box-shadow: 0 20px 70px rgba(0,0,0,.5); }
.project-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(3px); }
.project-dialog img { width: 100%; max-height: 470px; object-fit: cover; }
.dialog-content { padding: 1.75rem 2rem 2rem; }
.dialog-content h2 { margin-bottom: 1rem; font-size: clamp(2.3rem, 5vw, 4rem); }
.dialog-content > p:last-child { max-width: 650px; margin-bottom: 0; }
.dialog-close { position: absolute; top: .8rem; right: .8rem; display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border: 0; border-radius: 50%; color: var(--white); background: rgba(17,17,17,.78); font-size: 1.7rem; line-height: 1; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.expertise-card:nth-child(2), .project-card:nth-child(2) { transition-delay: .08s; }
.expertise-card:nth-child(3), .project-card:nth-child(3) { transition-delay: .16s; }
.expertise-card:nth-child(4), .project-card:nth-child(4) { transition-delay: .24s; }
@keyframes enter-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Le mode nuit agit uniquement sur les surfaces claires : les sections de marque restent noires. */
body.night-mode { color: #f5f5f5; --pearl: #151515; --charcoal: #d2d2d2; --line: rgba(255,255,255,.16); background: #151515; }
body.night-mode .intro, body.night-mode .team, body.night-mode .projects { color: #f5f5f5; background: #151515; }
body.night-mode .metric { background: #1d1d1d; }
body.night-mode .metrics { background: rgba(255,255,255,.16); }
body.night-mode .text-link { color: #f5f5f5; }
body.night-mode .text-link:hover { border-color: var(--sky); }
body.night-mode .filter-button { color: #f5f5f5; border-color: rgba(255,255,255,.24); }
body.night-mode .filter-button:hover, body.night-mode .filter-button.is-active { color: var(--black); border-color: var(--sky); background: var(--sky); }
body.night-mode .team-leader span { color: #c9c9c9; }
body.night-mode .site-header.is-scrolled { color: #f5f5f5; background: rgba(21,21,21,.96); box-shadow: 0 1px 0 rgba(255,255,255,.14); }
body.night-mode .site-header.is-scrolled .brand img { filter: none; }
body.night-mode .site-header.is-scrolled .utility-button, body.night-mode .site-header.is-scrolled .menu-button { border-color: rgba(255,255,255,.42); color: #f5f5f5; }
body.night-mode .project-dialog { color: #f5f5f5; background: #1d1d1d; }

@media (max-width: 960px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-card:nth-child(3) { border-left: 1px solid rgba(255,255,255,.2); }
  .projects-grid { grid-auto-rows: 250px; }
  .project-card, .project-card.project-large, .project-card.project-wide { grid-column: span 6; grid-row: auto; }
  .project-card.project-large { grid-row: span 2; }
  .team-grid { gap: 4rem; }
  .team-badge { right: 1.5rem; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 2rem), var(--container)); }
  .site-header { color: var(--white); }
  .site-header.is-scrolled { color: var(--black); }
  .nav-wrap { min-height: 4.75rem; }
  .brand { width: 8.2rem; }
  .utility-actions { position: relative; z-index: 2; margin-left: auto; }
  .utility-button { width: 2.35rem; height: 2.35rem; background: rgba(17,17,17,.18); }
  .menu-button { display: block; }
  .primary-nav { position: fixed; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.85rem; padding: 5rem 2rem 2rem; color: var(--white); background: var(--black); opacity: 0; pointer-events: none; transform: translateX(100%); transition: opacity .25s ease, transform .32s cubic-bezier(.2,.7,.2,1); }
  body.menu-open .primary-nav { opacity: 1; pointer-events: auto; transform: translateX(0); }
  .primary-nav > a { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 400; letter-spacing: 0; }
  .primary-nav .nav-cta { margin-top: .65rem; padding: 1rem 1.2rem; font-family: var(--font-body); font-size: .76rem; font-weight: 800; letter-spacing: .06em; }
  .hero { min-height: 680px; }
  .hero-content { padding-top: 7.5rem; padding-bottom: 11rem; }
  h1 { font-size: clamp(3.45rem, 15vw, 5.7rem); }
  .hero-copy { max-width: 480px; font-size: 1rem; }
  .hero-actions { flex-wrap: wrap; gap: 1.25rem; }
  .hero-stamp { right: 1.2rem; bottom: 5.85rem; width: 6.7rem; height: 6.7rem; }
  .hero-stamp strong { font-size: .9rem; }
  .hero-bottom { bottom: 1.25rem; width: calc(100% - 2rem); gap: 1rem; justify-content: flex-start; overflow: auto; }
  .hero-bottom { scrollbar-width: none; }
  .hero-bottom::-webkit-scrollbar { display: none; }
  .hero-bottom span { flex: none; font-size: .62rem; }
  .intro-grid, .section-heading, .team-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.3rem; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics-note { grid-column: span 2; min-height: 125px; }
  .section-heading > p { margin: 0; }
  .projects-top { display: grid; align-items: start; }
  .filter-group { justify-content: flex-start; }
  .team-photo > img { min-height: 420px; }
  .team-badge { right: 1rem; bottom: 1rem; max-width: 220px; }
  .footer-top { grid-template-columns: 1fr auto; }
  .footer-top p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 560px) {
  :root { --space: 4.25rem; }
  .button { width: 100%; }
  .hero-actions .text-link { margin-left: .15rem; }
  .metrics { grid-template-columns: 1fr; }
  .metrics-note { grid-column: auto; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card, .expertise-card:nth-child(3) { min-height: 250px; border-left: 1px solid rgba(255,255,255,.2); }
  .card-number { margin-bottom: 3.25rem; }
  .projects-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .project-card, .project-card.project-large, .project-card.project-wide { grid-column: auto; grid-row: auto; }
  .project-card.project-large { min-height: 420px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.3rem; }
  .footer-top { display: flex; flex-direction: column; align-items: flex-start; }
  .back-to-top { align-self: flex-start; }
  .footer-bottom { flex-direction: column; }
  .dialog-content { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
