/* ==========================================================================
   ACM Prodesign — styles spécifiques aux pages Accueil, Ferronnerie, Réalisations
   (complète site.css, qui porte la base et les composants communs)
   ========================================================================== */

/* ---------- Variantes de couleur (Ferronnerie = rouge, Industrie = bleu) ---------- */
.page-hero--red .page-hero__kicker::before { background: var(--red); }
.page-hero--red .page-hero__title em { color: var(--red); }
.audience__num--black { background: var(--black); }
.section--bordered { border-top: 1px solid var(--line); }
.service-card--alt { background: #FAFBFB; }
.service-card--red .service-card__media::after { background: var(--red); }
.standards--blue .standards__list li::before { background: var(--blue); }
.link-underline--red { border-bottom-color: var(--red); }
.link-underline--red.link-underline--light:hover { color: var(--red); }
.link-underline--dark { color: var(--ink); }
.link-underline--dark:hover { color: var(--red); }
.gallery-card__type--red { color: var(--red); }
.kicker--grey-red::before { background: var(--red); }
.site-nav a[aria-current="page"].is-red { color: var(--red); border-bottom-color: var(--red); }
.site-nav a[aria-current="page"].is-black { color: var(--black); border-bottom-color: var(--black); }

/* En-tête de section à deux colonnes avec chiffres (Ferronnerie) */
.section-head--stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  max-width: none;
}
@media (min-width: 1080px) {
  .section-head--stats { grid-template-columns: 1fr 1fr; }
}
.section-head__aside {
  border-left: 2px solid var(--line);
  padding-left: clamp(18px, 2vw, 28px);
}
.section-head__aside p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.mini-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.mini-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--red);
}
.mini-stats span {
  display: block;
  color: var(--muted-2);
  font-size: 13px;
  margin-top: 6px;
}

/* ==========================================================================
   Accueil
   ========================================================================== */
.home-hero {
  position: relative;
  min-height: min(86vh, 760px);
  background: var(--black);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.home-hero .page-hero__bg { animation-duration: 22s; }
.home-hero__shade-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 9, 10, 0.93) 0%, rgba(8, 9, 10, 0.82) 32%, rgba(8, 9, 10, 0.45) 58%, rgba(8, 9, 10, 0.22) 100%);
}
.home-hero__shade-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.5) 0%, rgba(8, 9, 10, 0.1) 40%, rgba(8, 9, 10, 0.72) 100%);
}
.home-hero__content {
  position: relative;
  width: 100%;
  padding-bottom: 72px;
}
.home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.home-hero__kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--red);
  animation: acmSpark 2.4s ease-in-out infinite;
}
@keyframes acmSpark {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}
.home-hero__title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 16ch;
  text-wrap: balance;
}
.home-hero__title em { font-style: normal; color: var(--red); }
.home-hero__lead {
  margin-top: 26px;
  color: var(--line);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 48ch;
  line-height: 1.6;
}
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.btn--white {
  background: #fff;
  color: var(--black);
}
.btn--white:hover { transform: translateY(-2px); }
.btn .arrow { color: var(--red); }
.btn--lift:hover { transform: translateY(-2px); }

/* Chiffres clés */
.figures { background: var(--black-2); }
.figures__grid {
  padding-block: clamp(44px, 5vw, 68px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin: 0;
  padding-inline: var(--gutter);
  list-style: none;
}
.figure {
  border-left: 2px solid var(--dark-line-2);
  padding-left: 22px;
}
.figure__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--red);
}
.figure__label {
  margin-top: 12px;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.45;
  max-width: 24ch;
}

