/*
  Cirrus Intelligence : v2 visual layer and shared motion
  Loaded after site.css on every page.
  - Icons: Lucide sprite in assets/icons.svg (ISC / MIT, notice inside the file).
  - Visual-first sections (prefix v-): one line per section, then visuals; the full text
    stays in the page inside native <details> ("Learn more").
  - Motion uses the tokens in site.css (--dur-fast/base/slow, --ease-out, --ease-in-out).
    Transform and opacity only, except colour for states and the height of <details>.
*/

.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Shared motion: hover, press, focus, page transition
   ========================================================= */

::selection { background: rgba(15, 98, 254, 0.16); color: inherit; }
input, textarea { caret-color: var(--bleu-flash); }

/* Hover only where a mouse can hover; press feedback everywhere */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(0.97); }
  .story-card:hover .story-bg-photo { transform: scale(1.03); }
  .textlink:hover, .footer-col a:hover { text-decoration-color: currentColor; }
}
.story-card:active { transform: scale(0.99); transition: transform var(--dur-fast) var(--ease-out); }
.textlink, .footer-col a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

/* Keyboard focus: instant, brand blue; white on dark photo areas */
:focus-visible { outline: 2px solid var(--bleu-flash); outline-offset: 3px; border-radius: 6px; }
.story-card:focus-visible { outline-offset: 4px; border-radius: 20px; }
.hero :focus-visible { outline-color: #fff; }

/* Form fields: focus ring */
.field input, .field textarea, .field select {
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--bleu-flash); box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.22);
}

/* Page transition between pages (native MPA view transitions; ignored where unsupported) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
main { view-transition-name: page; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(page) { animation: v-vt-out var(--dur-fast) var(--ease-out) both; }
::view-transition-new(page) { animation: v-vt-in var(--dur-base) var(--ease-out) both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-base); }
@keyframes v-vt-out { to { opacity: 0; } }
@keyframes v-vt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes v-fade { from { opacity: 0; } to { opacity: 1; } }

/* Hero background video: pause control (added by site.js) */
.video-toggle {
  position: absolute; right: var(--pad-x); bottom: 28px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.35); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25);
  font: 500 13px/1 var(--font-body); cursor: pointer;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.video-toggle .ic { width: 14px; height: 14px; }
.video-toggle:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .video-toggle:hover { background: rgba(0, 0, 0, 0.55); } }

/* Footer route: drawn once on arrival (site.js), then still */
.footer-waypoint { transition: opacity var(--dur-base) ease; }
.footer-waypoint.lit { opacity: 1; }
.footer-head-marker { transition: opacity var(--dur-base) ease; }

/* =========================================================
   Visual-first sections
   ========================================================= */

/* Section head: one question, one line */
.v-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.v-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.1; text-wrap: balance; }
.v-head .v-line { margin-top: 14px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }
.v-head-center { margin-inline: auto; text-align: center; }
.v-center { text-align: center; margin-top: 40px; }
.v-narrow { max-width: 840px; }

/* Chips */
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 28px; }
.v-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border: 1px solid var(--hairline); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; color: var(--text-primary); }
.v-chips .ic { width: 18px; height: 18px; color: var(--bleu-flash); }
.v-chips-center { justify-content: center; }

