/* =========================================================
   YUNATel LLC — front end styles
   Mobile-first. Palette: navy + white (+ royal blue accent).
   Animations: transform / opacity only; all continuous motion
   stops under prefers-reduced-motion.
   ========================================================= */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/Poppins-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/Poppins-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/Poppins-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/Inter-latin-400_700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #0F126F;
  --navy-2: #181C8A;
  --navy-3: #22279F;
  --royal: #1E4FA3;
  --royal-hover: #173F86;
  --royal-bright: #2D63C4;
  --sky: #8FB4F0;        /* accent text on navy (7.8:1) */
  --sky-soft: #C9D9F2;
  --tint: #F4F7FB;
  --tint-2: #E8EEF7;
  --white: #FFFFFF;
  --ink: #0F126F;
  --text: #44546B;       /* body on white: 7.6:1 */
  --text-on-dark: #C9D6EA;
  --line: #DCE4EF;
  --field: #7D8FA9;      /* input borders: >=3:1 */
  --error: #B42318;
  --success: #116149;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 40px -18px rgba(15, 18, 111, .28);
  --shadow-lg: 0 30px 60px -24px rgba(15, 18, 111, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --gutter: 20px;
  --section-y: 88px;
  --header-h: 72px;
  --focus: var(--royal);
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 32px; --section-y: 112px; --header-h: 84px; } }
@media (min-width: 1100px) { :root { --section-y: 128px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
/* Smooth scrolling only with JS (so the no-JS #contact-sent / #contact-error jump is instant) and only without reduced motion */
@media (prefers-reduced-motion: no-preference) { html.js { scroll-behavior: smooth; } }
::selection { background: var(--royal); color: var(--white); }
html { accent-color: var(--royal); }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); overflow-x: hidden; }
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
a { color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); transition: transform .2s; }
.skip-link:focus { transform: translateY(72px); }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--royal); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--sky); }
.h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.9rem); font-weight: 700; margin-bottom: 18px; }
.lead { font-size: 1.0625rem; max-width: 60ch; }
.ph-tag { display: inline-block; vertical-align: middle; font-family: var(--font-body); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: 5px 8px; border-radius: 999px; color: var(--royal-hover); background: var(--tint-2); border: 1px dashed #6E8BB8; }
.ph-tag--dark { color: var(--white); background: rgba(143, 180, 240, .14); border-color: var(--sky); }

/* ---------- Buttons (pill + trailing arrow) ---------- */
.btn { --bg: var(--royal); --fg: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid var(--bg); background: var(--bg); color: var(--fg); font-family: var(--font-head); font-weight: 600; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.btn svg { transition: transform .3s var(--ease); flex: none; }
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 54px; padding: 14px 30px; }
.btn--ghost { --bg: transparent; border-color: rgba(255,255,255,.7); }
.btn--ghost::before { background: var(--white); }
.btn--outline { --bg: transparent; --fg: var(--royal); border-color: var(--royal); }
.btn--outline::before { background: var(--royal); }
.section--dark .btn--primary::before, .site-header .btn--primary::before, .site-footer .btn--primary::before, .hero .btn--primary::before, .contact__info .btn::before { background: var(--royal-bright); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--white); --focus: var(--sky); }
.site-header::before { content: ""; position: absolute; inset: 0; background: var(--navy); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); opacity: 0; transition: opacity .35s; }
.site-header.is-scrolled::before, .site-header.is-open::before { opacity: 1; }
.site-header__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; }
.brand__sub { font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-on-dark); margin-top: 3px; }
.nav__toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(15,18,111,.35); color: var(--white); cursor: pointer; }
.nav__toggle-close { display: none; }
.site-header.is-open .nav__toggle-open { display: none; }
.site-header.is-open .nav__toggle-close { display: block; }
.nav__list { display: flex; flex-direction: column; gap: 4px; }
.nav__link { display: block; padding: 12px 4px; color: var(--white); text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__cta { margin-top: 16px; }
/* no-JS mobile: nav simply sits under the header bar */
html:not(.js) .nav__toggle { display: none; }
html:not(.js) .site-header { position: absolute; height: auto; }
html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 14px; }
html:not(.js) .nav__list { flex-direction: row; flex-wrap: wrap; gap: 0 14px; }
html:not(.js) .nav__link { padding: 6px 0; font-size: .9rem; }
html:not(.js) .nav__cta { display: none; }
/* JS mobile drawer */
@media (max-width: 1023.98px) {
  .js .nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--navy); padding: 12px var(--gutter) 28px; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 40px -20px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .js .site-header.is-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .js .nav__list li + li { border-top: 1px solid rgba(255,255,255,.08); }
}
@media (min-width: 1024px) {
  .nav__toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 36px; flex: 1; justify-content: space-between; margin-left: 48px; }
  .nav__list { flex-direction: row; gap: 30px; margin-inline: auto; }
  .nav__link { font-size: .95rem; padding: 10px 0; }
  .nav__link::after { left: 0; right: 0; bottom: 4px; }
  .nav__cta { margin-top: 0; }
  html:not(.js) .nav__cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--white); padding: calc(var(--header-h) + 56px) 0 140px; --focus: var(--sky); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img { width: 100%; height: 115%; object-fit: cover; object-position: 60% 50%; will-change: transform; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,111,.86) 0%, rgba(15,18,111,.6) 45%, rgba(15,18,111,.9) 100%); }
