/* ==========================================================================
   Afghan Safi — Front-end design system
   Brand: Midnight Blue + Orange. No framework, ~mobile-first.
   ========================================================================== */

:root {
  --navy-950: #060c1f;
  --navy-900: #0a1530;
  --navy-800: #111f47;
  --navy-700: #1a2c61;
  --navy-600: #24397a;
  --orange-600: #e2650b;
  --orange-500: #f7801f;
  --orange-400: #ff9a45;
  --orange-100: #fff1e4;
  --ink: #0d1733;
  --body: #4a5572;
  --muted: #7a8399;
  --line: #e5e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(10, 21, 48, .06);
  --shadow: 0 12px 32px -12px rgba(10, 21, 48, .18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 21, 48, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1240px;
  --header-h: 84px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7;
  color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
main, .footer, .topbar { overflow-x: clip; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--orange-500); color: #fff; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 4px; }

.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -60px; z-index: 999; background: var(--orange-500); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.h-display { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
.h-display .accent { color: var(--orange-500); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--body); }
.text-justify { text-align: justify; hyphens: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange-500); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.75rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
  box-shadow: 0 10px 24px -10px rgba(247, 128, 31, .7);
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(247, 128, 31, .8); }
.btn:hover::after { transform: translateX(120%); }
.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn--navy { --bg: var(--navy-800); box-shadow: 0 10px 24px -10px rgba(10, 21, 48, .6); }
.btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn--ghost:hover { --bg: #fff; --fg: var(--navy-900); box-shadow: inset 0 0 0 2px #fff; }
.btn--outline { --bg: transparent; --fg: var(--navy-800); box-shadow: inset 0 0 0 2px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 2px var(--orange-500); --fg: var(--orange-600); }
.btn--sm { min-height: 42px; padding: .55rem 1.2rem; font-size: .88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--orange-600); }
.link-arrow .i { transition: transform .3s var(--ease); }
.link-arrow:hover .i { transform: translateX(5px); }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar { background: var(--navy-950); color: rgba(255,255,255,.75); font-size: .85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; transition: color .2s; }
.topbar a:hover { color: var(--orange-400); }
.topbar__info, .topbar__social { display: flex; align-items: center; gap: 1.4rem; }
.topbar__social { gap: .35rem; }
.topbar__social a { width: 32px; height: 32px; justify-content: center; border-radius: 50%; }
.topbar__social a:hover { background: rgba(255,255,255,.08); }
.topbar .i { width: 15px; height: 15px; }
@media (max-width: 760px) { .topbar__hide-sm { display: none !important; } }

.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
/* blur lives on a pseudo-element so the header doesn't become the containing block of the fixed mobile menu */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(10,21,48,.35); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); transition: height .3s var(--ease); }
.header.is-scrolled .container { height: 70px; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { height: 52px; width: auto; transition: transform .5s var(--ease), height .3s; }
.header.is-scrolled .brand img { height: 44px; }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.2rem; color: var(--navy-900); letter-spacing: -.02em; }
.brand__sub { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-600); margin-top: .2rem; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .95rem;
  font-weight: 600; font-size: .95rem; color: var(--navy-800); border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .3rem; height: 2px; border-radius: 2px;
  background: var(--orange-500); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--orange-600); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link .i { width: 16px; height: 16px; transition: transform .3s; }
.nav__item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 290px; padding: .6rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.dropdown a {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem; color: var(--navy-800); transition: background-color .2s, color .2s, padding .25s;
}
.dropdown a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-500); opacity: .35; transition: opacity .2s, transform .2s; }
.dropdown a:hover { background: var(--orange-100); color: var(--orange-600); padding-left: 1.15rem; }
.dropdown a:hover::before { opacity: 1; transform: scale(1.3); }
@media (min-width: 992px) {
  .nav { margin-left: auto; }
  .nav__item:hover .dropdown, .nav__item:focus-within .dropdown, .nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav__item:hover > .nav__link .i { transform: rotate(180deg); }
}
.header__cta { margin-left: .75rem; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); color: var(--navy-900); align-items: center; justify-content: center; }
.burger .i { width: 24px; height: 24px; }

