/* =====================================================================
   Flowmax — Texpo 2026
   Mobile-first (390px) · RTL · animations use transform/opacity only
   ===================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo-latin.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --primary: #25624F;
  --primary-dark: #163E31;
  --deep: #102F25;
  --deeper: #0B231B;
  --light-primary: #EAF3F0;
  --gold: #B8A47C;
  --gold-soft: #D8C9A3;
  --light-secondary: #EDEBE0;
  --bg: #FBFBF8;
  --text: #4A5F57;
  --heading: #163E31;
  --cream: #F4F1E8;
  --on-dark: rgba(234, 243, 240, .76);
  --danger: #C8574B;

  --font-ar: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-en: "Poppins", "Cairo", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 64px;
  --gutter: clamp(16px, 5vw, 40px);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(22, 62, 49, .04), 0 12px 32px -16px rgba(22, 62, 49, .18);
  --section-pad: clamp(76px, 13vw, 140px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-ar); font-size: 1rem; line-height: 1.85;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--heading); margin: 0; line-height: 1.35; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--flip { transform: scaleX(-1); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; background: var(--gold); color: var(--deep); padding: 8px 16px; border-radius: 10px; transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: none; }

/* ---------- Mark (symbol) + brand lockup ---------- */
.mark {
  --size: 38px;
  width: var(--size); height: var(--size); flex: none;
  display: inline-grid; place-items: center; position: relative;
  border-radius: calc(var(--size) * .3);
  background: linear-gradient(145deg, #D2C196 0%, #B8A47C 48%, #9C8860 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px -6px rgba(184, 164, 124, .6);
  color: var(--deep);
}
.mark__mono { font-family: var(--font-en); font-weight: 600; font-size: calc(var(--size) * .38); letter-spacing: .02em; line-height: 1; transform: translateY(.04em); }
.mark__img { width: 100%; height: 100%; object-fit: contain; }
.mark.has-logo { display: block; background: none; box-shadow: none; border-radius: 0; }
.mark--sm { --size: 30px; }
.mark--xl { --size: 84px; border-radius: 26px; }
.mark--xl.has-logo { border-radius: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { display: block; height: 34px; width: auto; }
.drawer__head .brand__logo { height: 30px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  position: relative; isolation: isolate;
  transition: transform .3s var(--ease);
}
.btn .icon { width: 22px; height: 22px; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: .9rem; }
.btn--lg { --h: 58px; padding: 0 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--gold { background: linear-gradient(135deg, #CDBB90, #B8A47C 55%, #A8946B); color: var(--deep); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--gold::after {
  content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: inherit;
  background: radial-gradient(closest-side, rgba(216, 201, 163, .55), transparent);
  opacity: 0; transition: opacity .35s var(--ease);
}
.btn--ghost-light { color: var(--cream); border: 1px solid rgba(216, 201, 163, .45); background: rgba(255, 255, 255, .03); }
.btn:active { transform: scale(.97); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--gold:hover::after { opacity: 1; }
  .btn--ghost-light:hover { border-color: var(--gold); }
}

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.progress__bar {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(270deg, var(--gold), var(--gold-soft));
  box-shadow: 0 0 8px rgba(216, 201, 163, .7);
  transform-origin: right center; transform: scaleX(0); will-change: transform;
}

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); }
.header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(13, 38, 30, .84);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(184, 164, 124, .22);
  opacity: 0; transition: opacity .4s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.header__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 12px; }
.header .brand { margin-inline-end: auto; }
@media (max-width: 380px) { .header .brand__logo { height: 28px; } }
.nav { display: none; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; color: var(--cream); border-radius: 12px; border: 1px solid rgba(216, 201, 163, .3); }
@media (max-width: 359px) { .header__cta { display: none; } }

/* ---------- Drawer (mobile menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 26, 20, .6); opacity: 0; transition: opacity .4s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(86vw, 360px);
  background: linear-gradient(170deg, var(--primary-dark), var(--deep) 70%);
  border-inline-end: 1px solid rgba(184, 164, 124, .3);
  padding: 18px 24px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 22px;
  transform: translateX(102%); transition: transform .5s var(--ease-out);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.drawer__close { width: 44px; height: 44px; display: grid; place-items: center; color: var(--cream); border-radius: 12px; border: 1px solid rgba(216, 201, 163, .3); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; font-size: 1.2rem; font-weight: 600; color: var(--cream); border-bottom: 1px solid rgba(184, 164, 124, .14); }
.drawer__nav a span { font-family: var(--font-en); font-size: .75rem; font-weight: 500; color: var(--gold); letter-spacing: .1em; }
.drawer__foot { margin-top: auto; font-family: var(--font-en); font-size: .8rem; letter-spacing: .14em; color: rgba(216, 201, 163, .7); text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 8px);
  background: linear-gradient(165deg, #102F25 0%, #163E31 52%, #25624F 100%);
  color: var(--on-dark);
}
.hero__texture, .section__texture {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/pattern-gold.svg") center / 72px 72px repeat;
  opacity: .05;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero__glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; top: 0; left: 50%; transform: translate(-50%, -10%);
  background: radial-gradient(closest-side, rgba(184, 164, 124, .16), rgba(184, 164, 124, 0));
}
.hero__grid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-block: 4px 8px; }
.hero__visual { order: -1; position: relative; width: min(66vw, 264px); aspect-ratio: 1; margin-inline: auto; }
.hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(184, 164, 124, .45); background: rgba(184, 164, 124, .08);
  color: var(--gold-soft); font-family: var(--font-en); font-weight: 500; font-size: .8rem; letter-spacing: .12em;
  direction: ltr;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: blink 2.4s ease-in-out infinite; }
.hero__title { color: var(--cream); font-size: clamp(2.05rem, 9vw, 4.1rem); font-weight: 800; line-height: 1.3; margin-top: 14px; letter-spacing: -.005em; }
.hero__en { font-family: var(--font-en); font-weight: 300; font-size: clamp(.95rem, 3.6vw, 1.3rem); letter-spacing: .06em; color: var(--gold-soft); margin-top: 6px; }
.hero__text { font-size: clamp(1rem, 3.9vw, 1.18rem); line-height: 1.9; max-width: 36em; margin-top: 18px; }
.hero__text strong { color: var(--cream); font-weight: 700; }
.hero__tagline { font-family: var(--font-en); font-size: .82rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 18px; }
.hero__tagline span + span { margin-inline-start: .2em; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; width: 100%; }
.hero__actions .btn { flex: 1 1 150px; max-width: 220px; }

.hero__in { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 250ms); }

.scroll-hint { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 16px 18px; color: rgba(216, 201, 163, .8); font-size: .75rem; letter-spacing: .08em; }
.scroll-hint .icon { width: 22px; height: 22px; animation: bob 2.2s var(--ease) infinite; }

/* Network */
.network { width: 100%; height: 100%; overflow: visible; }
.net-orbit { fill: none; stroke: rgba(184, 164, 124, .16); stroke-width: .8; stroke-dasharray: 2 6; transform-origin: 200px 200px; transform-box: view-box; animation: spin 140s linear infinite; }
.net-orbit--rev { animation-direction: reverse; animation-duration: 180s; }
.net-line { fill: none; stroke: rgba(184, 164, 124, .42); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 300ms); }
.net-line--faint { stroke: rgba(184, 164, 124, .2); }
.net-node { fill: #133A2D; stroke: var(--gold); stroke-width: 1.1; opacity: 0; animation: fade .6s var(--ease) forwards; animation-delay: calc(var(--i) * 50ms + 600ms); }
.net-node--sm { fill: var(--gold); stroke: none; }
.net-pulse { fill: url(#pulseGrad); opacity: 0; animation: travel var(--dur) cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: var(--delay); will-change: transform, opacity; }
.network__core { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.network__core .mark { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 7px rgba(16, 47, 37, .9), 0 0 0 8px rgba(184, 164, 124, .55), 0 10px 40px -6px rgba(184, 164, 124, .55); animation: pop .9s var(--ease-out) both .2s; }
.network__core .mark.has-logo { border-radius: 50%; padding: calc(var(--size) * .2); background: radial-gradient(circle at 35% 30%, var(--primary-dark), var(--deep)); box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 8px rgba(16, 47, 37, .85), 0 0 0 9px rgba(184, 164, 124, .35), 0 10px 40px -6px rgba(184, 164, 124, .5); }
.network__halo { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 201, 163, .35), rgba(216, 201, 163, 0)); animation: breathe 4.5s ease-in-out infinite; }
.hero.is-paused .net-pulse, .hero.is-paused .net-orbit, .hero.is-paused .network__halo, .hero.is-paused .badge__dot, .hero.is-paused .scroll-hint .icon { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-pad); }
.section--tint { background: var(--light-primary); }
.section--tint .section__texture { background-image: url("../img/pattern-green.svg"); opacity: .045; }
.section--sand { background: var(--light-secondary); }
.section--dark { background: linear-gradient(170deg, var(--deep) 0%, var(--primary-dark) 100%); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--cream); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 7vw, 64px); }
.section-head h2 { font-size: clamp(1.7rem, 6.4vw, 2.75rem); font-weight: 800; }
.lead { margin-top: 14px; font-size: clamp(1rem, 3.8vw, 1.15rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font-family: var(--font-en); font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--primary); }
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-head--light .eyebrow { color: var(--gold-soft); }
.sub-title { font-size: 1.25rem; font-weight: 700; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 14px; }
.card {
  position: relative; isolation: isolate;
  background: #fff; border: 1px solid rgba(37, 98, 79, .1); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(184, 164, 124, .55), 0 22px 48px -18px rgba(184, 164, 124, .55);
  opacity: 0; transition: opacity .45s var(--ease);
}
.card h3 { font-size: 1.1rem; }
.card p { font-size: .95rem; line-height: 1.8; margin-top: 4px; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--primary-dark), var(--deep)); color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(184, 164, 124, .25);
}
.card--challenge { display: flex; gap: 16px; align-items: flex-start; }