/* "Learn more": the full text, in the page, open to everyone */
.v-more { margin-top: 28px; }
.v-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; list-style: none; cursor: pointer; color: var(--bleu-flash); font-weight: 600; font-size: 15px; border-radius: 8px; transition: color var(--dur-fast) ease; }
.v-more summary::-webkit-details-marker { display: none; }
.v-more summary .ic { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.v-more[open] summary .ic { transform: rotate(180deg); }
.v-more summary:focus-visible { outline: 2px solid var(--bleu-flash); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .v-more summary:hover { color: var(--bleu-dark); } }
.v-more-body { max-width: 46rem; padding: 8px 0 4px; color: var(--text-secondary); font-size: 16px; line-height: 1.65; transition: opacity var(--dur-base) var(--ease-out); }
.v-more-body p + p, .v-more-body p + ul, .v-more-body ul + p, .v-more-body p + h4, .v-more-body p + ol { margin-top: 12px; }
.v-more-body ul, .v-more-body ol { margin: 8px 0 0 22px; }
.v-more-body li { margin-bottom: 8px; }
.v-more-body strong, .v-more-body h4 { color: var(--text-primary); font-weight: 600; }
.v-more-body h4 { font-family: var(--font-heading); font-size: 16px; margin-bottom: 4px; }
.v-more-dark summary { color: #A9C7FF; }
.v-more-dark summary:focus-visible { outline-color: #A9C7FF; }
@media (hover: hover) and (pointer: fine) { .v-more-dark summary:hover { color: #fff; } }
.v-more-dark .v-more-body { color: rgba(255, 255, 255, 0.8); max-width: none; }
.v-more-dark .v-more-body h4 { color: #fff; }
.v-more-dark .textlink { color: #A9C7FF; }
.v-more-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; padding-top: 16px; }
.v-more-cols .textlink { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 15px; }

/* Service hero */
.v-hero { padding-block: clamp(40px, 6vw, 88px); }
.v-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.v-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.04; font-weight: 700; text-wrap: balance; }
.v-hero .v-line { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text-secondary); max-width: 34em; }
.v-hero-photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 600px; }
.v-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); font-weight: 600; font-size: 15px; color: var(--text-primary); }
.v-hero-photo figcaption .ic { width: 18px; height: 18px; color: var(--bleu-flash); }

/* Who holds which piece */
.v-frag { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; }
.v-frag li { display: flex; flex-direction: column; gap: 4px; padding: 20px 18px; border: 1px dashed var(--hairline); border-radius: 16px; }
.v-frag .ic { width: 28px; height: 28px; color: var(--text-muted); margin-bottom: 10px; }
.v-frag b { font-family: var(--font-heading); font-weight: 600; font-size: 17px; line-height: 1.25; }
.v-frag span { font-size: 14px; color: var(--text-secondary); }
@media (min-width: 1001px) { .v-frag-6 { grid-template-columns: repeat(3, 1fr); } }
.v-frag-6 li { border-style: solid; }
.v-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin-top: 16px; }
.v-options li { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 18px; background: var(--mist); }
.v-options .ic { width: 28px; height: 28px; color: var(--text-secondary); margin-bottom: 10px; }
.v-options b { font-family: var(--font-heading); font-size: 19px; font-weight: 600; line-height: 1.25; }
.v-options span { color: var(--text-secondary); font-size: 15px; }
.v-options .is-us { background: var(--bleu-dark); color: #fff; }
.v-options .is-us .ic { color: #A9C7FF; }
.v-options .is-us span { color: #fff; font-weight: 600; }

/* Photo cards */
.v-photo-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; }
.v-photo-cards li { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #0B1320; isolation: isolate; }
.v-photo-cards img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform var(--dur-slow) var(--ease-out); }
.v-photo-cards li::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 19, 32, 0) 40%, rgba(11, 19, 32, 0.82) 100%); }
.v-photo-cards b { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 18px; line-height: 1.2; }
.v-badge { position: absolute; top: 14px; left: 14px; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--bleu-flash); }
.v-badge .ic { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .v-photo-cards li:hover img, .v-proj li:hover figure img { transform: scale(1.04); } }