/* Métiers */
.section--lg { padding-block: clamp(64px, 8vw, 104px); }
.section-head--lg { margin-bottom: 48px; }
.section-title--lg { font-size: clamp(2rem, 4vw, 3.2rem); }
.metiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.metier {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 3px;
  overflow: hidden;
  min-height: 440px;
  background: var(--black);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.metier:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(11, 12, 14, 0.55);
}
.metier__bg { position: absolute; inset: 0; }
.metier__bg img { width: 100%; height: 100%; object-fit: cover; }
.metier__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.1) 0%, rgba(11, 12, 14, 0.45) 55%, rgba(11, 12, 14, 0.92) 100%);
}
.metier::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 5px;
  width: 100%;
  background: var(--accent);
  z-index: 1;
}
.metier--red { --accent: var(--red); }
.metier--blue { --accent: var(--blue); }
.metier__content {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.metier__kicker {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.metier h3 {
  margin-bottom: 10px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.metier p {
  margin-bottom: 18px;
  color: var(--light);
  font-size: 16px;
  max-width: 38ch;
}
.metier__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.metier__tags li {
  font-size: 13px;
  color: var(--line);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 12px;
  border-radius: 2px;
}
.metier__more {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.metier__more .arrow { color: var(--accent); }

/* Processus */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding: 34px 28px 34px 0;
  border-top: 3px solid var(--black);
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.02em;
}
.step h3 {
  margin: 18px 0 10px;
  font-weight: 600;
  font-size: 21px;
  color: var(--black);
}
.step p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.section-head--split-lg { margin-bottom: 56px; }
.section-head--split-lg > div { max-width: 54ch; }

/* Filtres (chips) */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 11px 20px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--dark-line-3);
  background: transparent;
  color: var(--grey);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip:hover { border-color: var(--grey); color: #fff; }
.chip[aria-pressed="true"] {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}
.chip small { font-size: 12px; opacity: 0.7; }

/* Réalisations à la une (accueil) */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #121417;
  border: 1px solid var(--dark-line);
  transition: transform .3s, border-color .3s;
}
.project:hover { transform: translateY(-5px); border-color: var(--dark-line-3); }
.project[hidden] { display: none; }
.project__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.project:hover .project__media img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  padding: 5px 11px;
  border-radius: 2px;
  background: var(--red);
}
.badge--blue { background: var(--blue); }
.project__body { padding: 20px 20px 22px; }
.project__body h3 {
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  line-height: 1.25;
}
.project__meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grey);
  font-size: 13px;
}
.project__meta .dot { color: var(--dark-line-3); }
.project__materials {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--dark-line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.section-foot { margin-top: 44px; text-align: center; }

/* Pourquoi ACM */
.why {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (min-width: 1080px) {
  .why { grid-template-columns: 1fr 1.1fr; }
}
.why__title {
  margin-bottom: 22px;
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
}
.why__text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 46ch;
}
.quote {
  margin: 30px 0 0;
  padding: 24px;
  background: var(--black);
  border-radius: 3px;
  border-left: 4px solid var(--red);
}
.quote p {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.4;
  font-style: italic;
}
.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 26px 24px;
  transition: box-shadow .25s, transform .25s;
}
.why-card:hover {
  box-shadow: 0 18px 40px -24px rgba(11, 12, 14, 0.4);
  transform: translateY(-3px);
}
.why-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 18px;
}
.why-card--blue::before { background: var(--blue); }
.why-card h3 {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 18px;
  color: var(--black);
}
.why-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Certifications */
.certifs {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.certifs__inner {
  padding-block: clamp(40px, 5vw, 56px);
  text-align: center;
}
.certifs__label {
  font-family: var(--font-display);
  color: var(--grey);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.certifs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.certifs__list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
}
.certifs__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

/* Contact / devis */
.contact {
  background-color: var(--black);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 72px);
}
@media (min-width: 1080px) {
  .contact__grid { grid-template-columns: 1fr 1.15fr; }
}
.contact__title {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: #fff;
}
.contact__text {
  margin-bottom: 34px;
  color: var(--light);
  font-size: 17px;
  line-height: 1.7;
  max-width: 42ch;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-info__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--dark-line-2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.contact-info__label {
  font-family: var(--font-display);
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.contact-info__value {
  color: #fff;
  font-size: 16px;
  margin-top: 3px;
}
.contact-info__value a { color: #fff; text-decoration: none; }
.contact-info__value a:hover { text-decoration: underline; }

.form-card {
  background: #fff;
  border-radius: 4px;
  padding: clamp(28px, 3vw, 40px);
  color: var(--ink);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.field { display: block; }
.field--gap { margin-top: 16px; }
.field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
}
.form-submit {
  margin-top: 22px;
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 16px;
  padding: 17px;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(226, 35, 26, 0.7);
  transition: background .2s;
}
.form-submit:hover { background: var(--red-dark); }
.form-note {
  margin-top: 14px;
  text-align: center;
  color: var(--grey);
  font-size: 12px;
}
.form-error {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #f3b3af;
  background: #fdecea;
  color: #8a1810;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.5;
}
.form-error[hidden] { display: none; }
.form-error a { color: inherit; }
.form-submit:disabled { opacity: .7; cursor: wait; }
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 12px;
}
.form-success[hidden] { display: none; }
.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  margin-bottom: 22px;
}
.form-success h3 {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 24px;
  color: var(--black);
}
.form-success p {
  color: var(--muted);
  font-size: 16px;
  max-width: 34ch;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pied de page complet (accueil) */
.site-footer__cols {
  padding-top: clamp(56px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .site-footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer__brand img {
  height: 48px;
  width: auto;
  filter: brightness(1.6);
  margin-bottom: 20px;
}
.site-footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 34ch;
}
.site-footer__col h2 {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__col a {
  color: var(--grey);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom {
  padding-block: 32px;
  margin-top: 48px;
  border-top: 1px solid #15171A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer__legal a {
  color: var(--grey);
  text-decoration: none;
  font-size: 13px;
}
.site-footer__legal a:hover { color: #fff; }

/* Bandeau cookies */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 16px;
  display: flex;
  justify-content: center;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__box {
  max-width: 760px;
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--text-2);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}
.cookie-banner__box p {
  color: var(--light);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
  min-width: 240px;
}
.cookie-banner__box p a { color: #fff; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__actions button {
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 2px;
  cursor: pointer;
}
.cookie-btn--ghost {
  background: transparent;
  border: 1px solid var(--dark-line-3);
  color: var(--light);
}
.cookie-btn--primary {
  background: var(--red);
  border: none;
  color: #fff;
  padding-inline: 20px;
}

/* ==========================================================================
   Réalisations (portfolio)
   ========================================================================== */
.portfolio-hero {
  position: relative;
  background: var(--black);
  overflow: hidden;
}
.portfolio-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}
.portfolio-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.5) 0%, rgba(11, 12, 14, 0.78) 60%, var(--black) 100%);
}
.portfolio-hero__content {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px) clamp(40px, 5vw, 64px);
}
.portfolio-hero .breadcrumb a { color: var(--grey); }
.portfolio-hero .breadcrumb li + li::before { color: #4b5158; }
.portfolio-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  color: var(--grey);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.portfolio-hero__kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--red);
}
.portfolio-hero__lead {
  margin-top: 24px;
  color: var(--light);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 56ch;
  line-height: 1.6;
}
.hero-stats {
  display: flex;
  gap: 36px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
}
.hero-stats span {
  display: block;
  color: var(--grey);
  font-size: 13px;
  margin-top: 7px;
  letter-spacing: 0.02em;
}

