/* ============================================================
   WISE VARY — Specialize IT Consulting
   Design system
   Palette (from logo): sky #3BAADF · deep blue #1F5FA8 ·
   ink #17181C · steel #24262C · paper #F6F8FA
   Type: Chakra Petch (display) · IBM Plex Sans Thai (body) ·
   IBM Plex Mono (labels/data)
   Signature: tessellated-triangle facets from the W mark
   ============================================================ */

:root {
  --ink: #17181c;
  --steel: #24262c;
  --steel-2: #2e3138;
  --blue: #1f5fa8;
  --sky: #3baadf;
  --sky-soft: #bfe0f2;
  --paper: #f6f8fa;
  --mist: #e7eff6;
  --line: #dfe5ec;
  --line-dark: #34373f;
  --slate: #4a5058;
  --slate-soft: #9aa3ad;
  --white: #ffffff;

  --font-display: "IBM Plex Sans Thai", "Sarabun", sans-serif;
  --font-body: "Sarabun", "IBM Plex Sans Thai", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --maxw: 1120px;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- typography helpers ---------- */
h1, h2, h3, .display { font-family: var(--font-display); line-height: 1.25; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 11px; height: 10px;
  background: var(--sky);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  flex: none;
}
.on-dark .eyebrow { color: var(--sky); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.section-head h2 .en { color: var(--blue); }
.section-head p { color: var(--slate); margin-top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sky); color: var(--ink); }
.btn-primary:hover { background: #55b8e6; }
.btn-ghost { border-color: var(--slate-soft); color: var(--white); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--steel-2); }
.btn .tri { display: inline-block; width: 9px; height: 10px; background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 34px; width: auto; }
/* header: full logo (with WISE VARY CO,. LTD. lettering) */
.brand-header { gap: 0; }
.brand-logo-full {
  height: 52px;
  width: auto;
  transition: transform .2s ease, opacity .2s ease;
}
.brand-header:hover .brand-logo-full { transform: scale(1.03); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--slate);
  margin-top: 1px;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--blue); border-bottom-color: var(--sky); }
.nav-cta { font-size: 14.5px; padding: 10px 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- hero (landing) ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--ink) 55%, #1b2532 100%);
  color: var(--white);
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 104px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  max-width: 15em;
}
.hero h1 .accent { color: var(--sky); }
.hero-tagline {
  font-family: var(--font-mono);
  color: var(--sky);
  font-size: 14px;
  letter-spacing: .12em;
  margin-top: 18px;
}
.hero-sub {
  margin-top: 18px;
  max-width: 560px;
  color: #c3cad2;
  font-size: 17.5px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* facet field — signature element */
.facets { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.facet {
  position: absolute;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0;
  animation: facet-in 0.9s ease forwards, facet-float 7s ease-in-out infinite;
}
.facet.down { clip-path: polygon(0 0, 100% 0, 50% 100%); }
@keyframes facet-in { to { opacity: var(--o, .5); } }
@keyframes facet-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* hero stats */
.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-dark);
}
.hero-stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 30px;
}
.stat .num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--sky);
}
.stat .lbl { color: var(--slate-soft); font-size: 14px; margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; position: relative; }
/* surface rhythm — three distinct light backgrounds + dark */
.section.tint { background: #eef2f7; }                                   /* cool gray-blue */
.section.tint-blue { background: linear-gradient(180deg, #e9f2fb 0%, #eaf3fa 100%); } /* soft blue */
.section.dark { background: var(--ink); color: var(--white); }
/* hairline gradient divider at the top edge of each light section */
.section.tint::before,
.section.tint-blue::before,
.section.divider::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky) 20%, var(--blue) 50%, var(--sky) 80%, transparent);
  opacity: .5;
}

/* ---------- trend cards ---------- */
.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.trend-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.trend-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23, 24, 28, .08); }
.trend-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 34px; height: 30px;
  background: var(--mist);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  transition: background .2s ease;
}
.trend-card:hover::after { background: var(--sky-soft); }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--blue);
  background: var(--mist);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.trend-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.trend-card p { font-size: 14.5px; color: var(--slate); }