/* ---------- Reveal system ---------- */
.js [data-reveal], .js [data-stagger] > * {
  opacity: 0; transform: translate3d(0, 32px, 0);
  transition: opacity .7s var(--ease), transform .8s var(--ease-out);
}
.js [data-stagger] > * { transition-delay: calc(var(--i, 0) * 100ms); }
.js [data-reveal].is-in, .js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-stagger].is-done > * { transition-delay: 0s; }
@media (hover: hover) and (min-width: 1024px) {
  .js [data-stagger].is-done > .card { transition: transform .45s var(--ease), opacity .7s var(--ease); }
  .js [data-stagger].is-done > .card:hover, .card:hover { transform: translateY(-6px); }
  .card:hover::after { opacity: 1; }
}

/* ---------- Engine ---------- */
.flow { display: flex; flex-direction: column; align-items: stretch; }
.flow__col { width: 100%; max-width: 420px; margin-inline: auto; }
.flow__label { display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.flow__label span { font-family: var(--font-en); font-weight: 500; font-size: .72rem; color: var(--primary); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); }

.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 14px;
  background: #fff; border: 1px solid rgba(37, 98, 79, .12); border-radius: 14px;
  font-weight: 600; font-size: .95rem; color: var(--heading); position: relative; isolation: isolate;
}
.type .icon { color: var(--gold); width: 22px; height: 22px; }
.type::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 28px -12px rgba(22, 62, 49, .55), 0 0 0 1px rgba(184, 164, 124, .6);
  opacity: 0; transition: opacity .5s var(--ease) .5s;
}
.type--active { transition: color .5s var(--ease) .5s; }
.flow__types.is-in .type--active { color: var(--cream); }
.flow__types.is-in .type--active::before { opacity: 1; }