.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: var(--black-2);
  border-bottom: 1px solid var(--dark-line);
}
.filter-bar__inner {
  padding-block: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.filter-bar__label {
  font-family: var(--font-display);
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.filter-bar .chips { gap: 9px; }
.filter-bar .chip { padding: 10px 18px; letter-spacing: 0.02em; }

.portfolio { background: var(--black); }
.portfolio__inner {
  padding-block: clamp(36px, 4vw, 56px) clamp(56px, 7vw, 96px);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 290px;
  grid-auto-flow: dense;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
}
@media (min-width: 1000px) {
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
  .portfolio-grid .is-big { grid-column: span 2; grid-row: span 2; }
  .portfolio-grid .is-big-right { grid-column: 3 / span 2; }
  .portfolio-grid .is-big .tile__title { font-size: clamp(20px, 2vw, 26px); }
}
.portfolio-grid li[hidden] { display: none; }
.portfolio-grid li { min-height: 0; }
.tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 0;
  border: 1px solid var(--dark-line);
  background: #121417;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  transition: border-color .3s;
}
.tile:hover { border-color: #3d424a; }
.tile picture, .tile img {
  width: 100%;
  height: 100%;
}
.tile img {
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.tile:hover img { transform: scale(1.05); }
.tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0) 38%, rgba(11, 12, 14, 0.92) 100%);
  pointer-events: none;
}
.tile .badge { z-index: 1; }
.tile__plus {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: rgba(11, 12, 14, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.tile__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  pointer-events: none;
}
.tile__type {
  font-family: var(--font-display);
  color: #FF6259;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.tile--blue .tile__type { color: var(--blue-light); }
.tile__title {
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  line-height: 1.2;
}
.tile__meta {
  margin-top: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--light);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 7, 8, 0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  animation: acmFade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes acmFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  flex-shrink: 0;
}
.lightbox__counter {
  font-family: var(--font-display);
  color: var(--grey);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.lightbox__close {
  width: 46px;
  height: 46px;
  background: var(--ink);
  border: 1px solid var(--text-2);
  color: #fff;
  font-size: 22px;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1;
}
.lightbox__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(12px, 5vw, 72px) clamp(16px, 3vw, 32px);
  min-height: 0;
  gap: 18px;
}
.lightbox__nav {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(22, 24, 27, 0.8);
  border: 1px solid var(--text-2);
  color: #fff;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.lightbox__figure {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 1100px;
  margin: 0;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 64vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
}
.lightbox__caption {
  margin-top: 22px;
  text-align: center;
  max-width: 60ch;
}
.lightbox__cat {
  font-family: var(--font-display);
  color: var(--red);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lightbox__cat.is-blue { color: var(--blue); }
.lightbox__caption h3 {
  margin-top: 10px;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: #fff;
  line-height: 1.15;
}
.lightbox__caption p {
  margin-top: 12px;
  color: var(--grey);
  font-size: 15px;
}
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 18px; }
  .lightbox__body { gap: 8px; }
}
body.lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .home-hero__kicker::before { animation: none; opacity: 1; }
  .lightbox { animation: none; }
  .metier, .project, .why-card, .tile img { transition: none; }
}