@media (max-width: 991.98px) {
  .burger { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); height: 100dvh; z-index: 120;
    flex-direction: column; align-items: stretch; gap: .2rem; padding: 5.5rem 1.25rem 2rem;
    background: #fff; box-shadow: var(--shadow-lg); overflow-y: auto;
    transform: translateX(105%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__link { width: 100%; justify-content: space-between; padding: .9rem 1rem; border-radius: var(--radius-sm); font-size: 1.02rem; }
  .nav__link::after { display: none; }
  .nav__link.is-active, .nav__link:hover { background: var(--orange-100); }
  .dropdown { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 .75rem; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
  .nav__item.is-open .dropdown { max-height: 420px; }
  .nav__item.is-open > .nav__link .i { transform: rotate(180deg); }
  .nav__close { position: absolute; top: 1.2rem; right: 1.2rem; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); display: inline-flex; align-items: center; justify-content: center; }
  .nav .btn { margin-top: 1.25rem; }
}
@media (min-width: 992px) { .nav__close, .nav .nav__mobile-cta { display: none; } }
.backdrop { position: fixed; inset: 0; z-index: 99; background: rgba(6,12,31,.55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: .35s; }
.backdrop.is-open { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ==========================================================================
   Hero slider
   ========================================================================== */
.hero { position: relative; height: clamp(560px, 88vh, 820px); background: var(--navy-950); overflow: hidden; color: #fff; }
.hero__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.slide.is-active .slide__img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,12,31,.92) 0%, rgba(6,12,31,.7) 42%, rgba(6,12,31,.15) 100%), linear-gradient(0deg, rgba(6,12,31,.6), transparent 40%); }
.slide__content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.slide__inner { max-width: 760px; padding-bottom: 3rem; }
.slide__tag {
  display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem; border-radius: 999px;
  background: rgba(247,128,31,.15); border: 1px solid rgba(247,128,31,.45); color: var(--orange-400);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.4rem;
}
.slide__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 4px rgba(247,128,31,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(247,128,31,0); } }
.slide__title { color: #fff; font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.1; margin-bottom: 2rem; }
.slide__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.slide__tag, .slide__title, .slide__actions { opacity: 0; transform: translateY(30px); }
.slide.is-active .slide__tag, .slide.is-active .slide__title, .slide.is-active .slide__actions { animation: riseIn .9s var(--ease) forwards; }
.slide.is-active .slide__tag { animation-delay: .3s; }
.slide.is-active .slide__title { animation-delay: .5s; }
.slide.is-active .slide__actions { animation-delay: .75s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

.hero__controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: clamp(1.5rem, 4vw, 2.75rem); }
.hero__controls .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero--stats .hero__controls { bottom: clamp(5.5rem, 8vw, 6.5rem); }
.hero__dots { display: flex; gap: .6rem; }
.hero__dot { position: relative; width: 46px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); overflow: hidden; }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: var(--orange-500); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: progress var(--slide-time, 6s) linear forwards; }
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: .6rem; }
.hero__arrow { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; border: 1px solid rgba(255,255,255,.35); transition: .3s var(--ease); }
.hero__arrow:hover { background: var(--orange-500); border-color: var(--orange-500); transform: scale(1.06); }
.hero__count { font-weight: 700; font-size: .9rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.hero__count b { color: #fff; font-size: 1.15rem; }
.hero__scroll { position: absolute; z-index: 5; left: 50%; bottom: 1.2rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px; display: none; }
.hero__scroll::before { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange-500); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } }
@media (min-width: 992px) { .hero__scroll { display: block; } }
@media (max-width: 600px) { .hero__arrows { display: none; } .slide::after { background: linear-gradient(0deg, rgba(6,12,31,.95) 10%, rgba(6,12,31,.55) 100%); } .slide__content { align-items: flex-end; } .slide__inner { padding-bottom: 6rem; } .hero--stats .slide__inner { padding-bottom: 10rem; } }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding-block: clamp(4.5rem, 10vw, 7.5rem) clamp(3.5rem, 7vw, 5.5rem);
  background: radial-gradient(1000px 400px at 85% -10%, rgba(247,128,31,.35), transparent 60%), linear-gradient(135deg, var(--navy-950), var(--navy-700));
}
.page-hero::before { /* grid pattern */
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero__ring { position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; margin-top: -210px; border-radius: 50%; border: 2px dashed rgba(247,128,31,.35); animation: spin 40s linear infinite; }
.page-hero__ring::after { content: ""; position: absolute; inset: 60px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
@keyframes spin { to { transform: rotate(360deg); } }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 1rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.7); }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--orange-400); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--orange-500); }
.breadcrumb [aria-current] { color: #fff; }

/* ==========================================================================
   Components
   ========================================================================== */
/* Image frame with orange offset */
.frame { position: relative; isolation: isolate; }
.frame::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--orange-500), var(--orange-400)); z-index: -1; transition: transform .6s var(--ease); }
.frame:hover::before { transform: translate(-.6rem, -.6rem); }
.frame img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); object-fit: cover; }
.frame__badge { position: absolute; left: -1rem; bottom: 2rem; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.3rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite; }
.frame__badge-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy-800); color: var(--orange-400); display: grid; place-items: center; }
.frame__badge strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.2; }
.frame__badge span { font-size: .82rem; color: var(--muted); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 600px) { .frame::before { inset: 1rem -.75rem -.75rem 1rem; } .frame__badge { left: .75rem; bottom: 1rem; } }