/* Comparison */
.v-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.v-col { padding: 28px; border-radius: 18px; border: 1px solid var(--divider); }
.v-col h3 { font-size: 20px; margin-bottom: 8px; }
.v-col ul { list-style: none; }
.v-col li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--divider); font-size: 16px; color: var(--text-secondary); }
.v-col li:first-child { border-top: 0; }
.v-col .ic { color: var(--text-muted); }
.v-col.is-us { background: var(--bleu-dark); border-color: var(--bleu-dark); color: #fff; }
.v-col.is-us h3 { color: #fff; }
.v-col.is-us li { color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.v-col.is-us .ic { color: #A9C7FF; }

/* Steps and life of a mine */
.v-steps, .v-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; list-style: none; }
.v-steps li, .v-timeline li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.v-step-ic { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--hairline); color: var(--bleu-flash); margin-bottom: 12px; }
.v-steps b, .v-timeline b { font-family: var(--font-heading); font-weight: 600; font-size: 19px; line-height: 1.2; }
.v-steps li > span:last-child, .v-timeline li > span:last-child { font-size: 15px; color: var(--text-secondary); line-height: 1.45; }
/* Line between the icons: drawn with scaleX when the step appears */
.v-steps li:not(:last-child)::before, .v-timeline li:not(:last-child)::before { content: ""; position: absolute; top: 28px; left: 64px; right: -12px; height: 2px; background: var(--bleu-flash); transform-origin: left center; transition: transform var(--dur-slow) var(--ease-out) calc(min(var(--d, 0ms), 150ms) + 120ms); }
.v-steps li:not(:last-child)::before { background: repeating-linear-gradient(90deg, var(--hairline) 0 6px, transparent 6px 12px); }
.js .v-timeline li.reveal:not(.in)::before { transform: scaleX(0); }
.v-timeline .v-step-ic { background: var(--bleu-flash); border-color: var(--bleu-flash); color: #fff; }
.v-timeline li:last-child .v-step-ic { background: #fff; color: var(--bleu-flash); }

/* Questions that open on their answer (the question is the label: no duplicate text) */
.v-qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; align-items: start; }
.v-q { margin-top: 0; border-top: 1px solid var(--divider); }
.v-q summary { display: flex; width: 100%; gap: 14px; align-items: flex-start; padding: 22px 0 18px; color: var(--text-primary); font-family: var(--font-heading); font-size: 19px; font-weight: 500; line-height: 1.3; }
.v-q summary > span { flex: 1; }
.v-q summary .ic:first-child { width: 28px; height: 28px; color: var(--bleu-flash); margin-top: -2px; transform: none !important; }
.v-q summary .ic:last-child { width: 18px; height: 18px; color: var(--bleu-flash); margin-top: 3px; flex: none; }
.v-q[open] summary .ic:last-child { transform: rotate(180deg); }
.v-q .v-more-body { padding: 0 0 20px 42px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .v-q summary:hover { color: var(--bleu-flash); } }

/* Certification */
.v-cert { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.v-cert-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; }
.v-cert-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; }
.v-cases li { display: flex; gap: 12px; align-items: center; padding: 18px; border-radius: 14px; background: #fff; font-weight: 500; font-size: 16px; line-height: 1.35; }
.v-cases .ic { color: var(--bleu-flash); }
.v-cases .is-alt { background: transparent; border: 1px dashed var(--hairline); color: var(--text-secondary); }
.v-cases .is-alt .ic { color: var(--text-muted); }

.v-faq .faq { margin-top: 0; border-top: 0; }
.v-faq .faq h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
.v-faq .faq details:first-of-type { border-top: 1px solid var(--divider); }

/* Home: capabilities as tiles */
#how .v-head h2 { color: #fff; }
.v-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.v-tiles a { display: flex; align-items: center; gap: 16px; min-height: 92px; padding: 20px 22px; border-radius: 18px; color: #fff; background: rgba(11, 19, 32, 0.55); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out); }
.v-tiles a > .ic:first-child { width: 30px; height: 30px; color: #A9C7FF; }
.v-tiles h3 { flex: 1; margin: 0; color: #fff; font-size: 19px; font-weight: 600; line-height: 1.25; }
.v-tiles .ic-arrow-right { width: 20px; height: 20px; opacity: 0.6; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease; }
.v-tiles a:active { transform: scale(0.98); }
.v-tiles a:focus-visible { outline: 2px solid #A9C7FF; outline-offset: 3px; border-radius: 18px; }
@media (hover: hover) and (pointer: fine) {
  .v-tiles a:hover { background: rgba(11, 19, 32, 0.72); border-color: rgba(255, 255, 255, 0.32); }
  .v-tiles a:hover .ic-arrow-right { transform: translateX(3px); opacity: 1; }
}

/* Home: figures */
.v-stats { padding-block: clamp(48px, 6vw, 72px); background: #fff; }
.v-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.v-stat-strip li { display: flex; flex-direction: column; gap: 6px; padding: 4px 28px; border-left: 1px solid var(--divider); }
.v-stat-strip li:first-child { border-left: 0; padding-left: 0; }
.v-stat-strip .ic { width: 28px; height: 28px; color: var(--bleu-flash); margin-bottom: 8px; }
.v-stat-strip .stat-number { font-family: var(--font-heading); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; line-height: 1; color: var(--text-primary); }
.v-stat-strip .stat-label { font-size: 15px; color: var(--text-secondary); line-height: 1.4; }
/* Figures settle in place (no counter: 24/7 and FR / EN do not count) */
.v-stat-strip .stat-item.reveal { transition-delay: min(calc(var(--d, 0ms) * 0.5), 150ms); }
.v-stat-strip .stat-label { transition: opacity var(--dur-slow) var(--ease-out) 120ms; }
.js .v-stat-strip .stat-item.reveal:not(.in) { transform: translateY(6px); }
.js .v-stat-strip .stat-item.reveal:not(.in) .stat-label { opacity: 0; }

/* Home: projects */
.v-proj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; align-items: start; }
.v-proj figure { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.v-proj figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-out); }
.v-tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); font-size: 13px; font-weight: 600; color: var(--text-primary); }
.v-tag .ic { width: 16px; height: 16px; color: var(--bleu-flash); }
.v-proj h3 { margin-top: 20px; font-size: 21px; }
.v-proj .v-cap { margin-top: 6px; color: var(--text-secondary); font-size: 16px; line-height: 1.5; }
.v-proj .v-more { margin-top: 8px; }

@media (max-width: 1000px) {
  .v-frag { grid-template-columns: repeat(3, 1fr); }
  .v-photo-cards { grid-template-columns: repeat(3, 1fr); }
  .v-more-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .v-hero-grid, .v-cert, .v-compare, .v-options, .v-qgrid, .v-proj, .v-more-cols { grid-template-columns: 1fr; }
  .v-hero-photo { aspect-ratio: 16 / 11; max-height: 300px; order: -1; }
  .v-cert-photo { aspect-ratio: 16 / 9; }
  .v-frag { grid-template-columns: 1fr 1fr; }
  .v-frag li { padding: 14px; }
  .v-photo-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x); scrollbar-width: none; }
  .v-photo-cards li { flex: 0 0 62%; scroll-snap-align: start; }
  .v-tiles { grid-template-columns: 1fr; gap: 10px; }
  .v-tiles a { min-height: 72px; padding: 16px 18px; }
  .v-cases { grid-template-columns: 1fr; }
  .v-stat-strip { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .v-stat-strip li { padding: 0 16px; }
  .v-stat-strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .v-steps, .v-timeline { grid-template-columns: 1fr; gap: 0; }
  .v-steps li, .v-timeline li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding-bottom: 22px; }
  .v-steps .v-step-ic, .v-timeline .v-step-ic { grid-row: span 2; margin-bottom: 0; }
  .v-steps li:not(:last-child)::before, .v-timeline li:not(:last-child)::before { top: 60px; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; transform-origin: center top; }
  .v-steps li:not(:last-child)::before { background: repeating-linear-gradient(180deg, var(--hairline) 0 6px, transparent 6px 12px); }
  .js .v-timeline li.reveal:not(.in)::before { transform: scaleY(0); }
}

/* =========================================================
   Reduced motion: everything visible at once, nothing travels.
   Colour and opacity feedback stay.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active, .story-card:active, .story-card:hover .story-bg-photo,
  .v-photo-cards li:hover img, .v-proj li:hover figure img,
  .v-tiles a:active, .v-tiles a:hover .ic-arrow-right, .video-toggle:active { transform: none !important; }
  .v-steps li::before, .v-timeline li::before, .v-photo-cards img, .v-proj figure img, .v-tiles .ic-arrow-right, .v-more summary .ic { transition: none !important; }
  .js .v-timeline li.reveal:not(.in)::before { transform: none; }
  .js .v-stat-strip .stat-item.reveal:not(.in) { transform: none; }
  ::view-transition-new(page) { animation-name: v-fade; }
}

/* Home sectors on phones: a vertical list of the five sectors instead of sideways tabs */
@media (max-width: 768px) {
  #status-switcher-section .tabs-wrapper { display: none; }
  #status-switcher-section .status-panels-container { display: grid; gap: 12px; }
  #status-switcher-section .tabpanel { display: block; padding-top: 0; animation: none; }
  #status-switcher-section .status-panel-content { gap: 0; }
  #status-switcher-section .status-intro {
    position: relative;
    min-height: 0 !important;
    height: 112px;
    padding: 0 64px 0 20px !important;
    justify-content: center;
    border-radius: 14px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
  }
  #status-switcher-section .status-bg-photo {
    filter: brightness(0.92) contrast(1.15);
    opacity: 0.92;
    transform: scale(1.04);
  }
  #status-switcher-section .status-bg-scrim {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.35) 100%);
  }
  #status-switcher-section .status-intro-body { position: static; }
  #status-switcher-section .status-label { display: none; }
  #status-switcher-section .status-intro h3 {
    position: relative;
    z-index: 1;
    font-size: 19px !important;
    line-height: 1.25;
    margin: 0 !important;
  }
  /* The whole card is the link; its text stays for screen readers and search */
  #status-switcher-section .status-intro .btn {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 0 !important;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    overflow: hidden;
  }
  #status-switcher-section .status-intro .btn::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border-radius: 50%;
    background: var(--bleu-flash, #0F62FE) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
    transition: transform 150ms var(--ease-out, ease-out);
  }
  #status-switcher-section .status-intro .btn:active::after { transform: scale(0.94); }
  #status-switcher-section .status-intro .btn:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
  #status-switcher-section .section-head { margin-bottom: 24px !important; }
}