.flow__link { display: grid; place-items: center; padding-block: 6px; }
.flow__line { overflow: visible; }
.flow__line path { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.flow__line path:first-child { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.flow__head { opacity: 0; transition: opacity .3s var(--ease) .75s; }
.flow__line--h { display: none; width: 96px; height: 24px; }
.flow__line--v { width: 24px; height: 64px; }
.flow__link.is-in .flow__line path:first-child { stroke-dashoffset: 0; }
.flow__link.is-in .flow__head { opacity: 1; }

.engine {
  position: relative; border-radius: 22px; padding: 18px; isolation: isolate;
  background: linear-gradient(160deg, var(--primary-dark), var(--deep));
  border: 1px solid rgba(184, 164, 124, .35);
  box-shadow: 0 24px 60px -24px rgba(16, 47, 37, .7), 0 0 0 6px rgba(184, 164, 124, .07);
  color: var(--on-dark);
}
.engine::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: url("../img/pattern-gold.svg") center / 56px repeat; opacity: .06; }
.engine__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid rgba(184, 164, 124, .2); font-family: var(--font-en); font-weight: 500; color: var(--cream); font-size: 1rem; letter-spacing: .02em; }
.engine__layer {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .045); border-inline-start: 2px solid var(--gold);
}
.engine__layer + .engine__layer { margin-top: 8px; }
.engine__layer .icon { color: var(--gold); }
.engine__layer strong { display: block; font-family: var(--font-en); font-weight: 500; font-size: .92rem; color: var(--cream); line-height: 1.4; text-align: right; }
.engine__layer span { display: block; font-size: .82rem; line-height: 1.6; }

.form-mock {
  background: #fff; border-radius: 20px; padding: 14px 16px 18px; border: 1px solid rgba(37, 98, 79, .12);
  box-shadow: 0 24px 50px -26px rgba(22, 62, 49, .4);
}
.form-mock__bar { display: flex; align-items: center; gap: 5px; padding-bottom: 12px; border-bottom: 1px solid rgba(37, 98, 79, .08); }
.form-mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--light-secondary); }
.form-mock__bar code { margin-inline-start: auto; font-size: .68rem; color: var(--primary); background: var(--light-primary); padding: 3px 8px; border-radius: 6px; }
.form-mock__title { font-weight: 800; color: var(--heading); font-size: 1.05rem; margin: 12px 0 6px; }
.fm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fm-field { margin-top: 8px; }
.fm-label { display: block; font-size: .72rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.fm-input {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(37, 98, 79, .18); background: var(--bg); font-size: .85rem; color: var(--heading); position: relative;
}
.fm-input--date { font-family: var(--font-en); font-size: .78rem; }
.fm-input--select::after { content: ""; position: absolute; inset-inline-end: 14px; width: 7px; height: 7px; border-right: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary); transform: translateY(-2px) rotate(45deg); }
.fm-input--ok { font-family: var(--font-en); font-size: .8rem; border-color: rgba(37, 98, 79, .45); }
.fm-input--ok::after { content: "✓"; position: absolute; inset-inline-end: 12px; color: var(--primary); font-weight: 700; }
.fm-input--file { border-style: dashed; color: var(--primary); }
.fm-input--file .icon { width: 18px; height: 18px; color: var(--gold); }
.fm-submit { display: flex; align-items: center; justify-content: center; height: 40px; margin-top: 14px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; font-size: .88rem; }

