/* ==========================================================================
   envio — pages.css
   Page-specific styles for About, Portfolio & Contact.
   Loaded after style.css so it inherits all design tokens & components.
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   A. Shared page hero (sub-pages)
   B. ABOUT — story, timeline, mission/vision, values, team, tech, certs, global
   C. PORTFOLIO — featured, filter gallery, case studies, metrics
   D. CONTACT — form (dark glass), info, map, FAQ
   E. Responsive overrides
   ========================================================================== */


/* ==========================================================================
   A. SHARED PAGE HERO  (About / Portfolio / Contact)
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  padding-top: clamp(56px, 8vw, 92px);
  padding-bottom: clamp(48px, 6vw, 72px);
  text-align: center;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11,18,32,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(110% 70% at 50% 0%, #000 30%, transparent 72%);
          mask-image: radial-gradient(110% 70% at 50% 0%, #000 30%, transparent 72%);
}
.page-hero__bg::after {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 820px; height: 520px;
  background: radial-gradient(45% 50% at 50% 50%, rgba(45,107,255,.16), transparent 70%),
              radial-gradient(40% 45% at 70% 40%, rgba(7,200,166,.12), transparent 70%);
}
.page-hero h1 { max-width: 880px; margin: 18px auto 18px; }
.page-hero .lead { max-width: 620px; margin-inline: auto; }
.page-hero__crumbs {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--muted-2); margin-bottom: 4px;
}
.page-hero__crumbs a:hover { color: var(--brand); }
.page-hero__crumbs i { font-size: .6rem; }


/* ==========================================================================
   B. ABOUT PAGE
   ========================================================================== */

/* ---- B1. Company story (split + stat strip) ---- */
.story__visual {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(160deg, #16224a, #0a1024);
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--sh-lg);
  aspect-ratio: 4/3; padding: 22px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
}
.story__visual .feed { aspect-ratio: auto; }
.story__pill {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px; z-index: 4;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.95); box-shadow: var(--sh-lg);
  font-size: .82rem; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.story__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 30px; }
.story__stats .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.story__stats span { font-size: .86rem; color: var(--muted); }
.story__lead-list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.story__lead-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.story__lead-list i { color: var(--accent-600); margin-top: 4px; }

/* ---- B2. Timeline (journey) ---- */
.timeline { position: relative; max-width: 880px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--brand), var(--accent));
  opacity: .35;
}
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-block: 22px; }
.tl-item__dot {
  position: absolute; left: 50%; top: 30px; transform: translate(-50%,-50%);
  width: 18px; height: 18px; border-radius: 50%; z-index: 2;
  background: var(--surface); border: 3px solid var(--brand);
  box-shadow: 0 0 0 5px rgba(45,107,255,.12);
}
.tl-card {
  padding: 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.tl-card .badge { margin-bottom: 12px; }
.tl-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.tl-card p { font-size: .92rem; }
.tl-item:nth-child(odd) .tl-card { grid-column: 1; }
.tl-item:nth-child(odd) > div:last-child { display: none; }
.tl-item:nth-child(even) .tl-card { grid-column: 2; }
.tl-item:nth-child(even) > div:first-child { display: none; }

/* ---- B3. Mission / Vision ---- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  position: relative; overflow: hidden;
  padding: 36px; border-radius: var(--r-xl);
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.mv-card--mission { background: linear-gradient(160deg, var(--brand-soft), #fff); }
.mv-card--vision  { background: linear-gradient(160deg, var(--accent-soft), #fff); }
.mv-card__ic {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  font-size: 1.4rem; color: #fff; margin-bottom: 20px;
}
.mv-card--mission .mv-card__ic { background: linear-gradient(150deg, var(--brand), var(--brand-700)); }
.mv-card--vision  .mv-card__ic { background: linear-gradient(150deg, var(--accent), var(--accent-600)); }
.mv-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.mv-card p { font-size: 1rem; line-height: 1.65; }

/* ---- B4. Core values ---- */
.value-card {
  padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: rgba(45,107,255,.2); }
.value-card__ic {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px;
  font-size: 1.15rem; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand);
}
.value-card h4 { font-size: 1.08rem; margin-bottom: 8px; }
.value-card p { font-size: .9rem; line-height: 1.55; }