/* Check list */
.checklist { display: grid; gap: .8rem; margin: 1.25rem 0 1.75rem; }
.checklist li { display: flex; align-items: flex-start; gap: .8rem; font-weight: 600; color: var(--ink); }
.checklist .tick { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-100); color: var(--orange-600); }
.checklist .tick .i { width: 15px; height: 15px; stroke-width: 3; }
.checklist small { display: block; font-weight: 400; color: var(--body); font-size: .95rem; margin-top: .25rem; line-height: 1.65; }

/* Products (about) */
.product { padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; height: 100%; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem; background: linear-gradient(135deg, var(--orange-500), var(--orange-400)); color: #fff; box-shadow: 0 10px 20px -8px rgba(247,128,31,.7); }
.product__icon .i { width: 26px; height: 26px; }
.product h3 { font-size: 1.15rem; }
.product p { margin: 0; font-size: .95rem; }

/* Download callout */
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--bg-soft); border: 1px dashed #cfd5e3; margin-top: 1.5rem; }
.callout p { margin: 0; flex: 1 1 260px; font-size: .95rem; }
.callout__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); color: var(--orange-400); flex-shrink: 0; }

/* Vision / Mission band */
.band { position: relative; overflow: hidden; background: var(--navy-900); color: rgba(255,255,255,.78); }
.band::before { content: ""; position: absolute; width: 640px; height: 640px; left: -200px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(247,128,31,.28), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.band::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(36,57,122,.9), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(80px, 60px); } }
.band .container { position: relative; z-index: 1; }
.band h2, .band h3 { color: #fff; }
.vm-card { position: relative; height: 100%; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); transition: transform .5s var(--ease), background-color .4s, border-color .4s; overflow: hidden; }
.vm-card::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--orange-500), transparent); transform: scaleX(.25); transform-origin: left; transition: transform .6s var(--ease); }
.vm-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); border-color: rgba(247,128,31,.4); }
.vm-card:hover::before { transform: scaleX(1); }
.vm-card__icon { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.4rem; background: var(--orange-500); color: #fff; box-shadow: 0 14px 30px -10px rgba(247,128,31,.8); }
.vm-card__icon .i { width: 30px; height: 30px; }
.vm-card h3 { font-size: 1.6rem; }
.vm-card p { margin: 0; font-size: 1.04rem; line-height: 1.8; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; margin-top: -4rem; position: relative; z-index: 6; }
.stat { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-bottom: 3px solid var(--orange-500); }
.stat__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-100); color: var(--orange-600); flex-shrink: 0; }
.stat__icon .i { width: 26px; height: 26px; }
.stat__num { display: block; font-size: 2rem; font-weight: 800; color: var(--navy-900); line-height: 1; }
.stat__label { font-size: .9rem; font-weight: 600; color: var(--muted); }