/* sequential build of the flow pieces */
.js .flow__types .type, .js .engine, .js .engine__layer, .js .form-mock, .js .form-mock > *:not(.form-mock__bar) {
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity .6s var(--ease), transform .7s var(--ease-out);
}
.js .flow__types .type:nth-child(2) { transition-delay: .08s; }
.js .flow__types .type:nth-child(3) { transition-delay: .16s; }
.js .flow__types .type:nth-child(4) { transition-delay: .24s; }
.js .engine__layer:nth-of-type(2) { transition-delay: .25s; }
.js .engine__layer:nth-of-type(3) { transition-delay: .4s; }
.js .engine__layer:nth-of-type(4) { transition-delay: .55s; }
.js .form-mock > :nth-child(2) { transition-delay: .2s; }
.js .form-mock > :nth-child(3) { transition-delay: .3s; }
.js .form-mock > :nth-child(4) { transition-delay: .4s; }
.js .form-mock > :nth-child(5) { transition-delay: .5s; }
.js .form-mock > :nth-child(6) { transition-delay: .6s; }
.js .form-mock > :nth-child(7) { transition-delay: .72s; }
.flow__col.is-in .type, .flow__col.is-in .engine, .flow__col.is-in .engine__layer, .flow__col.is-in .form-mock, .flow__col.is-in .form-mock > * { opacity: 1; transform: none; }

.engine-explain { max-width: 760px; margin: clamp(40px, 7vw, 64px) auto 0; text-align: center; }
.engine-explain__text { font-size: clamp(1.02rem, 3.9vw, 1.2rem); line-height: 1.95; color: var(--text); }
.engine-explain__text strong { display: block; margin-top: 6px; color: var(--heading); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(184, 164, 124, .6); color: var(--heading); font-weight: 600; font-size: .88rem;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.chip[lang="en"] { font-family: var(--font-en); font-weight: 500; font-size: .82rem; }
.js .chips.chips > * { transform: scale(.7); transition: opacity .5s var(--ease), transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * 90ms + 200ms); }
.js .chips.is-in > * { transform: none; }

/* ---------- Stepper ---------- */
.stepper { position: relative; max-width: 560px; margin-inline: auto; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; align-content: start; gap: 16px; padding-bottom: 30px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before, .step:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 25px; top: 60px; bottom: 8px; width: 2px; border-radius: 2px;
  background: rgba(37, 98, 79, .14);
}
.step:not(:last-child)::after { background: linear-gradient(180deg, var(--gold), var(--primary)); transform-origin: top; transform: scaleY(0); transition: transform .7s var(--ease); }
.step.is-linked::after { transform: scaleY(1); }
.step__node {
  position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid rgba(37, 98, 79, .18); color: rgba(37, 98, 79, .5); isolation: isolate;
}
.step__node::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; z-index: -1;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 7px rgba(184, 164, 124, .16), 0 10px 26px -8px rgba(22, 62, 49, .6);
  opacity: 0; transform: scale(.6); transition: opacity .5s var(--ease), transform .6s var(--ease-out);
}
.step__node .icon { transition: color .4s var(--ease); }
.step.is-active .step__node::before { opacity: 1; transform: none; }
.step.is-active .step__node .icon { color: var(--gold-soft); }
.step__body { padding-top: 2px; transition: opacity .5s var(--ease); }
.js .step:not(.is-active) .step__body { opacity: .5; }
.step__num { font-family: var(--font-en); font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--primary); }
.step h3 { font-size: 1.1rem; margin-top: 2px; }
.step p { font-size: .93rem; line-height: 1.75; margin-top: 4px; }

/* ---------- Security ---------- */
.security { display: grid; gap: 28px; }
.security__visuals { display: grid; gap: 16px; }
.panel {
  border-radius: 20px; padding: 18px; position: relative;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(184, 164, 124, .22);
}
.panel__title { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; color: var(--cream); font-weight: 700; font-size: .98rem; }
.panel__title .icon { color: var(--gold); width: 22px; height: 22px; margin-top: 2px; }
.panel__note { font-size: .88rem; margin-top: 14px; line-height: 1.8; }