.hero__content { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { letter-spacing: .16em; }
.hero__eyebrow::before { display: none; }
.hero__title { color: var(--white); text-transform: uppercase; font-weight: 700; font-size: clamp(2.2rem, .9rem + 4.4vw, 4.5rem); line-height: 1.06; letter-spacing: -.005em; max-width: 24ch; margin-bottom: 22px; }
.hero__title span { display: block; }
.hero__lead { color: var(--text-on-dark); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 56ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.js [data-hero-in] { opacity: 0; animation: heroIn .6s var(--ease) forwards; }
.js [data-hero-in]:nth-child(2) { animation-delay: .12s; }
.js [data-hero-in]:nth-child(3) { animation-delay: .24s; }
.js [data-hero-in]:nth-child(4) { animation-delay: .36s; }
@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }

/* Rotating circular badge straddling the hero / stats seam */
.hero-badge { position: absolute; left: 50%; bottom: 0; z-index: 3; width: 132px; height: 132px; margin-left: -66px; margin-bottom: -66px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--white), var(--shadow-lg); text-decoration: none; }
.hero-badge__ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 18s linear infinite; }
.hero-badge__ring text { fill: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 2px; }
.hero-badge__core { width: 56px; height: 56px; border-radius: 50%; background: var(--royal); display: grid; place-items: center; transition: transform .35s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) { .hero-badge { width: 160px; height: 160px; margin-left: -80px; margin-bottom: -80px; } .hero-badge__core { width: 66px; height: 66px; } }