/* ---------- service cards ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--sky);
  box-shadow: 0 16px 34px rgba(31, 95, 168, .1);
}
.svc-icon {
  width: 46px; height: 42px;
  margin-bottom: 20px;
  background: linear-gradient(150deg, var(--sky), var(--blue));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.svc-card:nth-child(even) .svc-icon {
  background: linear-gradient(150deg, var(--steel-2), var(--ink));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.svc-card h3 { font-size: 19px; margin-bottom: 4px; }
.svc-card .en-sub { font-family: var(--font-mono); font-size: 12px; color: var(--blue); letter-spacing: .06em; }
.svc-card p { font-size: 14.5px; color: var(--slate); margin-top: 12px; }
.svc-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  color: var(--blue);
}
.svc-more .tri { width: 8px; height: 9px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- service detail rows (products page) ---------- */
.svc-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: none; }
.svc-row .svc-icon { width: 54px; height: 50px; margin: 4px 0 0; }
.svc-row:nth-child(even) .svc-icon {
  background: linear-gradient(150deg, var(--steel-2), var(--ink));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.svc-row h3 { font-size: 23px; }
.svc-row .en-sub { font-family: var(--font-mono); font-size: 12.5px; color: var(--blue); letter-spacing: .06em; }
.svc-row > div > p { color: var(--slate); margin-top: 12px; max-width: 640px; }
.svc-points {
  list-style: none;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 28px;
  max-width: 720px;
}
.svc-points li {
  font-size: 14.5px;
  color: var(--slate);
  padding-left: 20px;
  position: relative;
}
.svc-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 8px;
  background: var(--sky);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- article cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23, 24, 28, .09); }
.article-cover {
  height: 150px;
  position: relative;
  background: linear-gradient(150deg, var(--steel) 0%, var(--ink) 70%);
  overflow: hidden;
}
.article-cover.blue { background: linear-gradient(150deg, var(--sky) 0%, var(--blue) 80%); }
.article-cover .tri-deco {
  position: absolute;
  background: rgba(255, 255, 255, .14);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.article-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.article-meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate-soft);
  margin-bottom: 10px;
}
.article-card h3 { font-size: 17.5px; line-height: 1.45; }
.article-card h3 a:hover { color: var(--blue); }
.article-card p { font-size: 14px; color: var(--slate); margin-top: 8px; flex: 1; }
.read-more {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 13.5px;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 7px;
}
.read-more .tri { width: 7px; height: 8px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--sky); color: var(--blue); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.member:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23, 24, 28, .08); }
.avatar {
  width: 88px; height: 80px;
  margin: 0 auto 18px;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(150deg, var(--sky), var(--blue));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  padding-bottom: 10px;
}
.member:nth-child(even) .avatar {
  background: linear-gradient(150deg, var(--steel-2), var(--ink));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: 0;
}
.member h3 { font-size: 17.5px; }
.member .role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--blue);
  margin: 4px 0 10px;
}
.member p { font-size: 13.5px; color: var(--slate); }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--ink) 60%, #1b2532 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 2; padding-top: 66px; padding-bottom: 70px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); }
.page-hero p { color: #c3cad2; margin-top: 12px; max-width: 560px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); max-width: 18em; }
.cta-band p { color: var(--slate-soft); margin-top: 8px; }

/* ---------- footer (light theme) ---------- */
.site-footer {
  position: relative;
  background: var(--white);
  color: var(--slate);
  font-size: 14.5px;
  border-top: 1px solid var(--line);
}
/* triangle-gradient accent bar along the top edge */
.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--blue) 55%, var(--ink));
}
/* faint tessellated-triangle watermark, bottom-right */
.site-footer::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -30px;
  width: 260px; height: 260px;
  background: var(--sky);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: .05;
  pointer-events: none;
}
.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding: 60px 0 40px;
}
.footer-main .brand { align-items: center; }
.footer-main .brand img { height: 58px; width: auto; }
.footer-main .brand-name { color: var(--ink); }
.footer-main .brand-name small { color: var(--slate); }
.footer-about { margin-top: 18px; max-width: 340px; color: var(--slate); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col h4::before {
  content: "";
  width: 9px; height: 8px;
  background: var(--sky);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--slate); transition: color .15s ease; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-soft);
}
.footer-bottom span:last-child { color: var(--blue); letter-spacing: .1em; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .svc-row { grid-template-columns: 1fr; gap: 12px; }
  .hero-stats .wrap { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}

/* ============================================================
   LANDING V2 — premium animated hero + scroll reveals
   ============================================================ */

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---- hero v2 ---- */
.hero-v2 {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(120% 120% at 78% 20%, #1d2a3a 0%, #14161c 46%, #0e0f13 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-v2 canvas.mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: .9;
}
/* soft vignette so text stays readable over the mesh */
.hero-v2::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(14,15,19,.94) 0%, rgba(14,15,19,.72) 38%, rgba(14,15,19,.25) 70%, rgba(14,15,19,.05) 100%);
  pointer-events: none;
}
.hero-v2 .wrap { position: relative; z-index: 3; padding: 120px 24px 40px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  border: 1px solid rgba(59,170,223,.35);
  background: rgba(59,170,223,.08);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 0 rgba(59,170,223,.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59,170,223,.55); }
  70% { box-shadow: 0 0 0 9px rgba(59,170,223,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,170,223,0); }
}
.hero-v2 h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  font-weight: 700;
  line-height: 1.14;
  max-width: 16em;
  letter-spacing: -0.01em;
}
.hero-v2 h1 .grad {
  background: linear-gradient(100deg, #55b8e6, #1f5fa8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-v2 .hero-sub { max-width: 540px; color: #cdd4dc; font-size: 18px; margin-top: 22px; }
.hero-v2 .hero-actions { margin-top: 38px; }
.hero-scroll-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--slate-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-hint .bar {
  width: 1px; height: 34px;
  background: linear-gradient(var(--sky), transparent);
  animation: scrolldn 1.8s ease-in-out infinite;
}
@keyframes scrolldn { 0%,100%{opacity:.3; transform:scaleY(.6);} 50%{opacity:1; transform:scaleY(1);} }

/* ---- logo marquee (trust strip) ---- */
.marquee {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: slide 26s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--slate-soft);
  white-space: nowrap;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; }
.marquee-track span::before {
  content: ""; width: 9px; height: 8px; background: var(--blue);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- animated stat counters band ---- */
.metrics { background: var(--ink); color: var(--white); }
.metrics .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 60px 24px;
}
.metric { border-left: 2px solid var(--line-dark); padding-left: 20px; }
.metric .num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--sky);
  line-height: 1;
}
.metric .lbl { color: var(--slate-soft); font-size: 13.5px; margin-top: 10px; }