.sign-flow { display: flex; align-items: flex-start; gap: 4px; margin-top: 18px; }
.sign-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.sign-step__icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px;
  border: 1px solid rgba(184, 164, 124, .4); color: var(--gold); position: relative; isolation: isolate;
}
.sign-step__icon::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(216, 201, 163, .35), transparent); opacity: 0; transition: opacity .5s var(--ease); }
.sign-step strong { font-family: var(--font-en); font-weight: 500; font-size: .74rem; color: var(--cream); line-height: 1.35; }
.sign-step > span:last-child { font-size: .74rem; line-height: 1.55; }
.sign-arrow { flex: 0 0 22px; padding-top: 18px; }
.sign-arrow svg { width: 22px; height: 12px; overflow: visible; display: block; }
.sign-arrow path { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sign-arrow path:first-child { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease); }
.sign-arrow .flow__head { transition-delay: .5s; }
.sign-flow .sign-step:nth-child(3) .sign-step__icon::before, .sign-flow .sign-arrow:nth-child(2) path { transition-delay: .5s; }
.sign-flow .sign-arrow:nth-child(2) .flow__head { transition-delay: 1s; }
.sign-flow .sign-step:nth-child(3) .sign-step__icon::before { transition-delay: 1.1s; }
.sign-flow .sign-arrow:nth-child(4) path { transition-delay: 1.5s; }
.sign-flow .sign-arrow:nth-child(4) .flow__head { transition-delay: 2s; }
.sign-flow .sign-step:nth-child(5) .sign-step__icon::before { transition-delay: 2.1s; }
.panel.is-in .sign-step__icon::before { opacity: 1; }
.panel.is-in .sign-arrow path:first-child { stroke-dashoffset: 0; }
.panel.is-in .sign-arrow .flow__head { opacity: 1; }

.chain { position: relative; display: flex; align-items: center; margin-top: 46px; padding-inline: 2px; }
.chain__node {
  flex: none; width: 46px; height: 50px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid rgba(184, 164, 124, .55); background: rgba(16, 47, 37, .9); position: relative; isolation: isolate; z-index: 1;
}
.chain__node span { font-family: var(--font-en); font-weight: 600; font-size: .72rem; color: var(--cream); line-height: 1.2; }
.chain__node small { font-family: var(--font-mono); font-size: .58rem; color: var(--gold); line-height: 1.2; }
.chain__node::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 1.5px var(--danger), 0 0 18px rgba(200, 87, 75, .55); opacity: 0; transition: opacity .35s var(--ease); }
.chain__link { flex: 1 1 0; min-width: 8px; height: 2px; display: flex; position: relative; }
.chain__link i { flex: 1; height: 2px; background: var(--gold); transition: transform .45s var(--ease-out), opacity .35s; position: relative; }
.chain__link i::after { content: ""; position: absolute; inset: 0; background: var(--danger); opacity: 0; transition: opacity .35s var(--ease); }
.chain__alert {
  position: absolute; bottom: calc(100% + 18px); left: 50%; transform: translate(-50%, 6px);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(200, 87, 75, .16); border: 1px solid rgba(200, 87, 75, .7); color: #F3C9C2; font-size: .72rem; font-weight: 700;
  opacity: 0; transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.chain.is-broken .chain__link--weak i:first-child { transform: translateX(6px); }
.chain.is-broken .chain__link--weak i:last-child { transform: translateX(-6px); }
.chain.is-broken .chain__link--weak i::after, .chain.is-broken .chain__node--target::after { opacity: 1; }
.chain.is-broken .chain__alert { opacity: 1; transform: translate(-50%, 0); }
.chain__beam { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; }
.chain__beam i { position: absolute; top: 50%; right: 0; width: 18px; height: 18px; margin: -9px -9px 0 0; border-radius: 50%; background: radial-gradient(closest-side, #F4E9C9, rgba(216, 201, 163, .5) 45%, transparent); }
.chain.is-running .chain__beam { animation: beam 3.2s cubic-bezier(.45, 0, .55, 1) infinite; }

.features { display: grid; gap: 12px; }
.feature { display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(184, 164, 124, .14); }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(184, 164, 124, .4); background: rgba(184, 164, 124, .06); }
.feature h3 { font-size: 1.02rem; }
.feature p { font-size: .9rem; line-height: 1.75; margin-top: 2px; }

/* ---------- Case study ---------- */
.case-origin { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 16px; border-radius: 14px; background: var(--light-primary); color: var(--primary-dark); font-size: .9rem; font-weight: 600; line-height: 1.6; }
.case-origin .icon { color: var(--gold); width: 22px; height: 22px; }
.case-origin { text-align: start; }
.case { display: grid; gap: 32px; }
.timeline { position: relative; margin-top: 22px; padding-inline-start: 34px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(184, 164, 124, .15)); transform-origin: top; transform: scaleY(0); transition: transform 1.4s var(--ease); }
.timeline.is-in::before { transform: none; }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; inset-inline-start: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.timeline__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }
.timeline__phase { font-family: var(--font-en); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.timeline h4 { font-size: 1.05rem; margin-top: 2px; }
.timeline h4[lang="en"] { font-family: var(--font-en); font-weight: 600; text-align: right; }
.timeline p { font-size: .92rem; line-height: 1.75; margin-top: 2px; }

.goals {
  position: relative; isolation: isolate; overflow: hidden; align-self: start;
  border-radius: 22px; padding: 26px 22px; color: var(--on-dark);
  background: linear-gradient(160deg, var(--primary-dark), var(--deep));
  border: 1px solid rgba(184, 164, 124, .3);
}
.goals::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pattern-gold.svg") center / 64px repeat; opacity: .05; }
.goals__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(184, 164, 124, .45); margin-bottom: 14px; }
.goals .sub-title { color: var(--cream); }
.goals__note { font-size: .85rem; margin-top: 4px; color: rgba(216, 201, 163, .85); }
.goals__list { margin-top: 18px; display: grid; gap: 12px; }
.goals__list li { display: flex; align-items: flex-start; gap: 12px; color: var(--cream); font-weight: 600; font-size: .98rem; line-height: 1.7; padding-bottom: 12px; border-bottom: 1px solid rgba(184, 164, 124, .14); }
.goals__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.goals__list .icon { color: var(--gold); width: 20px; height: 20px; margin-top: 4px; }

