/* Tenco Solutions — site vitrine
   Fond blanc, le logo officiel (TENco en Didone, SOLUTIONS en capitales espacées, vert #004028),
   et ce vert seul en petites touches : boutons, pastilles, filets, liens, survols.
   Texte en Hanken Grotesk. Genève en filigrane très léger derrière l'accroche. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white: #ffffff;
  --black: #000000;
  --rule: #e6e6e6;
  --grey: #8a8a8a;
  --grey-soft: #c4c4c4;
  --green: #004028;      /* le vert du logo Tenco Solutions */
  --green-ink: #0b5a3a;  /* le même vert, un ton plus clair, pour les survols et les liens */
  --green-soft: #eef4f0; /* teinte très légère, pour les surfaces survolées */
  --green-line: rgba(0, 64, 40, .22);
  --sand: var(--green-soft);
  --sand-deep: #e2ece6;

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --gap: clamp(16px, 2vw, 32px);

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-lead: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.625rem);
  --fs-h1: clamp(2.5rem, 6.6vw, 6.5rem);
  --fs-page: clamp(2.25rem, 5vw, 4.75rem);

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 1px;
}

::selection { background: var(--green); color: var(--white); }

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}


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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 64, 40, .35); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: var(--gap);
  transition: min-height .3s var(--ease-out);
}
.site-header.is-scrolled .wrap { min-height: 64px; }
.progress {
  position: absolute;
  left: 0; top: 0;
  height: 2px;
  width: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.brand { display: inline-flex; align-items: center; view-transition-name: brand; }
.brand .logo { height: 40px; width: auto; transition: height .3s var(--ease-out), opacity .25s var(--ease-out); }
.site-header.is-scrolled .brand .logo { height: 32px; }
.brand:hover .logo { opacity: .8; }

.nav ul { display: flex; gap: clamp(20px, 2.5vw, 40px); }
.nav a {
  position: relative;
  display: inline-block;
  padding: .5em 0;
  font-size: var(--fs-small);
  color: #4f5c56;
  transition: color .2s var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .2em;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav a:hover { color: var(--green); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* Sélecteur de langue : EN FR DE, la langue courante en vert */
.nav > div { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.lang { display: flex; gap: 14px; padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); }
.lang a {
  position: relative;
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--grey);
  padding: .4em 0;
  transition: color .2s var(--ease-out);
}
.lang a:hover { color: var(--green); }
.lang a[aria-current="true"] { color: var(--green); font-weight: 500; }

/* Bascule plus / croix, reprise des listes de tenco.ch. */
.plus {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: none;
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform .35s var(--ease-out);
}
.plus::after { transform: translateY(-50%) rotate(90deg); }
[aria-expanded="true"] .plus::before { transform: translateY(-50%) rotate(45deg); }
[aria-expanded="true"] .plus::after { transform: translateY(-50%) rotate(-45deg); }

/* ---------- layout primitives ---------- */

.section {
  padding-block: clamp(56px, 8vw, 128px);
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: 0; }

/* Colonne de titre à gauche, contenu à droite : la structure de catalogue. */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap);
  align-items: start;
}
.cols > h2 { grid-column: 1; }
.cols > .body { grid-column: 2; }

h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.05;
  text-wrap: balance;
}
h3 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -.012em;
  max-width: 34em;
  text-wrap: pretty;
}
.prose { max-width: 38em; }
.prose p + p { margin-top: 1.1em; }
.prose a:not(.cta), .inline-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: var(--grey-soft);
  transition: text-decoration-color .25s var(--ease-out);
}
.prose a:not(.cta), .inline-link { color: var(--green-ink); }
.prose a:not(.cta):hover, .inline-link:hover { text-decoration-color: var(--green-ink); text-decoration-thickness: 2px; color: var(--black); }
.prose a:not(.cta), .inline-link { transition: text-decoration-color .25s var(--ease-out), color .25s var(--ease-out), text-decoration-thickness .25s var(--ease-out); }

.muted { color: var(--grey); }
.small { font-size: var(--fs-small); }