/* iOS: never show the native play overlay on the hero video (e.g. Low Power Mode blocks autoplay); the poster stays as a still image */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
}

/* Pillar cards: no orphan card. Tablet = 3 on top, 2 below at equal width; phone = one per line */
@media (min-width: 769px) and (max-width: 1200px) {
  .story-grid { grid-template-columns: repeat(6, 1fr); }
  .story-card { grid-column: span 2; height: 360px; }
  .story-card:nth-child(4), .story-card:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 768px) {
  .story-grid { grid-template-columns: 1fr; gap: 10px; }
  .story-card, .story-card:nth-child(5) { grid-column: auto; height: 120px; border-radius: 14px; justify-content: center; }
  .story-scrim { background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.25) 100%); }
  .story-bg-photo { filter: grayscale(60%) contrast(1.1) brightness(0.9); }
  .story-body { padding: 0 64px 0 20px; }
  .story-title { font-size: 19px; letter-spacing: 0.01em; }
  .story-card::after {
    content: ""; position: absolute; z-index: 2; right: 18px; top: 50%;
    width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  }
}

/* Mobile menu: solid panel (nothing shows through), actions right under the links, bigger language target */
@media (max-width: 1200px) {
  .mobile-panel {
    background-color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .mobile-panel-footer { margin-top: 0; padding-top: 32px; gap: 12px; }
  .mobile-actions-row .btn-mobile-action { min-height: 48px; }
  .mobile-lang-row { padding: 4px 6px 4px 16px; min-height: 48px; }
  .mobile-lang-row .lang-switch a,
  .mobile-lang-row .lang-switch strong {
    display: inline-flex !important; align-items: center; justify-content: center;
    min-width: 44px; min-height: 40px; padding: 0 8px !important; border-radius: 8px;
  }
  .mobile-lang-row .lang-switch strong { background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
}
@media (max-width: 1200px) {
  .site-header.menu-open { background-color: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
@media (max-width: 480px) {
  .mobile-actions-row { grid-template-columns: 1fr; gap: 10px; }
  .mobile-actions-row .btn-mobile-action { white-space: nowrap; }
}

/* =========================================================
   Batch 2 (mobile polish)
   ========================================================= */

/* Newsletter: preview before the form on phones; desktop keeps intro + form left, preview right */
.newsletter-grid { grid-template-areas: "intro visual" "signup visual"; row-gap: 0; }
.newsletter-grid > * { min-width: 0; }
.newsletter-left { grid-area: intro; align-self: end; }
.newsletter-right { grid-area: visual; }
.newsletter-signup { grid-area: signup; align-self: start; width: 100%; }
.newsletter-signup .newsletter-form-wrapper { min-height: 0; }
@media (max-width: 980px) {
  .newsletter-grid { grid-template-areas: "intro" "visual" "signup"; row-gap: 32px; }
}
@media (max-width: 768px) {
  .newsletter-section { padding-block: 40px 56px; }
  .newsletter-subtitle { margin-bottom: 0; }
  .newsletter-card { max-width: none; padding: 28px 20px 0; border-radius: 22px; align-items: flex-start; overflow: hidden; }
  .newsletter-card .phone-mockup { max-width: 280px; height: 420px; border-bottom: 0; border-radius: 40px 40px 0 0; box-shadow: 0 16px 40px rgba(5, 47, 173, 0.14); }
  .newsletter-card .phone-screen { overflow: hidden; }
  .newsletter-card .phone-home-indicator { display: none; }
  .newsletter-card .phone-mockup::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 90%);
  }
  .newsletter-signup #newsletter-form { max-width: none !important; }
  .newsletter-signup .newsletter-row input { font-size: 16px !important; min-height: 48px; }
  .newsletter-signup .newsletter-row .btn { min-height: 48px; }
  .newsletter-signup .newsletter-footnote { margin-top: 12px !important; max-width: none; }
}
@media (max-width: 480px) {
  .newsletter-signup .newsletter-row { flex-direction: column; gap: 10px !important; }
  .newsletter-signup .newsletter-row .btn { width: 100%; justify-content: center; }
}

/* Mining page: vertical lists on phones, no sideways scroll */
@media (max-width: 768px) {
  .v-frag { grid-template-columns: 1fr; gap: 8px; }
  .v-frag li { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; }
  .v-frag li .ic { grid-row: span 2; margin-bottom: 0; }
  .v-frag b { font-size: 16px; }

  .v-photo-cards { display: grid; grid-template-columns: 1fr; gap: 10px; overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; }
  .v-photo-cards li { flex: none; aspect-ratio: auto; height: 112px; border-radius: 14px; display: flex; align-items: center; }
  .v-photo-cards li::after { background: linear-gradient(90deg, rgba(11, 19, 32, 0.88) 0%, rgba(11, 19, 32, 0.6) 55%, rgba(11, 19, 32, 0.3) 100%); }
  .v-photo-cards .v-badge { top: 50%; left: 16px; margin-top: -20px; width: 40px; height: 40px; }
  .v-photo-cards .v-badge .ic { width: 20px; height: 20px; }
  .v-photo-cards b { position: static; padding: 0 18px 0 72px; font-size: 18px; }
}

/* Home pillar cards: blue border + glow while touched (mirrors desktop hover) */
@media (hover: none) {
  #pillars .story-card { transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; -webkit-tap-highlight-color: transparent; }
  #pillars .story-card:active {
    border-color: var(--bleu-flash);
    box-shadow: 0 8px 24px rgba(15, 98, 254, 0.35);
    transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  }
}

/* Mobile: form fields at 16px so iOS Safari does not zoom on focus */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="submit"]):not([type="button"]),
  select,
  textarea { font-size: 16px !important; }
}

/* Narrow desktop header: the nav has 5 items since the About link was added (2026-10-28).
   Between the mobile breakpoint and 1440px, tighten the nav spacing so the French labels
   never run into the language switch. */
@media (min-width: 1201px) and (max-width: 1439px) {
  .main-nav {
    margin-left: clamp(1.5rem, 2vw, 4rem);
    gap: clamp(14px, 1.6vw, 26px);
  }
  .header-right { gap: 16px; }
}