/* ---- B5. Team ---- */
.team-card {
  text-align: center; padding: 24px;
  border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.team-card__avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 1.8rem; color: #fff; position: relative;
}
.team-card__avatar::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px dashed rgba(45,107,255,.3);
}
.team-card h4 { font-size: 1.1rem; margin-bottom: 2px; }
.team-card .role { color: var(--brand); font-size: .88rem; font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: .85rem; }
.team-card__social { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.team-card__social a {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--bg-subtle); color: var(--muted); transition: all .2s var(--ease);
}
.team-card__social a:hover { background: var(--brand); color: #fff; }

/* avatar gradient variants */
.av-1 { background: linear-gradient(150deg,#2D6BFF,#1742C4); }
.av-2 { background: linear-gradient(150deg,#07C8A6,#05A98C); }
.av-3 { background: linear-gradient(150deg,#7C5CFC,#5B3FD8); }
.av-4 { background: linear-gradient(150deg,#F79009,#DC6803); }
.av-5 { background: linear-gradient(150deg,#F04438,#B42318); }
.av-6 { background: linear-gradient(150deg,#0BA5EC,#0086C9); }

/* ---- B6. Technology stack ---- */
.tech-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.tech-chip {
  display: flex; align-items: center; gap: 13px; padding: 16px 18px;
  border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tech-chip:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.tech-chip i {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 11px; background: var(--bg-subtle); color: var(--brand); font-size: 1.05rem;
}
.tech-chip b { display: block; color: var(--ink); font-size: .95rem; }
.tech-chip span { font-size: .8rem; color: var(--muted-2); }

/* ---- B7. Security certifications ---- */
.cert-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cert-card {
  text-align: center; padding: 28px 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.cert-card__seal {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; font-size: 1.5rem; color: var(--brand);
  background: var(--brand-soft); border: 1px solid rgba(45,107,255,.18);
}
.cert-card h4 { font-size: 1rem; margin-bottom: 4px; }
.cert-card p { font-size: .82rem; }

/* ---- B8. Global presence ---- */
.globe {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(160deg, #0E1730, #0A0F1E);
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--sh-lg);
  padding: clamp(28px, 5vw, 56px); color: #fff;
}
.globe::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(40% 50% at 20% 20%, rgba(45,107,255,.3), transparent 60%),
             radial-gradient(40% 50% at 80% 80%, rgba(7,200,166,.2), transparent 60%);
}
.globe__inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.globe h2 { color: #fff; }
.globe p { color: rgba(255,255,255,.66); }
.globe__stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 26px; }
.globe__stats .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: #fff; letter-spacing: -.03em; }
.globe__stats span { color: rgba(255,255,255,.6); font-size: .85rem; }
/* dotted world map made of pins */
.world-map {
  position: relative; aspect-ratio: 16/10; border-radius: var(--r-lg);
  background:
    radial-gradient(circle at center, rgba(255,255,255,.06) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  border: 1px solid rgba(255,255,255,.08);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 60%, transparent);
          mask-image: radial-gradient(120% 100% at 50% 50%, #000 60%, transparent);
}
.map-pin {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(7,200,166,.5);
  animation: pulse-pin 2.4s infinite;
}
.map-pin::after {
  content: attr(data-city); position: absolute; left: 50%; top: -26px; transform: translateX(-50%);
  font-size: .68rem; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .25s var(--ease);
  background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px;
}
.map-pin:hover::after { opacity: 1; }
.map-pin.brand { background: var(--brand); box-shadow: 0 0 0 0 rgba(45,107,255,.5); }
@keyframes pulse-pin {
  0%   { box-shadow: 0 0 0 0 rgba(7,200,166,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(7,200,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(7,200,166,0); }
}


/* ==========================================================================
   C. PORTFOLIO PAGE
   ========================================================================== */

/* ---- C1. Featured project showcase ---- */
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-lg); background: var(--surface);
}
.featured__visual {
  position: relative; min-height: 420px; padding: 26px;
  background: linear-gradient(160deg, #16224a, #0a1024);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
}
.featured__visual .feed { aspect-ratio: auto; }
.featured__visual .feed--wide { grid-column: 1 / -1; }
.featured__tag {
  position: absolute; top: 22px; left: 22px; z-index: 4;
}
.featured__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.featured__body .badge { margin-bottom: 16px; align-self: flex-start; }
.featured__body h2 { font-size: clamp(1.6rem,2.6vw,2.2rem); margin-bottom: 14px; }
.featured__body p { margin-bottom: 24px; }
.featured__metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 28px; padding-block: 20px; border-block: 1px solid var(--line); }
.featured__metrics .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; }
.featured__metrics .num.g { color: var(--success); }
.featured__metrics .num.b { color: var(--brand); }
.featured__metrics span { font-size: .8rem; color: var(--muted); }

/* ---- C2. Filter bar ---- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 18px; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- C3. Project gallery grid ---- */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.project-card {
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .4s, filter .4s;
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
/* filtered-out state (toggled by JS) */
.project-card.is-hidden { display: none; }

.project-card__media {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(160deg, #16224a, #0a1024); padding: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.project-card__media .feed { aspect-ratio: auto; }
.project-card__cat {
  position: absolute; top: 14px; left: 14px; z-index: 4;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(8,15,35,.7); backdrop-filter: blur(6px);
  color: #fff; font-size: .72rem; font-weight: 600; border: 1px solid rgba(255,255,255,.14);
}
.project-card__media::after { /* hover veil + view icon */
  content: "\f06e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(10,15,30,.55); color: #fff; font-size: 1.5rem;
  opacity: 0; transition: opacity .35s var(--ease);
}
.project-card:hover .project-card__media::after { opacity: 1; }
.project-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project-card__body h3 { font-size: 1.15rem; margin-bottom: 7px; }
.project-card__body p { font-size: .88rem; line-height: 1.55; margin-bottom: 16px; }
.project-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.project-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-card__tags .tag { padding: 3px 9px; font-size: .72rem; }
.project-card__arrow {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-subtle); color: var(--ink); transition: all .25s var(--ease); flex: none;
}
.project-card:hover .project-card__arrow { background: var(--brand); color: #fff; transform: rotate(-45deg); }

/* ---- C4. Case study cards (with success metric) ---- */
.case-card {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.case-card__num {
  text-align: center; padding-right: 22px; border-right: 1px solid var(--line);
}
.case-card__num b { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--brand); letter-spacing: -.03em; }
.case-card__num span { font-size: .78rem; color: var(--muted-2); }
.case-card h4 { font-size: 1.05rem; margin-bottom: 5px; }
.case-card p { font-size: .88rem; }

/* ---- C5. Success metrics band (dark) ---- */
.metrics-band {
  border-radius: var(--r-xl); padding: clamp(36px,5vw,56px);
  background: linear-gradient(135deg, var(--brand-700), var(--brand) 60%, #4F46E5);
  color: #fff; position: relative; overflow: hidden;
}
.metrics-band::after {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 70%);
          mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 70%);
}
.metrics-band__grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.metrics-band .m-num { font-family: var(--font-display); font-size: clamp(2.4rem,4vw,3.2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.metrics-band .m-num small { font-size: .5em; }
.metrics-band p { color: rgba(255,255,255,.82); font-size: .95rem; margin-top: 8px; }


/* ==========================================================================
   D. CONTACT PAGE
   ========================================================================== */

/* ---- D1. Contact layout (form + aside) ---- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }

/* Dark glassmorphism form card */
.form-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(165deg, #0E1730, #0A0F1E);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: var(--sh-lg); color: #fff;
}
.form-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background: radial-gradient(40% 40% at 90% 0%, rgba(45,107,255,.3), transparent 60%),
             radial-gradient(40% 40% at 0% 100%, rgba(7,200,166,.18), transparent 60%);
}
.form-card > * { position: relative; }
.form-card h2 { color: #fff; font-size: 1.7rem; margin-bottom: 8px; }
.form-card > p { color: rgba(255,255,255,.62); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.78); margin-bottom: 8px;
}
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: .95rem; transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.field select option { color: #0B1220; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(45,107,255,.25);
}
/* validation error state (toggled by JS) */
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(240,68,56,.18); }
.field__error { display: none; color: #FDA29B; font-size: .78rem; margin-top: 6px; }
.field.has-error .field__error { display: block; }

.form-card .btn--primary { margin-top: 6px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 20px; }
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.form-consent label { font-size: .82rem; color: rgba(255,255,255,.6); }
.form-consent a { color: var(--accent); }

/* success message (revealed by JS) */
.form-success {
  display: none; text-align: center; padding: 20px;
  border-radius: var(--r); margin-bottom: 20px;
  background: rgba(18,183,106,.12); border: 1px solid rgba(18,183,106,.3);
  color: #6CE9A6;
}
.form-success.is-visible { display: block; }
.form-success i { font-size: 1.6rem; margin-bottom: 8px; }

/* ---- D2. Contact aside (quick info) ---- */
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.info-card__ic {
  display: grid; place-items: center; width: 50px; height: 50px; flex: none;
  border-radius: 13px; font-size: 1.15rem; color: #fff;
  background: linear-gradient(150deg, var(--brand), var(--brand-700));
}
.info-card__ic.accent { background: linear-gradient(150deg, var(--accent), var(--accent-600)); }
.info-card h4 { font-size: 1rem; margin-bottom: 3px; }
.info-card p { font-size: .9rem; line-height: 1.5; }
.info-card a { color: var(--brand); font-weight: 500; }

/* ---- D3. Office cards grid ---- */
.office-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.office-card {
  padding: 26px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.office-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.office-card__flag { font-size: 1.6rem; margin-bottom: 14px; }
.office-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.office-card .city { color: var(--brand); font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.office-card ul { display: flex; flex-direction: column; gap: 10px; }
.office-card li { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.office-card li i { color: var(--brand); margin-top: 4px; width: 16px; flex: none; }

/* ---- D4. Map ---- */
.map-wrap {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-md);
  background: linear-gradient(160deg, #0E1730, #0A0F1E);
  aspect-ratio: 21/9; min-height: 320px;
}
.map-wrap .world-map { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; -webkit-mask-image: none; mask-image: none; }
.map-card {
  position: absolute; right: 24px; bottom: 24px; z-index: 5; max-width: 280px;
  padding: 20px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  box-shadow: var(--sh-lg);
}
.map-card .badge { margin-bottom: 10px; }
.map-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.map-card p { font-size: .85rem; margin-bottom: 12px; }

/* ---- D5. FAQ accordion ---- */
.faq { max-width: 800px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); margin-bottom: 14px; overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.faq-item.is-open { box-shadow: var(--sh-md); border-color: rgba(45,107,255,.25); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; text-align: left;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.faq-q .icon {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 9px; background: var(--bg-subtle); color: var(--brand);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a__inner { padding: 0 22px 22px; color: var(--muted); font-size: .95rem; line-height: 1.65; }


/* ==========================================================================
   E. RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 1024px) {
  .featured { grid-template-columns: 1fr; }
  .featured__visual { min-height: 320px; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .tech-grid { grid-template-columns: repeat(2,1fr); }
  .cert-grid { grid-template-columns: repeat(2,1fr); }
  .office-grid { grid-template-columns: 1fr; }
  .globe__inner { grid-template-columns: 1fr; }
  .metrics-band__grid { grid-template-columns: repeat(2,1fr); row-gap: 32px; }

  /* timeline collapses to single side */
  .timeline::before { left: 18px; }
  .tl-item { grid-template-columns: 1fr; gap: 0; padding-left: 48px; }
  .tl-item__dot { left: 18px; }
  .tl-item:nth-child(odd) .tl-card,
  .tl-item:nth-child(even) .tl-card { grid-column: 1; }
  .tl-item:nth-child(odd) > div:last-child,
  .tl-item:nth-child(even) > div:first-child { display: block; }
  .tl-item > div:empty { display: none; }
}

@media (max-width: 640px) {
  .mv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .story__stats { grid-template-columns: 1fr 1fr; }
  .metrics-band__grid { grid-template-columns: 1fr 1fr; }
  .featured__metrics { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .case-card { grid-template-columns: 1fr; text-align: center; }
  .case-card__num { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 16px; }
  .map-card { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