/* ---------- Stats ---------- */
.stats { padding: 110px 0 56px; background: var(--white); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
.stat { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__suffix { color: var(--royal); }
.stat--placeholder .stat__num { color: #5A6D8A; }
.stat__label { font-size: .9375rem; color: var(--text); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; }
@media (min-width: 768px) {
  .stats { padding-top: 130px; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { border-left: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: var(--text-on-dark); --focus: var(--sky); }
.section--dark .h2, .section--dark h3 { color: var(--white); }
.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.section-head--split .h2 { margin-bottom: 0; }

/* Floating wireframe shapes (lattice cube / antenna) */
.float-shape { position: absolute; color: var(--royal); opacity: .22; pointer-events: none; animation: bob 6s ease-in-out infinite alternate; }
.float-shape--about { right: 4%; top: 48px; }
.float-shape--services { right: 6%; top: 36px; animation-duration: 7s; }
.float-shape--insights { left: 3%; bottom: 40px; animation-duration: 8s; }
@keyframes bob { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(0, -18px, 0) rotate(6deg); } }
@media (max-width: 767.98px) { .float-shape { transform: scale(.6); width: 70px; height: 70px; } .float-shape--about { top: 16px; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Stagger delays (replace inline style="--d:N" so no inline styles are needed under CSP) */
.d-1 { --d: 1; }
.d-2 { --d: 2; }
.d-3 { --d: 3; }
.d-4 { --d: 4; }
.d-5 { --d: 5; }
.d-6 { --d: 6; }
.d-7 { --d: 7; }
.d-8 { --d: 8; }
.d-9 { --d: 9; }
.d-10 { --d: 10; }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 56px; align-items: center; }
.about__collage { position: relative; padding: 0 0 56px 48px; max-width: 560px; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { aspect-ratio: 4 / 5; border-radius: var(--radius) 140px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__img--small { position: absolute; right: -8px; bottom: 0; width: 52%; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; border: 8px solid var(--white); box-shadow: var(--shadow-lg); }
.about__since { position: absolute; left: 0; top: 0; bottom: 56px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); letter-spacing: .14em; text-transform: uppercase; color: var(--royal); }
.about__chip { position: absolute; left: 64px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .875rem; box-shadow: var(--shadow); }
.checklist { display: grid; gap: 14px; margin: 26px 0 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--royal); color: var(--white); margin-top: 1px; }
.ceo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding-top: 26px; border-top: 1px solid var(--line); }
.ceo__avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-2); color: var(--royal); font-family: var(--font-head); font-weight: 700; border: 2px dashed #6E8BB8; }
.ceo__name { font-family: var(--font-head); font-weight: 600; color: var(--ink); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ceo__role { font-size: .875rem; }
.ceo__sign { margin-left: auto; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.6rem; color: var(--navy-3); }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ---------- Carousel (shared) ---------- */
.carousel__track { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -24px calc(var(--gutter) * -1) 0; padding: 24px var(--gutter) 36px; scroll-padding-inline: var(--gutter); cursor: grab; touch-action: pan-x pan-y; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.carousel__track.is-dragging a { pointer-events: none; }
.carousel__list { display: flex; gap: 20px; width: max-content; }
.carousel__list > li { scroll-snap-align: start; flex: none; }
.carousel__list img { -webkit-user-drag: none; user-select: none; }
.carousel__controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.carousel__progress { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.carousel__bar { display: block; height: 100%; width: 100%; background: var(--royal); transform-origin: left; transform: scaleX(.2); transition: transform .3s; }
.carousel__btn { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 2px solid var(--royal); background: var(--white); color: var(--royal); display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--ease), opacity .25s; }
.carousel__btn--prev svg { transform: rotate(180deg); }
.carousel__btn[disabled] { opacity: .45; cursor: default; transform: none; }
.carousel__controls--light .carousel__progress { background: rgba(255,255,255,.18); }
.carousel__controls--light .carousel__bar { background: var(--sky); }
.carousel__controls--light .carousel__btn { background: transparent; border-color: var(--sky); color: var(--white); }
html:not(.js) .carousel__btn { display: none; }

/* ---------- Services ---------- */
.svc-card { width: min(84vw, 330px); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.svc-card__body { padding: 28px 28px 22px; flex: 1; }
.svc-card__num { display: block; font-family: var(--font-head); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; color: var(--royal); margin-bottom: 10px; }
.svc-card__title { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.svc-card p { font-size: .9375rem; }
.svc-card__arrow { position: relative; z-index: 2; align-self: flex-end; margin: -2px 28px -26px 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--royal); color: var(--white); box-shadow: 0 0 0 6px var(--white); transition: transform .3s var(--ease); }
.svc-card__media { margin: 0 14px 14px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (min-width: 768px) { .svc-card { width: 360px; } .carousel__list { gap: 24px; } }
@media (min-width: 1280px) { .svc-card { width: calc((min(100vw, var(--container) + var(--gutter) * 2) - var(--gutter) * 2 - 48px) / 3); } }
/* "Browse all" grid mode */
.services.is-grid .carousel__track { overflow: visible; cursor: auto; scroll-snap-type: none; }
.services.is-grid .carousel__list { width: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.services.is-grid .svc-card { width: auto; }
.services.is-grid .carousel__controls { display: none; }

/* ---------- Why choose us ---------- */
.why__grid { display: grid; gap: 56px; align-items: center; }
.why__media { position: relative; border-radius: 140px var(--radius-lg) var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); max-width: 520px; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__badge { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 14px; background: var(--white); color: var(--text); padding: 16px 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.why__badge svg { color: var(--royal); flex: none; }
.why__badge strong { color: var(--ink); font-family: var(--font-head); }
.why__list { display: grid; gap: 34px 40px; margin-top: 36px; }
.why-item { position: relative; padding-top: 44px; }
.why-item__num::before { content: attr(data-num); }
.why-item__num { position: absolute; top: -18px; left: -4px; font-family: var(--font-head); font-weight: 700; font-size: 5.5rem; line-height: 1; color: #DCE5F2; z-index: 0; pointer-events: none; }
.why-item__title { position: relative; font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.why-item p { position: relative; font-size: .9375rem; }
@media (min-width: 640px) { .why__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .why__grid { grid-template-columns: .9fr 1.1fr; gap: 80px; } }

/* ---------- Projects (dark band) ---------- */
.projects .lead { color: var(--text-on-dark); }
.projects .lead strong { color: var(--white); }
.proj-card { width: min(78vw, 300px); background: var(--white); border-radius: 180px 180px var(--radius-lg) var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease); }
.proj-card__media { aspect-ratio: 4 / 4.4; overflow: hidden; }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj-card__box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 22px; }
.proj-card__cat { font-size: .8125rem; color: var(--text); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.proj-card__cat .ph-tag { color: var(--royal-hover); background: var(--tint-2); border-color: #6E8BB8; }
.section--dark .proj-card__title { color: var(--ink); font-size: 1.1rem; font-weight: 600; }
.proj-card__arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; transition: transform .3s var(--ease); }
@media (min-width: 768px) { .proj-card { width: 320px; } }
@media (min-width: 1280px) { .proj-card { width: calc((min(100vw, var(--container) + var(--gutter) * 2) - var(--gutter) * 2 - 72px) / 4); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; background: var(--royal); color: var(--white); padding: 26px 0; overflow: hidden; --focus: var(--white); }
.marquee__viewport { display: flex; width: max-content; }
.marquee__viewport:focus-visible { outline-offset: -6px; }
.marquee__track { display: flex; flex: none; animation: marquee 38s linear infinite; }
.marquee__track li { display: flex; align-items: center; white-space: nowrap; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 2vw, 2.5rem); letter-spacing: .02em; }
.marquee__track li::after { content: ""; width: .8em; height: .8em; margin: 0 .7em; flex: none; background: var(--sky-soft); -webkit-mask: url("../assets/img/asterisk.svg") center / contain no-repeat; mask: url("../assets/img/asterisk.svg") center / contain no-repeat; }
.marquee__toggle { position: absolute; right: 12px; top: 50%; margin-top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: var(--navy); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.marquee.is-paused .marquee__toggle svg { display: none; }
.marquee.is-paused .marquee__toggle::before { content: ""; width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
html:not(.js) .marquee__toggle { display: none; }
@keyframes marquee { to { transform: translate3d(-100%, 0, 0); } }

/* ---------- Request a Quote band ---------- */
.quote-band { background: var(--white); }
.quote-card { position: relative; display: grid; gap: 40px; background: var(--tint); border-radius: var(--radius-lg); padding: 40px 24px; border: 1px solid var(--line); }
.quote-card .lead { margin-bottom: 26px; }
.quote-steps { display: grid; gap: 14px; margin-bottom: 32px; counter-reset: s; }
.quote-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.quote-steps strong { color: var(--ink); }
.quote-steps__n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .875rem; }
.quote-card__art { position: relative; min-height: 280px; }
.quote-card__img { position: absolute; width: 74%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 6px solid var(--white); transition: transform .6s var(--ease); }
.quote-card__img--back { left: 2%; top: 0; transform: rotate(-7deg); }
.quote-card__img--front { right: 0; bottom: 0; transform: rotate(5deg); }
@media (min-width: 900px) {
  .quote-card { grid-template-columns: 1.15fr 1fr; padding: 72px 64px; align-items: center; }
  .quote-card__art { min-height: 400px; margin-right: -24px; }
  .quote-card__img--front { right: 0; bottom: -10px; }
}
@media (min-width: 1400px) { .quote-card__art { margin-right: -110px; } }

/* ---------- Promo (parallax + pulsing play) ---------- */
.promo { position: relative; overflow: hidden; color: var(--white); text-align: center; padding-block: calc(var(--section-y) + 20px); --focus: var(--sky); }
.promo__media { position: absolute; inset: 0; }
.promo__img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.promo__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,111,.78), rgba(15,18,111,.88)); }
.promo__content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.promo__title { color: var(--white); max-width: 22ch; margin: 0; }
.promo__note { color: var(--text-on-dark); display: flex; gap: 10px; align-items: center; font-size: .9375rem; }
.play-btn { position: relative; width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--royal); color: var(--white); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease); }
.play-btn svg { margin-left: 4px; }
.play-btn::before, .play-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--sky); animation: pulse 2.4s ease-out infinite; }
.play-btn::after { animation-delay: 1.2s; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.video-dialog { border: 0; padding: 0; border-radius: var(--radius-lg); max-width: min(92vw, 560px); box-shadow: var(--shadow-lg); }
.video-dialog::backdrop { background: rgba(15,18,111,.75); }
.video-dialog__frame { padding: 36px 30px; display: grid; gap: 16px; text-align: left; color: var(--text); }
.video-dialog__title { font-size: 1.4rem; }

/* ---------- Team ---------- */
.team__grid { display: grid; gap: 28px; }
.member { position: relative; }
.member__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 3.6; background: var(--tint-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease); }
.member__box { position: relative; margin: -64px 18px 0; background: var(--navy); color: var(--text-on-dark); border-radius: var(--radius); padding: 18px 70px 18px 22px; box-shadow: var(--shadow); }
.member__name { color: var(--white); font-size: 1.1rem; font-weight: 600; }
.member__role { font-size: .875rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.member__icon { position: absolute; right: 16px; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; background: var(--royal); color: var(--white); display: grid; place-items: center; }
@media (min-width: 720px) { .team__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Testimonials ---------- */
.testimonials__grid { display: grid; gap: 40px; }
.testimonials__collage { position: relative; display: grid; }
.testimonials__img { border-radius: var(--radius-lg); overflow: hidden; }
.testimonials__img img { width: 100%; height: 100%; object-fit: cover; }
.testimonials__img--main { aspect-ratio: 16 / 10; }
.testimonials__img--side { display: none; }
.review-card { position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-lg); margin: -60px 14px 0; }
.review-card__mark { position: absolute; right: 22px; top: -30px; width: 64px; height: 64px; color: var(--royal); }
.review-card__stars { display: flex; gap: 4px; color: var(--royal); margin-bottom: 14px; }
.review-card__quote { margin: 0 0 20px; font-size: 1.0625rem; color: var(--ink); font-style: italic; }
.review-card__who { display: flex; gap: 14px; align-items: center; font-size: .875rem; }
.review-card__who strong { color: var(--ink); font-family: var(--font-head); }
.review-card__avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tint-2); color: var(--royal); font-weight: 700; border: 2px dashed #6E8BB8; }
@media (min-width: 900px) {
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonials__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .testimonials__collage { grid-template-columns: 1.3fr .7fr; grid-template-rows: auto; gap: 24px; min-height: 480px; }
  .testimonials__img--main { aspect-ratio: auto; height: 460px; border-radius: var(--radius-lg) 160px var(--radius-lg) var(--radius-lg); }
  .testimonials__img--side { display: block; height: 340px; align-self: end; }
  .review-card { position: absolute; left: 50%; top: 50%; width: 460px; margin: 0; transform: translate(-50%, -50%); padding: 40px 36px; }
  }

/* ---------- Partners ---------- */
.partners { padding: 64px 0; border-top: 1px solid var(--line); }
.partners__title { text-align: center; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); font-family: var(--font-body); font-weight: 600; margin-bottom: 28px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.partners__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.logo-ph { height: 72px; border: 2px dashed #A7B6CC; border-radius: var(--radius); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8125rem; color: #5A6D8A; background: var(--tint); transition: transform .3s var(--ease); }
@media (min-width: 640px) { .partners__row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .partners__row { grid-template-columns: repeat(6, 1fr); gap: 20px; } }

/* ---------- Insights ---------- */
.insights__grid { display: grid; gap: 28px; }
.post-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 24px 28px; }
.post-card__meta { font-size: .8125rem; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-card__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; }
.post-card__more { font-family: var(--font-head); font-weight: 600; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--royal); }
@media (min-width: 768px) { .insights__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contact ---------- */
.contact { background: var(--tint); }
.contact__grid { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.contact__info { background: var(--navy); color: var(--text-on-dark); padding: 40px 26px; position: relative; overflow: hidden; --focus: var(--sky); }
.contact__info::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(143,180,240,.08); }
.contact__info .h2 { color: var(--white); }
.contact__list { display: grid; gap: 20px; margin-top: 30px; position: relative; z-index: 1; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list strong { color: var(--white); }
.contact__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(143,180,240,.14); color: var(--sky); display: grid; place-items: center; }
.contact__panel { background: var(--white); padding: 36px 22px; }
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--ink); }
.req { color: var(--royal); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--field); border-radius: 12px; padding: 13px 14px; min-height: 50px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230B1F3A' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: #66768F; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(30,79,163,.22); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .8125rem; font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-note { font-size: .8125rem; }
.form-status, .form-alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-size: .9375rem; border: 1px solid; }
.form-status[hidden] { display: none; }
.form-status.is-success, .form-alert--success { background: #E7F5EF; border-color: #7BC2A3; color: var(--success); }
.form-status.is-error, .form-alert--error { background: #FDECEA; border-color: #E8A39C; color: var(--error); }
.form-status.is-pending { background: var(--tint); border-color: var(--line); color: var(--ink); }
.form-alert { display: none; }
.form-alert:target, .form-alert.is-visible { display: block; }
.contact-form__submit[disabled] { opacity: .7; cursor: progress; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
@media (min-width: 960px) { .contact__grid { grid-template-columns: .8fr 1.2fr; } .contact__info { padding: 56px 44px; } .contact__panel { padding: 56px 48px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--text-on-dark); padding: 72px 0 28px; --focus: var(--sky); }
.site-footer a { color: var(--text-on-dark); text-decoration: none; }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.newsletter__title { color: var(--white); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.newsletter__form { display: flex; background: var(--navy-2); border: 1px solid rgba(143,180,240,.35); border-radius: 999px; padding: 6px; }
.newsletter__form input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; color: var(--white); font: inherit; padding: 0 18px; }
.newsletter__form input::placeholder { color: #A9BCD9; }
.newsletter__form input:focus { outline: none; }
.newsletter__form:focus-within { outline: 3px solid var(--sky); outline-offset: 3px; }
.newsletter__form .btn { padding-inline: 18px; }
.newsletter__msg { font-size: .8125rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.newsletter__form[hidden] { display: none; }
.footer__grid { display: grid; gap: 36px; padding: 48px 0; }
.brand--footer { color: var(--white); margin-bottom: 18px; }
.footer__heading { color: var(--white); font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; }
.footer__list { display: grid; gap: 10px; font-size: .9375rem; }
.socials-wrap { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.socials__item { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--royal); color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal li, .footer__list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 768px) { .newsletter { grid-template-columns: 1fr 1.1fr; align-items: center; } .newsletter__msg { grid-column: 2; } .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--royal); color: var(--white); box-shadow: 0 0 0 4px rgba(255,255,255,.9), var(--shadow); transition: opacity .3s, transform .3s var(--ease); --focus: var(--navy); }
.to-top svg { transform: rotate(-90deg); }
.js .to-top { opacity: 0; transform: translateY(16px); pointer-events: none; }
.js .to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Hover effects: only on devices with a real hover-capable pointer ---------- */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--royal-hover); }
  .btn:hover { color: var(--fg); box-shadow: 0 12px 24px -12px rgba(30, 79, 163, .7); }
  .btn:hover::before { transform: scaleX(1); transform-origin: left; }
  .btn:hover svg { transform: translateX(4px); }
  .btn--ghost:hover { color: var(--navy); }
  .btn--outline:hover { color: var(--white); }
  .brand:hover { color: inherit; }
  .nav__link:hover, .nav__link[aria-current="true"] { color: var(--white); }
  .nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
  .hero-badge:hover { color: var(--white); }
  .hero-badge:hover .hero-badge__core { transform: scale(1.1); }
  .carousel__btn:hover { transform: scale(1.06); }
  .svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .svc-card__arrow:hover { color: var(--white); transform: rotate(45deg); }
  .proj-card:hover { transform: translateY(-6px); }
  .proj-card:hover .proj-card__arrow { transform: rotate(45deg); }
  .marquee__viewport:hover .marquee__track, .marquee__viewport:focus .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
  .quote-card:hover .quote-card__img--back { transform: rotate(-10deg) translateX(-8px); }
  .quote-card:hover .quote-card__img--front { transform: rotate(8deg) translateX(8px); }
  .play-btn:hover { transform: scale(1.08); }
  .logo-ph:hover { transform: translateY(-3px); }
  .post-card:hover { transform: translateY(-6px); }
  .site-footer a:hover { color: var(--white); text-decoration: underline; }
  .brand--footer:hover { color: var(--white); text-decoration: none !important; }
  .to-top:hover { color: var(--white); transform: translateY(-3px); }
}

/* ---------- Reduced motion: stop everything continuous ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero-badge__ring, .float-shape, .play-btn::before, .play-btn::after { animation: none !important; }
  .play-btn::before, .play-btn::after { opacity: .5; }
  .js [data-reveal], .js [data-hero-in] { opacity: 1 !important; transform: none !important; animation: none !important; }
  .marquee__track { animation: none !important; }
  .marquee__viewport { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: 60px; }
  .marquee__track { flex-wrap: wrap; justify-content: center; }
  .marquee__track--clone, .marquee__toggle { display: none !important; }
  .hero__img, .promo__img { transform: none !important; }
}

/* FILLER-HIDDEN: 2 real stats only, center them */
@media (min-width: 0px) { .stats__grid { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; } }