.shots { margin-top: clamp(48px, 8vw, 80px); }
.shots__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.shots__nav { display: none; gap: 8px; }
.shots__btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(37, 98, 79, .2); color: var(--primary); background: #fff; transition: transform .3s var(--ease), opacity .3s; }
.shots__btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .shots__btn:not(:disabled):hover { transform: translateY(-2px); } }
.shots__track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.shots__track::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 86%; scroll-snap-align: center; margin: 0; }
.shot__frame { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(37, 98, 79, .14); box-shadow: 0 20px 44px -24px rgba(22, 62, 49, .45); }
.shot__bar { display: flex; align-items: center; gap: 5px; height: 26px; padding-inline: 12px; background: var(--light-secondary); border-bottom: 1px solid rgba(37, 98, 79, .08); direction: ltr; }
.shot__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(37, 98, 79, .22); }
.shot__screen { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--light-primary), #fff 70%); overflow: hidden; }
.shot__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .6s var(--ease); }
.shot.has-img .shot__screen > img { opacity: 1; }
.shot.has-img .shot__ph { opacity: 0; }
.shot__ph { position: absolute; inset: 0; display: grid; grid-template-columns: 22% 1fr; transition: opacity .4s; }
.shot__ph-side { background: linear-gradient(180deg, var(--primary-dark), var(--deep)); padding: 10% 12%; display: flex; flex-direction: column; gap: 9%; }
.shot__ph-side i { height: 5%; min-height: 4px; border-radius: 4px; background: rgba(216, 201, 163, .28); }
.shot__ph-side i:first-child { width: 60%; background: var(--gold); height: 7%; margin-bottom: 8%; }
.shot__ph-main { padding: 6%; display: flex; flex-direction: column; gap: 6%; }
.shot__ph-row { display: flex; gap: 5%; flex: none; }
.shot__ph-row i { flex: 1; aspect-ratio: 2.4; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 rgba(37, 98, 79, .08), inset 0 0 0 1px rgba(37, 98, 79, .08); }
.shot__ph-row i:first-child { box-shadow: inset 0 0 0 1px rgba(184, 164, 124, .6); }
.shot__ph-lines { flex: 1; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgba(37, 98, 79, .08); background-image: repeating-linear-gradient(180deg, transparent 0 14%, rgba(37, 98, 79, .07) 14% calc(14% + 1px)); }
.shot__ph-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.shot__ph-mark .mark { --size: 48px; opacity: .95; box-shadow: 0 0 0 6px rgba(255, 255, 255, .8), 0 10px 30px -8px rgba(22, 62, 49, .5); }
.shot__ph-mark .mark.has-logo { padding: 9px; border-radius: 14px; background: linear-gradient(145deg, var(--primary-dark), var(--deep)); }
.shot figcaption { margin-top: 12px; font-weight: 700; color: var(--heading); font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.shot figcaption span { font-family: var(--font-en); font-size: .72rem; font-weight: 500; color: var(--primary); letter-spacing: .1em; }
.shots__dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.shots__dots i { width: 22px; height: 3px; border-radius: 3px; background: rgba(37, 98, 79, .18); position: relative; overflow: hidden; }
.shots__dots i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.shots__dots i.is-active::after { transform: none; }

.quote { position: relative; margin: clamp(56px, 9vw, 96px) auto 0; max-width: 820px; text-align: center; padding: 34px 8px 0; }
.quote::before { content: ""; position: absolute; top: 14px; left: 50%; width: 140px; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.quote__mark { width: 40px; height: 30px; fill: var(--gold); opacity: .9; margin: 0 auto 14px; display: block; position: relative; background: var(--bg); padding: 0 8px; box-sizing: content-box; margin-top: -32px; }
.quote blockquote { margin: 0; font-size: clamp(1.25rem, 5vw, 2rem); font-weight: 700; line-height: 1.7; color: var(--heading); }

/* ---------- Why ---------- */
.card--why { padding: 24px 22px; }
.card--why .card__icon { margin-bottom: 18px; }
.card__num { position: absolute; top: 16px; inset-inline-end: 20px; font-family: var(--font-en); font-weight: 300; font-size: 2.6rem; line-height: 1; color: rgba(37, 98, 79, .14); }

/* ---------- Team ---------- */
.grid--team { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.member { flex: 0 1 calc(50% - 7px); min-width: 0; text-align: center; padding: 24px 12px 20px; display: flex; flex-direction: column; align-items: center; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 30% 25%, var(--primary), var(--primary-dark) 60%, var(--deep));
  color: var(--cream); font-weight: 700; font-size: 1.45rem; letter-spacing: .04em;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--gold), 0 14px 30px -12px rgba(22, 62, 49, .55);
  margin-bottom: 16px;
}
.avatar::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(216, 201, 163, .35); }
.member h3 { font-size: 1.02rem; line-height: 1.5; }
.member__role { font-family: var(--font-en); font-size: .76rem; line-height: 1.55; color: var(--text); margin-top: 4px; direction: ltr; }
.member__links { display: flex; gap: 8px; margin-top: 14px; }
.member__links:empty { display: none; }
.member__links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--primary); border: 1px solid rgba(184, 164, 124, .55); transition: transform .3s var(--ease); }
.member__links .icon { width: 20px; height: 20px; }
@media (hover: hover) { .member__links a:hover { transform: translateY(-2px); } }