/* ---- process / how-we-work steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23,24,28,.08); }
.step .step-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  letter-spacing: .1em;
}
.step .step-tri {
  width: 30px; height: 27px; margin: 12px 0 16px;
  background: linear-gradient(150deg, var(--sky), var(--blue));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.step:nth-child(even) .step-tri {
  background: linear-gradient(150deg, var(--steel-2), var(--ink));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--slate); }

@media (max-width: 860px) {
  .metrics .wrap { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero-v2 { min-height: 88vh; }
  .hero-v2 .wrap { padding-top: 96px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info .eyebrow { color: var(--blue); }
.contact-info h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.contact-info > p { color: var(--slate); margin-top: 14px; max-width: 34em; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 26px;
}
.contact-detail .ci {
  flex: none;
  width: 34px; height: 31px;
  margin-top: 3px;
  background: linear-gradient(150deg, var(--sky), var(--blue));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.contact-detail:nth-child(odd) .ci {
  background: linear-gradient(150deg, var(--steel-2), var(--ink));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.contact-detail h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--blue); text-transform: uppercase; }
.contact-detail p { color: var(--slate); font-size: 15px; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: 0 20px 44px rgba(23,24,28,.06);
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.form-field label .req { color: var(--blue); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.form-field textarea { resize: vertical; min-height: 118px; line-height: 1.6; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--white);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--slate-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12.5px; color: var(--slate-soft); margin-top: -8px; margin-bottom: 20px; }
.contact-card .btn { width: 100%; justify-content: center; }
.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--blue);
  display: none;
}
.form-status.show { display: block; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   LANDING FLAIR — extra interactivity for lower sections
   (scoped to body.landing so other pages stay unaffected)
   ============================================================ */