/* Bouton d'action : pilule verte, qui s'éclaircit et se soulève au survol. */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  padding: .9em 1.7em;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-ink);
  transform: translateY(101%);
  transition: transform .4s var(--ease-out);
  z-index: -1;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 64, 40, .6); }
.cta:hover::before { transform: none; }

/* ---------- hero : blanc, Genève en filigrane très léger, une seule séquence d'apparition ---------- */

.hero, .page-head { position: relative; }
.hero { padding-block: clamp(36px, 5.5vw, 88px) clamp(56px, 8vw, 120px); overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/geneva.jpg") center 58% / cover no-repeat;
  filter: grayscale(1);
  opacity: .2;
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, .25) 35%, rgba(255, 255, 255, .25) 70%, var(--white) 100%);
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
  max-width: 17ch;
}
.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap);
  align-items: end;
  margin-top: clamp(40px, 5vw, 80px);
}
.hero-foot .lead { grid-column: 2; padding-left: 20px; border-left: 1px solid var(--green-line); }
.hero-act { grid-column: 1; grid-row: 1; }
.hero > .wrap > .swiss { margin-bottom: 8px; }

/* Petit drapeau : discret, en ligne de texte */
.swiss {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .75rem;
  letter-spacing: .02em;
  color: var(--grey);
}
.swiss .cross { width: 9px; height: 9px; flex: none; }

/* La seule séquence chorégraphiée : titre, puis accroche, puis bouton. */
.js .hero .swiss, .js .hero h1, .js .hero-foot > * { animation: rise .8s var(--ease-out) both; }
.js .hero-foot .lead { animation-delay: .15s; }
.js .hero-act { animation-delay: .3s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* En-tête des pages secondaires : même construction, plus basse */
.page-head { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 72px); }
.page-head h1 {
  font-size: var(--fs-page);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1;
  text-wrap: balance;
  max-width: 20ch;
}
.page-head .lead { margin-top: clamp(24px, 3vw, 40px); padding-left: 20px; border-left: 1px solid var(--green-line); }

/* ---------- index à filets (services, clients) ---------- */

.index { border-top: 1px solid var(--rule); }
.index > li { border-bottom: 1px solid var(--rule); }

.row-h {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: var(--gap);
  align-items: baseline;
  width: 100%;
  padding: 22px 0;
  text-align: left;
  transition: color .2s var(--ease-out);
}
.row-h .plus {
  align-self: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--green-line);
  color: var(--green);
}
.row-h .plus::before, .row-h .plus::after { left: 7px; width: 14px; }
.row-t { font-size: 1.25rem; font-weight: 400; letter-spacing: -.015em; }
.row-s { color: var(--grey); font-size: var(--fs-small); }
.row-h {
  padding-inline: 12px;
  margin-inline: -12px;
  width: calc(100% + 24px);
  border-radius: 4px;
  transition: background .3s var(--ease-out);
}
.row-h:hover { background: var(--sand); }
.row-h:hover .row-t { color: var(--green-ink); transform: translateX(8px); }
.row-t { display: inline-block; transition: transform .35s var(--ease-out), color .2s var(--ease-out); }
.row-h:hover .plus { transform: rotate(90deg); background: var(--green); border-color: var(--green); color: var(--white); }
.row-h .plus { transition: transform .35s var(--ease-out), color .2s var(--ease-out), background .25s var(--ease-out); }
.open .row-h { background: var(--sand); }
.open .row-h .plus { background: var(--green); border-color: var(--green); color: var(--white); }

.row-b {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.row-b > div { overflow: hidden; }
.row-b .inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  gap: var(--gap);
  padding: 4px 0 32px;
}
.row-b .inner > * { grid-column: 2; }
.row-b p { max-width: 36em; }
.row-b ul { margin-top: 1em; }
.row-b ul li {
  padding: .5em 0;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
}
.open .row-b { grid-template-rows: 1fr; }