/* ---------- Contact ---------- */
.audiences { display: grid; gap: 14px; }
.audience { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(184, 164, 124, .22); position: relative; overflow: hidden; }
.audience::before { content: ""; position: absolute; top: 0; inset-inline-start: 22px; width: 48px; height: 2px; background: var(--gold); }
.audience__icon { color: var(--gold); display: block; margin-bottom: 10px; }
.audience__for { font-size: .82rem; font-weight: 700; color: var(--gold-soft); letter-spacing: .02em; }
.audience h3 { font-size: 1.2rem; margin-top: 2px; }
.audience p:last-child { font-size: .92rem; margin-top: 6px; line-height: 1.8; }

.contact-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-top: 28px; }
.cbtn {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(184, 164, 124, .3); color: var(--cream);
  position: relative; isolation: isolate;
}
.cbtn::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; box-shadow: 0 0 0 1px var(--gold), 0 14px 40px -14px rgba(184, 164, 124, .5); opacity: 0; transition: opacity .4s var(--ease); }
.cbtn[hidden] { display: none; }
.cbtn__icon { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #CDBB90, #A8946B); color: var(--deep); }
.cbtn__icon .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.cbtn__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.cbtn__text small { font-size: .78rem; color: rgba(216, 201, 163, .9); }
.cbtn__value { font-weight: 700; font-size: 1rem; overflow-wrap: anywhere; }
.cbtn__value[dir="ltr"] { font-family: var(--font-en); font-weight: 500; font-size: .95rem; text-align: right; }
@media (hover: hover) { .cbtn:hover::after { opacity: 1; } }
.cbtn:active { transform: scale(.985); }

.contact-save { display: flex; justify-content: center; margin-top: 28px; }
.contact-save .btn { width: 100%; max-width: 380px; }
.closing { margin-top: clamp(48px, 8vw, 72px); text-align: center; color: var(--gold); font-weight: 700; font-size: clamp(1.15rem, 4.6vw, 1.6rem); line-height: 1.7; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.closing::before { content: ""; width: 1px; height: 40px; background: linear-gradient(180deg, transparent, var(--gold)); }

/* ---------- Footer ---------- */
.footer { background: var(--deeper); color: rgba(234, 243, 240, .6); padding-block: 28px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(184, 164, 124, .16); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer__meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-en); font-size: .8rem; letter-spacing: .06em; }
.footer__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.to-top { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(184, 164, 124, .4); transition: transform .3s var(--ease); }
@media (hover: hover) { .to-top:hover { transform: translateY(-3px); } }

/* ---------- Floating action button (mobile) ---------- */
.fab {
  position: fixed; z-index: 40; inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark)); color: var(--gold-soft);
  box-shadow: 0 0 0 1.5px var(--gold), 0 12px 28px -8px rgba(11, 35, 27, .6);
  opacity: 0; transform: translateY(20px) scale(.85); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab .icon { width: 26px; height: 26px; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes travel {
  0% { opacity: 0; transform: translate(0, 0); }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
@keyframes beam { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(-100%); } }

/* =====================================================================
   Tablet ≥ 640
   ===================================================================== */
@media (min-width: 640px) {
  .grid--challenges { grid-template-columns: repeat(2, 1fr); }
  .grid--why { grid-template-columns: repeat(2, 1fr); }
  .audiences { grid-template-columns: repeat(2, 1fr); }
  .member { flex-basis: calc(33.333% - 10px); }
  .shot { flex-basis: 70%; }
  .chain__node { width: 54px; height: 56px; }
  .sign-step strong, .sign-step > span:last-child { font-size: .82rem; }
  .sign-arrow { flex-basis: 40px; }
  .sign-arrow svg { width: 40px; }
}

@media (min-width: 768px) {
  :root { --header-h: 72px; }
  .hero__visual { width: min(56vw, 380px); }
  .card { padding: 24px; }
  .shots__nav { display: flex; }
  .shot { flex-basis: 58%; }
  .footer__inner { flex-direction: row; justify-content: space-between; }
}

/* =====================================================================
   Desktop ≥ 1024
   ===================================================================== */
@media (min-width: 1024px) {
  .nav { display: flex; gap: 4px; margin-inline: auto; }
  .nav a { position: relative; padding: 8px 12px; font-size: .92rem; font-weight: 600; color: rgba(244, 241, 232, .85); transition: color .3s; }
  .nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
  .nav a:hover, .nav a.is-current { color: var(--cream); }
  .nav a:hover::after, .nav a.is-current::after { transform: none; }
  .header .brand { margin-inline-end: 0; }
  .menu-toggle { display: none; }
  .fab { display: none; }

  .hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
  .hero__visual { order: 0; width: 100%; max-width: 540px; }
  .hero__content { text-align: start; align-items: flex-start; }
  .hero__actions { justify-content: flex-start; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__glow { left: 26%; width: 760px; height: 760px; top: 50%; transform: translate(-50%, -50%); }
  .mark--xl { --size: 112px; border-radius: 30px; }
  .network__halo { width: 200px; height: 200px; }

  .grid { gap: 20px; }
  .grid--challenges { grid-template-columns: repeat(3, 1fr); }
  .grid--why { grid-template-columns: repeat(4, 1fr); }

  /* flow: right → left */
  .flow { display: grid; grid-template-columns: 1fr 96px 1.12fr 96px 1fr; align-items: center; }
  .flow__col { max-width: none; }
  .flow__link { padding: 30px 0 0; }
  .flow__line--h { display: block; }
  .flow__line--v { display: none; }
  .types { grid-template-columns: 1fr; }
  .flow > :nth-child(2) .flow__line path:first-child { transition-delay: .55s; }
  .flow > :nth-child(2) .flow__head { transition-delay: 1.3s; }
  .flow > :nth-child(3) .engine { transition-delay: 1.15s; }
  .flow > :nth-child(3) .engine__layer:nth-of-type(2) { transition-delay: 1.45s; }
  .flow > :nth-child(3) .engine__layer:nth-of-type(3) { transition-delay: 1.6s; }
  .flow > :nth-child(3) .engine__layer:nth-of-type(4) { transition-delay: 1.75s; }
  .flow > :nth-child(4) .flow__line path:first-child { transition-delay: 1.95s; }
  .flow > :nth-child(4) .flow__head { transition-delay: 2.7s; }
  .flow > :nth-child(5) .form-mock { transition-delay: 2.5s; }
  .flow > :nth-child(5) .form-mock > :nth-child(2) { transition-delay: 2.7s; }
  .flow > :nth-child(5) .form-mock > :nth-child(3) { transition-delay: 2.8s; }
  .flow > :nth-child(5) .form-mock > :nth-child(4) { transition-delay: 2.9s; }
  .flow > :nth-child(5) .form-mock > :nth-child(5) { transition-delay: 3s; }
  .flow > :nth-child(5) .form-mock > :nth-child(6) { transition-delay: 3.1s; }
  .flow > :nth-child(5) .form-mock > :nth-child(7) { transition-delay: 3.25s; }

  /* stepper: horizontal */
  .stepper { max-width: none; display: grid; grid-template-columns: repeat(6, 1fr); }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 10px; gap: 18px; }
  .step:not(:last-child)::before, .step:not(:last-child)::after {
    top: 25px; bottom: auto; height: 2px; width: auto;
    inset-inline-start: calc(50% + 36px); inset-inline-end: calc(-50% + 36px);
  }
  .step:not(:last-child)::after { background: linear-gradient(270deg, var(--gold), var(--primary)); transform-origin: right center; transform: scaleX(0); }
  .step.is-linked::after { transform: scaleX(1); }
  .step__node { width: 56px; height: 56px; }
  .step:not(:last-child)::before, .step:not(:last-child)::after { top: 27px; }

  .security { grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
  .security__visuals { grid-template-columns: 1fr; order: 2; position: sticky; top: calc(var(--header-h) + 24px); }
  .features { order: 1; }
  .panel { padding: 24px; }

  .case { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
  .goals { padding: 32px 30px; }
  .shot { flex-basis: 46%; }
  .member { flex-basis: calc(20% - 16px); }
  .contact-actions { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (min-width: 1440px) {
  .container { max-width: 1280px; }
  .hero__title { font-size: 4.4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .net-pulse, .chain__beam { display: none; }
  .js [data-reveal], .js [data-stagger] > *, .js .flow__types .type, .js .engine, .js .engine__layer, .js .form-mock, .js .form-mock > * { opacity: 1; transform: none; }
}