/* Horizontal scroller (companies / news) */
.scroller { position: relative; }
.scroller__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .25rem 2rem; margin-inline: -.25rem;
  scrollbar-width: none;
}
.scroller__track::-webkit-scrollbar { display: none; }
.scroller__track > * { scroll-snap-align: start; }
@media (max-width: 991.98px) { .scroller__track { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (max-width: 600px) { .scroller__track { grid-auto-columns: 86%; } }
.scroller__nav { display: flex; gap: .6rem; }
.scroller__btn { width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); color: var(--navy-800); transition: .3s var(--ease); }
.scroller__btn:hover { background: var(--orange-500); border-color: var(--orange-500); color: #fff; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head-row .section-head { margin-bottom: 0; }

/* Company card */
.company { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.company:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.company__media { position: relative; aspect-ratio: 4/3; background: #fff; overflow: hidden; display: grid; place-items: center; }
.company__media img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; transition: transform .8s var(--ease); }
.company__media--cover img { object-fit: cover; padding: 0; }
.company:hover .company__media img { transform: scale(1.08); }
.company__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 1.5rem 1.6rem 1.7rem; border-top: 1px solid var(--line); }
.company__body::before { content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 0; background: var(--orange-500); transition: width .6s var(--ease); }
.company:hover .company__body::before { width: 100%; }
.company h3 { font-size: 1.15rem; margin-bottom: .55rem; transition: color .3s; }
.company:hover h3 { color: var(--orange-600); }
.company p { font-size: .93rem; margin-bottom: 1.2rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Founder message */
.message { position: relative; }
.message__quote { position: absolute; top: -1.5rem; left: -1rem; width: 90px; height: 90px; color: var(--orange-100); z-index: -1; }
.message__quote .i { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.signature { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.signature__line { width: 46px; height: 3px; background: var(--orange-500); border-radius: 3px; }
.signature strong { display: block; color: var(--ink); font-size: 1.15rem; }
.signature span { font-size: .9rem; color: var(--muted); }
.portrait { position: relative; max-width: 420px; margin-inline: auto; }
.portrait__bg { position: absolute; inset: 12% 0 0; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); background: linear-gradient(160deg, var(--navy-700), var(--navy-950)); }
.portrait__bg::after { content: ""; position: absolute; inset: -14px; border-radius: inherit; border: 2px dashed rgba(247,128,31,.55); animation: spin 60s linear infinite; }
.portrait img { position: relative; width: 82%; margin-inline: auto; border-radius: 999px 999px 0 0; mix-blend-mode: normal; }
.portrait__tag { position: absolute; right: 0; bottom: 10%; padding: .8rem 1.2rem; border-radius: var(--radius); background: var(--orange-500); color: #fff; font-weight: 700; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.portrait__tag small { display: block; font-weight: 500; opacity: .85; font-size: .78rem; }

/* Team */
.team-card { text-align: center; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; height: 100%; }
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-card__media { position: relative; aspect-ratio: 1/1.05; overflow: hidden; background: linear-gradient(180deg, #eef1f7, #fff); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.team-card:hover .team-card__media img { transform: scale(1.06); }
.team-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, rgba(10,21,48,.55), transparent); opacity: 0; transition: opacity .4s; }
.team-card:hover .team-card__media::after { opacity: 1; }
.team-card__body { padding: 1.3rem 1.25rem 1.5rem; }
.team-card h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.team-card p { margin: 0; font-size: .88rem; color: var(--body); line-height: 1.55; }
.team-card .contact-line { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .55rem; font-size: .82rem; color: var(--orange-600); word-break: break-all; }
.team-card .contact-line .i { width: 14px; height: 14px; }

/* Service cards (dynamic) */
.service-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card__media { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.08); }
.service-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,21,48,.5), transparent 60%); }
.service-card__num { position: absolute; z-index: 1; left: 1.25rem; bottom: -26px; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-500); color: #fff; box-shadow: 0 12px 24px -8px rgba(247,128,31,.8); transition: transform .5s var(--ease), background-color .3s; }
.service-card:hover .service-card__num { transform: rotate(-8deg) scale(1.08); background: var(--navy-800); }
.service-card__wrap { position: relative; }
.service-card__body { flex: 1; display: flex; flex-direction: column; padding: 2.4rem 1.5rem 1.6rem; }
.service-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.service-card p { font-size: .94rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* News cards (dynamic) */
.news-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-card__media { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.08); }
.news-card__date { position: absolute; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--navy-800); font-size: .8rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.news-card__date .i { width: 14px; height: 14px; color: var(--orange-600); }
.news-card__body { flex: 1; display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.6rem; }
.news-card h3 { font-size: 1.12rem; margin-bottom: .55rem; transition: color .3s; }
.news-card:hover h3 { color: var(--orange-600); }
.news-card p { font-size: .93rem; flex: 1; }

/* Detail (service/news) */
.detail { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 992px) { .detail { grid-template-columns: 1.25fr 1fr; } .detail__media { position: sticky; top: 110px; } }
.detail h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.detail__text { font-size: 1.05rem; line-height: 1.85; white-space: pre-line; }
.detail__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.detail__back { margin-top: 2rem; }

/* Skeleton loading for dynamic containers */
.is-loading { min-height: 200px; }
.skeleton { border-radius: var(--radius-lg); background: linear-gradient(90deg, #eef1f6 25%, #f7f8fb 50%, #eef1f6 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; min-height: 320px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Core values */
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.value { position: relative; padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; overflow: hidden; }
.value::after { content: attr(data-n); position: absolute; right: 1rem; top: .5rem; font-size: 3.2rem; font-weight: 800; color: var(--bg-soft); line-height: 1; transition: color .4s; }
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.value:hover::after { color: var(--orange-100); }
.value__icon { position: relative; z-index: 1; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--navy-800); color: var(--orange-400); transition: background-color .4s, color .4s, transform .4s var(--ease); }
.value:hover .value__icon { background: var(--orange-500); color: #fff; transform: rotate(-8deg); }
.value h3 { position: relative; z-index: 1; font-size: 1.08rem; margin-bottom: .45rem; }
.value p { position: relative; z-index: 1; margin: 0; font-size: .93rem; }

/* Feed products (feed mill) */
.feed-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); text-align: center; padding: 2rem 1.5rem; transition: transform .5s var(--ease), box-shadow .5s; height: 100%; }
.feed-card::before { content: ""; position: absolute; left: 50%; top: -60%; width: 140%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--bg-soft); transition: background-color .5s, top .6s var(--ease); z-index: 0; }
.feed-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feed-card:hover::before { background: var(--orange-100); top: -50%; }
.feed-card > * { position: relative; z-index: 1; }
.feed-card img { width: 170px; height: 170px; object-fit: contain; margin: 0 auto 1.25rem; transition: transform .6s var(--ease); }
.feed-card:hover img { transform: scale(1.08) rotate(-3deg); }
.feed-card h3 { font-size: 1.2rem; }
.feed-card p { margin: 0; font-size: .95rem; }