/* ---- service cards: cursor spotlight + accent bar + tilt ---- */
.landing .svc-card {
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s ease, box-shadow .25s ease;
}
.landing .svc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(300px 300px at var(--mx, 50%) var(--my, 0%), rgba(59,170,223,.16), transparent 70%);
  transition: opacity .3s ease;
  pointer-events: none;
}
.landing .svc-card:hover::before { opacity: 1; }
.landing .svc-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--sky), var(--blue));
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.landing .svc-card:hover::after { transform: scaleX(1); }
.landing .svc-card > * { position: relative; z-index: 1; }
.landing .svc-card:hover .svc-icon { animation: tri-spin .7s cubic-bezier(.2,.7,.3,1); }
@keyframes tri-spin {
  0% { transform: rotate(0) scale(1); }
  55% { transform: rotate(200deg) scale(1.16); }
  100% { transform: rotate(180deg) scale(1); }
}
.landing .svc-card .svc-icon { transition: transform .3s ease; }
.landing .svc-card:hover .svc-more { gap: 12px; color: var(--sky); }
.landing .svc-card .svc-more { transition: gap .25s ease, color .2s ease; }

/* ---- steps: connecting line that draws in + spin ---- */
.landing .steps { position: relative; }
.landing .steps::before {
  content: "";
  position: absolute;
  top: 78px; left: 8%; right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 16px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s ease .2s;
  opacity: .5;
  z-index: 0;
}
.landing .steps.drawn::before { transform: scaleX(1); }
.landing .step { position: relative; z-index: 1; }
.landing .step .step-tri { transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.landing .step:hover .step-tri { transform: rotate(180deg) scale(1.15); }
.landing .step::after {
  content: attr(data-ghost);
  position: absolute;
  right: 14px; bottom: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
  opacity: .04;
  pointer-events: none;
}
@media (max-width: 860px) { .landing .steps::before { display: none; } }

/* ---- article cards: cover zoom + triangle parallax + arrow ---- */
.landing .article-card .article-cover { transition: transform .4s ease; }
.landing .article-card .article-cover .tri-deco { transition: transform .5s cubic-bezier(.2,.7,.3,1), opacity .4s ease; }
.landing .article-card:hover .article-cover .tri-deco:nth-child(1) { transform: translate(10px, -8px) rotate(8deg); }
.landing .article-card:hover .article-cover .tri-deco:nth-child(2) { transform: translate(-12px, 10px) rotate(-10deg); }
.landing .article-card:hover .read-more { gap: 12px; }
.landing .article-card .read-more { transition: gap .25s ease; }

/* ---- CTA: animated glow + drifting facets + magnetic button ---- */
.landing .cta-band { background: var(--ink); }
.landing .cta-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 0;
  background:
    radial-gradient(38% 42% at 20% 30%, rgba(59,170,223,.20), transparent 60%),
    radial-gradient(34% 38% at 78% 70%, rgba(31,95,168,.24), transparent 62%);
  animation: cta-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes cta-drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(4%, -3%) scale(1.08); }
}
.landing .cta-band .wrap { position: relative; z-index: 2; }
.landing .cta-band .btn { will-change: transform; transition: transform .18s ease, background .18s ease, box-shadow .25s ease; }
.landing .cta-band .btn:hover { box-shadow: 0 12px 40px rgba(59,170,223,.4); }
@media (prefers-reduced-motion: reduce) {
  .landing .cta-band::before { animation: none; }
  .landing .svc-card:hover .svc-icon { animation: none; }
}

/* ============================================================
   VIBRANCY PASS — punch up color, contrast, and life
   ============================================================ */