/* Liste simple à filets, sans dépliage */
.list > li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.list > li:last-child { border-bottom: 1px solid var(--rule); }
.list .t { font-size: 1.125rem; letter-spacing: -.01em; }
.list .d { color: var(--grey); }

/* ---------- approche : trois affirmations ---------- */

.triad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) var(--gap);
}
.triad > li {
  position: relative;
  padding: 4px 0 6px 22px;
  border-left: 2px solid var(--green);
  transition: transform .35s var(--ease-out);
}
.triad > li::before {
  content: "";
  position: absolute;
  left: -2px; top: 0;
  width: 2px; height: 0;
  background: var(--green-ink);
  transition: height .45s var(--ease-out);
}
.triad > li:hover { transform: translateX(4px); }
.triad > li:hover::before { height: 100%; }
.triad > li:hover h3 { color: var(--green-ink); }
.triad h3 { transition: color .25s var(--ease-out); }
.triad h3 { font-size: 1.375rem; font-weight: 400; letter-spacing: -.02em; }
.triad p { margin-top: .75em; color: var(--grey); max-width: 28em; }

/* ---------- étapes (séquence réelle, donc numérotée) ---------- */

.steps { counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--gap);
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before {
  content: counter(step);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--green-ink);
  line-height: 1.1;
}
.steps p { margin-top: .4em; color: var(--grey); max-width: 36em; }

/* ---------- citation ---------- */

.quote {
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.25;
  max-width: 26em;
  padding-left: clamp(20px, 2.5vw, 36px);
  border-left: 2px solid var(--green);
  text-wrap: balance;
}
.quote footer { margin-top: 1.25em; font-family: var(--font); font-size: var(--fs-small); color: var(--grey); letter-spacing: 0; }

/* ---------- clients ---------- */

.client {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap);
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.client:last-child { border-bottom: 1px solid var(--rule); }
.client .name { font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.client .where { display: block; margin-top: .35em; color: var(--grey); font-size: var(--fs-small); }
.client .what { max-width: 36em; }
.client .tags { margin-top: 1em; display: flex; flex-wrap: wrap; gap: .5em .6em; }
.client .tags li {
  font-size: var(--fs-small);
  color: var(--green-ink);
  background: var(--sand);
  border-radius: 999px;
  padding: .25em .85em;
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.client:hover .tags li { background: var(--green); color: var(--white); }
.client { transition: background .3s var(--ease-out); padding-inline: 16px; margin-inline: -16px; border-radius: 6px; }
.client:hover { background: var(--sand); }
.client:hover .name { color: var(--green-ink); }
.client .name { transition: color .25s var(--ease-out); }
.sectors > li { transition: color .25s var(--ease-out), padding-left .35s var(--ease-out); }
.sectors > li:hover { color: var(--green-ink); padding-left: 10px; }
.sectors > li:hover .muted { color: var(--green-ink); }
.list > li { transition: background .3s var(--ease-out); }
.list > li:hover .t { color: var(--green-ink); }
.list .t { transition: color .25s var(--ease-out); }

.sectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--gap);
}
.sectors > li {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1em;
}
.sectors .muted { text-align: right; }

/* ---------- contact ---------- */

.contact-list > li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gap);
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.contact-list > li:last-child { border-bottom: 1px solid var(--rule); }
.contact-list .k { color: var(--green-ink); }
.contact-list .v { font-size: 1.25rem; letter-spacing: -.015em; }
.contact-list .v a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: var(--grey-soft);
  transition: text-decoration-color .25s var(--ease-out);
}
.contact-list .v a:hover { text-decoration-color: var(--green-ink); text-decoration-thickness: 2px; }
.contact-list > li { transition: padding-left .35s var(--ease-out); }
.contact-list > li:hover { padding-left: 8px; }
.contact-list > li:hover .k { color: var(--green-ink); }
.contact-list .k { transition: color .25s var(--ease-out); }
.contact-list .v small { display: block; font-size: var(--fs-small); color: var(--grey); margin-top: .2em; }