/* Contact */
.info-card { position: relative; padding: 2rem 1.75rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; height: 100%; overflow: hidden; }
.info-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--orange-100); transition: transform .6s var(--ease); }
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.info-card:hover::after { transform: scale(2.2); }
.info-card > * { position: relative; z-index: 1; }
.info-card__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.25rem; background: var(--navy-800); color: var(--orange-400); }
.info-card__icon .i { width: 28px; height: 28px; }
.info-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.info-card p { margin: 0 0 .3rem; word-break: break-word; }
.info-card .link-arrow { margin-top: 1rem; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map iframe { width: 100%; height: clamp(320px, 45vw, 460px); border: 0; filter: saturate(.9); }
.form-card { padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 1.55rem 1rem .6rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft);
  font: inherit; color: var(--ink); transition: border-color .25s, background-color .25s, box-shadow .25s; resize: vertical;
}
.field textarea { min-height: 160px; }
.field label { position: absolute; left: 1rem; top: 1.05rem; color: var(--muted); font-size: .98rem; pointer-events: none; transition: .2s var(--ease); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--orange-500); background: #fff; box-shadow: 0 0 0 4px rgba(247,128,31,.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--orange-600); }
.form-note { display: block; min-height: 1.4em; font-weight: 600; font-size: .92rem; }
.form-note:empty { display: none; }
.form-note:not(:empty) { padding: .75rem 1rem; border-radius: 10px; background: var(--orange-100); }
.mini-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-top: 1.75rem; }
.mini-contact a { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: var(--radius); background: var(--bg-soft); transition: background-color .3s, transform .3s var(--ease); }
.mini-contact a:hover { background: var(--orange-100); transform: translateX(4px); }
.mini-contact .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-500); color: #fff; flex-shrink: 0; }
.mini-contact strong { display: block; color: var(--ink); font-size: .95rem; }
.mini-contact span { font-size: .88rem; word-break: break-all; }