:root {
  --cyan: #17c1e8;
  --grad-brand: linear-gradient(100deg, #3baadf 0%, #1f5fa8 60%, #17408a 100%);
  --grad-bright: linear-gradient(100deg, #35c4f0, #2f7fd6 55%, #1f5fa8);
}

/* eyebrow -> small tinted pill, brighter */
.eyebrow {
  color: var(--blue);
  background: rgba(59,170,223,.10);
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
}
.on-dark .eyebrow { background: rgba(59,170,223,.14); color: #7fd0f2; }

/* section headings: gradient accent word + colored underline */
.section-head h2 { position: relative; }
.section-head h2 .en {
  background: var(--grad-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { padding-bottom: 18px; }
.section-head::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin-top: 20px;
  border-radius: 3px;
  background: var(--grad-brand);
}
.on-dark .section-head::after { background: var(--grad-bright); }

/* primary buttons: brighter fill + colored glow */
.btn-primary {
  background: var(--grad-bright);
  color: #fff;
  box-shadow: 0 8px 22px rgba(47,127,214,.32);
}
.btn-primary:hover { background: var(--grad-bright); filter: brightness(1.08); box-shadow: 0 12px 30px rgba(47,127,214,.45); }

/* trend tags: colour-coded by nth for a livelier grid */
.trend-card .tag { color: #fff; background: var(--blue); }
.trend-grid .trend-card:nth-child(1) .tag { background: linear-gradient(120deg,#3baadf,#1f5fa8); }
.trend-grid .trend-card:nth-child(2) .tag { background: linear-gradient(120deg,#17c1e8,#2f7fd6); }
.trend-grid .trend-card:nth-child(3) .tag { background: linear-gradient(120deg,#5b6be0,#1f5fa8); }
.trend-grid .trend-card:nth-child(4) .tag { background: linear-gradient(120deg,#16b8b0,#1f7fae); }
/* accent top border grows on trend card hover */
.trend-card { border-top: 3px solid transparent; }
.trend-card:hover { border-top-color: var(--sky); }

/* metrics band: gradient numbers + subtle blue glow backdrop */
.metrics { background: linear-gradient(120deg, #14161c 0%, #16233a 100%); }
.metric .num {
  background: var(--grad-bright);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric { border-left-color: rgba(59,170,223,.5); }

/* service card icon glow + colored hover ring already present; add gradient tags */
.svc-card .en-sub, .svc-row .en-sub { color: var(--cyan); }

/* generic CTA band (all pages): vivid blue gradient instead of flat ink */
.cta-band.dark, .section.dark.cta-band {
  background: var(--grad-brand);
  color: #fff;
}
.cta-band .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.cta-band .btn-primary:hover { background: #fff; filter: none; color: var(--ink); }
.cta-band p { color: rgba(255,255,255,.85); }

/* page-hero (subpages) gets a hint of blue in the gradient */
.page-hero { background: linear-gradient(160deg, #14161c 40%, #16233a 100%); }

/* article "blue" covers -> richer gradient */
.article-cover.blue { background: linear-gradient(150deg, #3baadf 0%, #1f5fa8 70%, #17408a 100%); }

/* links in body get brand color */
.footer-col a:hover { color: var(--sky); }

/* ============================================================
   ARTICLE COVERS (image) + ARTICLE READING PAGE
   ============================================================ */
/* image cover on article cards */
.article-cover.img {
  height: 180px;
  padding: 0;
  background: var(--mist);
}
.article-cover.img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.article-card:hover .article-cover.img img { transform: scale(1.06); }
.article-cover.img { overflow: hidden; }

/* ---------- article reading page ---------- */
.article-hero {
  background: linear-gradient(160deg, #14161c 40%, #16233a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.article-hero .wrap { position: relative; z-index: 2; padding: 44px 24px 40px; max-width: 820px; }
.article-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em;
  color: var(--sky); margin-bottom: 22px;
}
.article-back .tri { width: 8px; height: 9px; background: currentColor; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.article-back:hover { color: #7fd0f2; }
.article-hero .a-meta {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--slate-soft);
  margin-bottom: 16px;
}
.article-hero .a-cat {
  color: #fff; background: var(--grad-brand);
  padding: 4px 12px; border-radius: 999px; letter-spacing: .1em;
}
.article-hero h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.24; }
.article-hero .a-lead { color: #c8d0d9; font-size: 18px; margin-top: 16px; }

.article-figure { max-width: 900px; margin: -30px auto 0; padding: 0 24px; position: relative; z-index: 3; }
.article-figure img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(20,30,45,.28);
}

.article-body-wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px 20px; }
.article-content { font-size: 17px; line-height: 1.95; color: #2a2f36; }
.article-content h2 {
  font-size: 24px; margin: 38px 0 14px; color: var(--ink);
  padding-left: 16px; position: relative;
}
.article-content h2::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 10px; height: 20px; background: var(--grad-brand); border-radius: 2px;
}
.article-content h3 { font-size: 19px; margin: 26px 0 10px; color: var(--ink); }
.article-content p { margin: 14px 0; }
.article-content ul, .article-content ol { margin: 14px 0 14px 4px; padding-left: 22px; }
.article-content li { margin: 8px 0; }
.article-content ul li::marker { color: var(--blue); }
.article-content strong { color: var(--ink); }
.article-content blockquote {
  margin: 24px 0; padding: 16px 22px;
  background: #eef2f7; border-left: 4px solid var(--sky);
  border-radius: 0 8px 8px 0; color: var(--slate);
}
.article-content .callout {
  margin: 26px 0; padding: 20px 22px;
  background: linear-gradient(120deg,#eaf3fa,#eef2f7);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.article-content .callout h4 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 8px;
}
.article-share {
  max-width: 720px; margin: 8px auto 0; padding: 20px 24px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  color: var(--slate); font-size: 14.5px;
}

/* related articles strip */
.related { max-width: 980px; margin: 0 auto; padding: 20px 24px 10px; }
.related h3 { font-size: 18px; margin-bottom: 18px; }

/* ============================================================
   SERVICE FEATURES — alternating zig-zag layout (products page)
   ============================================================ */
.svc-features { display: grid; gap: 30px; }
.svc-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(23,24,28,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc-feature:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(23,24,28,.12); }
.svc-feature:nth-child(even) .svc-visual { order: 2; }

/* visual panel */
.svc-visual {
  position: relative;
  min-height: 300px;
  padding: 30px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--sv, linear-gradient(150deg,#3baadf,#1f5fa8));
}
.svc-visual .sv-cat {
  position: relative; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  background: rgba(0,0,0,.22); padding: 6px 12px; border-radius: 999px; width: fit-content;
}
.svc-visual .sv-num {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 9vw, 110px); line-height: .9;
}
.svc-visual .sv-emblem {
  position: absolute; right: -30px; bottom: -30px; z-index: 1;
  width: 220px; height: 220px; opacity: .16;
  background: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.svc-visual .sv-emblem.two {
  right: 70px; bottom: 40px; width: 120px; height: 120px; opacity: .12;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
/* faint triangle mesh texture */
.svc-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .12;
  background-image:
    linear-gradient(120deg, rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(-120deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 26px 44px;
}

/* content side */
.svc-feature .sv-body { padding: 34px 34px 32px; align-self: center; }
.svc-feature .sv-body h3 { font-size: 24px; margin-bottom: 4px; }
.svc-feature .sv-body .en-sub {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .05em;
  color: var(--blue); display: block; margin-bottom: 12px;
}
.svc-feature .sv-body > p { color: var(--slate); max-width: 46em; }
.svc-feature .svc-points {
  list-style: none; margin-top: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
.svc-feature .svc-points li {
  font-size: 14.5px; color: var(--slate); padding-left: 20px; position: relative;
}
.svc-feature .svc-points li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 9px; height: 8px; background: var(--sky);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (max-width: 820px) {
  .svc-feature { grid-template-columns: 1fr; }
  .svc-feature:nth-child(even) .svc-visual { order: 0; }
  .svc-visual { min-height: 190px; }
  .svc-visual .sv-num { font-size: 64px; }
  .svc-feature .svc-points { grid-template-columns: 1fr; }
}

/* ============================================================
   HERO CAROUSEL — slide left/right (landing hero only)
   ============================================================ */
.hero-carousel { position: relative; z-index: 3; width: 100%; overflow: hidden; }
.hero-track {
  display: flex;
  width: 100%;
  transition: transform .6s cubic-bezier(.6,.2,.2,1);
  will-change: transform;
}
.hero-slide { min-width: 100%; }
.hero-slide .wrap { padding-top: 0; padding-bottom: 0; }

/* content reveal per active slide */
.hero-slide .h-in > * { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.hero-slide.active .h-in > * { opacity: 1; transform: none; }
.hero-slide.active .h-in > *:nth-child(2){ transition-delay:.08s }
.hero-slide.active .h-in > *:nth-child(3){ transition-delay:.16s }
.hero-slide.active .h-in > *:nth-child(4){ transition-delay:.24s }

/* arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 6; width: 50px; height: 50px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-arrow:hover { background: rgba(59,170,223,.9); border-color: var(--sky); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }

/* dots */
.hero-dots {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 30px;
  display: flex; justify-content: center; gap: 12px;
}
.hero-dots button {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 3px;
  background: rgba(255,255,255,.3); cursor: pointer; transition: background .2s ease;
}
.hero-dots button.active { background: var(--sky); }

@media (max-width: 640px) {
  .hero-arrow { width: 42px; height: 42px; font-size: 20px; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
}