/* Lien WhatsApp : le logo vert WhatsApp devant le numéro */
.wa-link { display: inline-flex; align-items: center; gap: .45em; }
.wa { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- footer : blanc, logo, contact, autres entités ---------- */

.site-footer {
  background: var(--green-soft);
  color: #5a6a62;
  border-top: 1px solid var(--green-line);
  padding-block: 56px 36px;
  font-size: var(--fs-small);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 32px var(--gap);
  align-items: start;
}
.f-brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.site-footer .logo { width: 200px; height: auto; }
.f-col h2 { font-size: var(--fs-small); font-weight: 500; color: var(--black); margin-bottom: 12px; }
.f-col li + li { margin-top: 6px; }
.site-footer a { transition: color .25s var(--ease-out); }
.site-footer a:hover { color: var(--green); }
.f-line {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 2em;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--green-line);
  font-size: .8125rem;
}

/* ---------- page Asgard : vidéos, images fixes ---------- */

.videos { display: grid; grid-template-columns: minmax(0, 1fr); }
.videos figure { margin: 0; }
.videos video { display: block; width: 100%; height: auto; background: #f7f3ec; border-radius: 6px; }
.videos figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--grey); }
.row-link { margin-top: 1.2em; }
.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px) var(--gap); margin-top: 40px; }
.stills figure { margin: 0; }
.stills img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--rule); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.stills figure:hover img { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(0, 64, 40, .45); }
.stills figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--grey); }

/* ---------- bandeau cookies : classique, en bas, deux boutons ---------- */

.consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-inline: auto;
  max-width: 960px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--green-line);
  border-radius: 8px;
  box-shadow: 0 20px 50px -24px rgba(0, 64, 40, .45);
  font-size: var(--fs-small);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: 46em; }
.consent p a { color: var(--green-ink); text-decoration: underline; text-underline-offset: .18em; }
.consent > div { display: flex; gap: 10px; align-items: center; }
.consent .cta { font-size: var(--fs-small); padding: .7em 1.3em; }
.consent-no { padding: .7em 1em; color: var(--grey); border-radius: 999px; transition: color .2s var(--ease-out), background .2s var(--ease-out); }
.consent-no:hover { color: var(--green); background: var(--green-soft); }
.js .consent:not([hidden]) { animation: rise .5s var(--ease-out) both; }

/* ---------- apparition au défilement ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- transitions de page ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out .22s ease both; }
::view-transition-new(root) { animation: fade-in .38s var(--ease-out) both; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cols, .hero-foot, .client, .contact-list > li { grid-template-columns: 1fr; }
  .cols > .body, .hero-foot .lead { grid-column: 1; }
  .hero-foot .cta { grid-row: auto; margin-top: 8px; }
  .cols > h2 { margin-bottom: 8px; }
  .triad { grid-template-columns: 1fr; gap: 28px; }
  .videos, .stills { grid-template-columns: 1fr; }
  .row-h, .row-b .inner { grid-template-columns: minmax(0, 1fr) auto; }
  .row-s { grid-column: 1; }
  .row-h .plus { grid-column: 2; grid-row: 1 / span 2; }
  .row-b .inner > * { grid-column: 1; }
  .sectors { grid-template-columns: 1fr; }
  .list > li { grid-template-columns: 1fr; gap: 4px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s var(--ease-out);
  }
  .nav > div { overflow: hidden; display: block; }
  .lang { padding: 14px var(--pad) 22px; border-left: 0; border-top: 1px solid var(--rule); gap: 28px; }
  .lang a { font-size: 1rem; }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--pad) 20px;
  }
  .nav a { display: block; padding: 12px 0; font-size: 1.25rem; border-top: 1px solid var(--rule); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { padding-left: 1em; }
  .nav a[aria-current="page"]::before { left: 0; }
  .nav-open .nav { grid-template-rows: 1fr; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-small);
  }
  .site-header .wrap { position: relative; }
  .brand .logo, .site-header.is-scrolled .brand .logo { height: 30px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-header { position: relative; }
}

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

@media print {
  .site-header, .site-footer, .cta { display: none; }
  .section { border: 0; padding-block: 24px; }
}