/* Gallery */
.masonry { columns: 3 300px; column-gap: 1.25rem; }
.masonry > a { position: relative; display: block; break-inside: avoid; margin-bottom: 1.25rem; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.masonry img { width: 100%; transition: transform .8s var(--ease); }
.masonry > a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,21,48,.65), transparent 55%); opacity: 0; transition: opacity .4s; }
.masonry > a:hover img { transform: scale(1.07); }
.masonry > a:hover::after { opacity: 1; }
.masonry .zoom { position: absolute; z-index: 1; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-500); color: #fff; transform: scale(.4); opacity: 0; transition: .4s var(--ease); }
.masonry > a:hover .zoom { transform: scale(1); opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 4rem 1rem; background: rgba(6,12,31,.94); opacity: 0; visibility: hidden; transition: .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 84vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: scale(.94); transition: transform .45s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); transition: background-color .25s; }
.lightbox button:hover { background: var(--orange-500); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; margin-top: -26px; }
.lightbox .lb-next { right: 1rem; top: 50%; margin-top: -26px; }
.lightbox .lb-count { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-weight: 600; font-size: .9rem; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 1.5rem; }
.video-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s; }
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.video-card iframe, .video-card video { width: 100% !important; height: auto !important; aspect-ratio: 16/9; border: 0; }

/* Empty state */
.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(120deg, var(--orange-600), var(--orange-500) 55%, var(--orange-400)); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; box-shadow: 0 30px 60px -25px rgba(226,101,11,.7); }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.cta::before { width: 300px; height: 300px; right: -80px; top: -150px; animation: float 7s ease-in-out infinite; }
.cta::after { width: 180px; height: 180px; right: 160px; bottom: -110px; animation: float 9s ease-in-out infinite reverse; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .4rem; }
.cta p { margin: 0; color: rgba(255,255,255,.9); }
.cta .btn { --bg: var(--navy-900); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; background: var(--navy-950); color: rgba(255,255,255,.7); padding-top: clamp(4rem, 8vw, 6rem); overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--orange-500), var(--navy-600), var(--orange-500)); background-size: 200% 100%; animation: slideGrad 6s linear infinite; }
@keyframes slideGrad { to { background-position: -200% 0; } }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3rem); padding-bottom: 3.5rem; }
@media (max-width: 991.98px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.3rem; position: relative; padding-bottom: .8rem; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--orange-500); }
.footer .brand__name { color: #fff; }
.footer p { font-size: .95rem; }
.footer__links li + li { margin-top: .65rem; }
.footer__links a { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; transition: color .25s, transform .25s; }
.footer__links a::before { content: ""; width: 0; height: 2px; background: var(--orange-500); transition: width .3s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__links a:hover::before { width: 12px; }
.footer__contact li { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; }
.footer__contact li + li { margin-top: .9rem; }
.footer__contact .i { color: var(--orange-500); margin-top: .25rem; width: 18px; height: 18px; }
.footer__contact a:hover { color: #fff; }
.socials { display: flex; gap: .55rem; margin-top: 1.4rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; transition: background-color .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--orange-500); transform: translateY(-4px); }
.socials .i { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.4rem; font-size: .88rem; }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.footer__bottom a { color: var(--orange-400); font-weight: 600; }
.footer__bottom a:hover { color: #fff; }

/* Back to top with scroll progress ring */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: .4s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange-500); }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--orange-500); stroke-width: 3; stroke-dasharray: 157; stroke-dashoffset: 157; transition: stroke-dashoffset .1s linear; }
.to-top:hover .ring circle { stroke: #fff; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

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

/* Fixed-ratio media frames: images fill the frame regardless of their natural size */
.service-card__media img, .news-card__media img, .company__media img, .team-card__media img { position: absolute; inset: 0; }
.mini-contact span { overflow-wrap: anywhere; word-break: normal; }
@media (max-width: 600px) { .text-justify { text-align: left; } }
