/* ============================================================
   CTC Smart Tech — Design System
   Phong cách: tái tạo design language của synthesis.capital
   (tokens, layout patterns, motion) — nội dung & hình ảnh CTC.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --c-ink: #120a59;            /* indigo chính */
  --c-ink-light: #8884ac;      /* indigo nhạt (label, phụ) */
  --c-bg: #fafafa;
  --c-dark: #1a1a1a;
  --c-grey-light: #f5f5f5;
  --c-grey-line: #d8d8d8;
  --c-lime: #d2ff51;
  --c-green: #005725;
  --c-pink: #ffc9fd;
  --c-brand: #00ade9;      /* xanh brand CTC (thay cho đỏ) */
  --c-brand-dark: #0072b8; /* xanh brand CTC đậm */
  --c-yellow: #ffec44;
  --c-blue: #a5d7ff;
  --c-white: #fff;

  --radius: 5px;
  --radius-pill: 100px;

  --fs-xs: 12px;
  --fs-small: 14px;
  --fs-base: 16px;
  --fs-body-s: 18px;
  --fs-body-l: 20px;
  --fs-body-xl: 24px;
  --fs-xl: 28px;

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --t-fast: .2s ease;
  --t-med: .3s ease-in-out;
  --t-slow: .5s ease;

  --pad-x: clamp(20px, 4vw, 64px);
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

/* Page fade transition */
body { opacity: 0; transition: opacity .45s ease; }
body.page-in { opacity: 1; }
body.page-out { opacity: 0; transition: opacity .3s ease; }

::selection { background: var(--c-lime); color: var(--c-ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
.h-display { font-size: clamp(40px, 5.6vw, 76px); }
.h-1 { font-size: clamp(34px, 4.2vw, 56px); }
.h-2 { font-size: clamp(26px, 3vw, 40px); }
.h-3 { font-size: clamp(20px, 2vw, 26px); }
.body-l { font-size: var(--fs-body-l); line-height: 1.55; }
.body-xl { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; }
.small { font-size: var(--fs-small); }

.label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c-ink-light);
  display: block;
  margin-bottom: 20px;
}
.on-dark .label { color: rgba(255,255,255,.55); }

.text-lime { color: var(--c-lime); }
.text-pink { color: var(--c-pink); }
.text-yellow { color: var(--c-yellow); }
.text-blue { color: var(--c-blue); }

/* ---------- Layout ---------- */
.container { max-width: 1360px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding: clamp(72px, 9vw, 130px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(250,250,250,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-med), border-color var(--t-med), transform .4s ease;
}
.nav.scrolled { border-bottom-color: rgba(18,10,89,.08); }
.nav.hidden { transform: translateY(-100%); }
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.nav-logo img { width: 34px; height: 34px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav-links a {
  font-size: var(--fs-small); font-weight: 500;
  color: var(--c-ink-light);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--c-ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--c-lime); border-radius: 2px;
}
.nav-cta {
  font-size: var(--fs-small); font-weight: 700;
  background: var(--c-ink); color: #fff;
  padding: 10px 22px; border-radius: var(--radius-pill);
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-cta:hover { background: #1c1275; transform: translateY(-1px); }

.nav-burger { display: none; width: 40px; height: 40px; position: relative; z-index: 130; }
.nav-burger span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: var(--c-ink);
  transition: transform var(--t-med), opacity var(--t-med), background var(--t-med);
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 26px; }
body.menu-open .nav-burger span { background: #fff; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 120;
  background: var(--c-ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-size: clamp(28px, 8vw, 44px); font-weight: 500; padding: 10px 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity .4s ease, transform .4s ease;
}
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s; }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: .25s; }
body.menu-open .mobile-menu a:nth-child(7) { transition-delay: .3s; }
.mobile-menu a:hover { color: var(--c-lime); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: var(--fs-small);
  white-space: nowrap;
  padding: 14px 28px; border-radius: var(--radius-pill);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.btn-lime { background: var(--c-lime); color: var(--c-ink); }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(210,255,81,.4); }
.btn-ink { background: var(--c-ink); color: #fff; }
.btn-ink:hover { transform: translateY(-2px); background: #1c1275; }
.btn-outline { border: 1.5px solid var(--c-ink); color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); color: #fff; }
.on-dark .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.on-dark .btn-outline:hover { background: #fff; color: var(--c-ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: var(--fs-base);
  transition: gap var(--t-fast);
}
.link-arrow:hover { gap: 16px; }
.link-arrow .arr {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c-lime); color: var(--c-ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  transition: transform var(--t-fast);
}
.link-arrow:hover .arr { transform: rotate(45deg); }
.link-arrow .arr svg { width: 12px; height: 12px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: calc(100dvh - 0px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: 40px;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-copy h1 { margin-bottom: 28px; }
.hero-copy--home { display: flex; flex-direction: column; justify-content: space-between; min-height: 70vh; padding: 9vh 0 6vh; }
@media (max-width: 820px) { .hero-copy--home { min-height: 0; padding: 6vh 0 0; gap: 28px; } }
.hero-copy .hero-sub { color: var(--c-ink-light); max-width: 420px; margin-bottom: 36px; }
.hero-stream {
  position: relative; height: min(78vh, 720px);
  display: flex; gap: 20px; justify-content: center;
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.hero-col { display: flex; flex-direction: column; gap: 20px; will-change: transform; }
.hero-tile {
  width: clamp(150px, 14vw, 210px); aspect-ratio: 3/4;
  border-radius: var(--radius); overflow: hidden; flex: none;
  box-shadow: 0 10px 30px rgba(18,10,89,.10);
  transform: rotate(1deg);
}
.hero-tile svg { width: 100%; height: 100%; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(18,10,89,.1);
  border-bottom: 1px solid rgba(18,10,89,.1);
  padding: 18px 0;
}
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 22s linear infinite; will-change: transform; }
.marquee-track span { font-size: var(--fs-body-l); font-weight: 700; letter-spacing: .04em; }
.marquee-track .dot { color: var(--c-brand); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Value cards / features ---------- */
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(18,10,89,.12); }
.value-item { padding: 36px 32px 40px 0; border-bottom: 1px solid rgba(18,10,89,.12); }
.value-item:nth-child(odd) { border-right: 1px solid rgba(18,10,89,.12); padding-right: 40px; }
.value-item:nth-child(even) { padding-left: 40px; }
.value-item h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.value-item .chip { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.value-item p { color: var(--c-ink-light); font-size: var(--fs-body-s); line-height: 1.6; }

/* ---------- Case showcase (home featured) ---------- */
.showcase { background: var(--c-grey-light); border-radius: var(--radius); overflow: hidden; }
.showcase-inner { display: grid; grid-template-columns: 320px 1fr; min-height: 520px; }
.showcase-list { padding: 40px 0 40px 40px; display: flex; flex-direction: column; gap: 4px; }
.showcase-list .label { margin-bottom: 24px; }
.showcase-tab {
  text-align: left; font-size: var(--fs-body-l); font-weight: 500;
  padding: 10px 0; color: var(--c-ink-light);
  display: flex; align-items: center; gap: 10px;
  transition: color var(--t-fast);
}
.showcase-tab::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-lime); opacity: 0; transform: scale(.4);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.showcase-tab.active { color: var(--c-ink); }
.showcase-tab.active::before { opacity: 1; transform: none; }
.showcase-stage { position: relative; min-height: 420px; }
.showcase-slide {
  position: absolute; inset: 0; padding: 40px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s;
}
.showcase-slide.active { opacity: 1; visibility: visible; }
.showcase-slide .art { position: absolute; inset: 0; }
.showcase-slide .art svg { width: 100%; height: 100%; object-fit: cover; }
.showcase-slide .caption {
  position: relative; background: rgba(26,26,26,.82); color: #fff;
  border-radius: var(--radius); padding: 18px 22px; max-width: 520px;
  backdrop-filter: blur(6px);
}
.showcase-slide .caption .tag { color: var(--c-lime); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.showcase-slide .caption p { font-size: var(--fs-small); color: rgba(255,255,255,.85); }

/* ---------- Quote / testimonials ---------- */
.quotes { position: relative; min-height: 340px; }
.quote-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.quote-slide.active { opacity: 1; visibility: visible; transform: none; }
.quote-slide blockquote { font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; line-height: 1.35; margin-bottom: 28px; }
.quote-slide blockquote::before { content: "“"; }
.quote-slide blockquote::after { content: "”"; }
.quote-author { display: flex; align-items: center; gap: 14px; }
.quote-author .ava {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.quote-author .who .name { font-weight: 700; }
.quote-author .who .role { color: var(--c-ink-light); font-size: var(--fs-small); }
.quote-dots { display: flex; gap: 8px; margin-top: 36px; }
.quote-dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(18,10,89,.18); transition: background var(--t-fast), transform var(--t-fast); }
.quote-dots button.active { background: var(--c-ink); transform: scale(1.2); }

/* ---------- Stat cards (pastel) ---------- */
.stat-card {
  border-radius: var(--radius); padding: 28px;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stat-card .num { font-size: clamp(36px, 3.4vw, 52px); font-weight: 500; }
.stat-card .ico { align-self: center; padding: 28px 0; }
.stat-card .ico svg { width: 96px; height: 96px; }
.stat-card .cap { font-size: var(--fs-base); line-height: 1.5; }
.stat-blue { background: var(--c-blue); }
.stat-grey { background: #ececec; }
.stat-pink { background: var(--c-pink); }
.stat-lime { background: var(--c-lime); }
.stat-yellow { background: var(--c-yellow); }

/* ---------- Service cards (overview swiper-style) ---------- */
.svc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; color: #fff; isolation: isolate;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(18,10,89,.16); }
.svc-card .bg { position: absolute; inset: 0; z-index: -2; }
.svc-card .bg svg { width: 100%; height: 100%; }
.svc-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(26,26,26,.86) 0%, rgba(26,26,26,.25) 55%, rgba(26,26,26,0) 100%); }
.svc-card h3 { font-size: var(--fs-body-xl); margin-bottom: 10px; }
.svc-card p { font-size: var(--fs-small); color: rgba(255,255,255,.85); margin-bottom: 14px; }
.svc-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card .tags span {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .5px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.4);
}
.svc-card .go {
  position: absolute; top: 20px; right: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-lime); color: var(--c-ink);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform var(--t-med);
}
.svc-card:hover .go { transform: scale(1); }

/* ---------- Dark sky section ---------- */
.sky {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(165,215,255,.32) 0%, rgba(18,10,89,0) 52%),
    radial-gradient(130% 100% at 85% 100%, rgba(136,132,172,.4) 0%, rgba(18,10,89,0) 60%),
    linear-gradient(178deg, #2a1f7e 0%, #120a59 45%, #0c0640 100%);
}
.sky .cloud { position: absolute; opacity: .5; filter: blur(2px); animation: drift 60s linear infinite alternate; }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }

.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.pillar .ico { display: flex; justify-content: center; margin-bottom: 18px; }
.pillar .ico svg { width: 110px; height: 110px; stroke: rgba(255,255,255,.9); }
.pillar .cap { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.8); }

/* ---------- Blob CTA ---------- */
.blob-cta { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.blob-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.blob {
  position: relative; width: min(440px, 78vw); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-med);
}
.blob:hover { transform: scale(1.04); }
.blob svg.shape { position: absolute; inset: 0; width: 100%; height: 100%; animation: blob-spin 80s linear infinite; }
@keyframes blob-spin { to { transform: rotate(360deg); } }
.blob .blob-label { position: relative; font-size: var(--fs-body-l); font-weight: 700; color: var(--c-ink); text-align: center; padding: 0 60px; }

/* Rotating circular badge */
.badge-rotor { position: absolute; right: -8px; bottom: -8px; width: 108px; height: 108px; }
.badge-rotor svg { width: 100%; height: 100%; animation: rotor 14s linear infinite; }
@keyframes rotor { to { transform: rotate(360deg); } }
.badge-rotor .core {
  position: absolute; inset: 30px; border-radius: 50%;
  background: var(--c-ink); color: var(--c-lime);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Newsletter / contact CTA card ---------- */
.cta-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  color: #fff; text-align: center;
  padding: clamp(64px, 9vw, 120px) 24px;
  background:
    radial-gradient(90% 70% at 20% 15%, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(80% 60% at 80% 85%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(160deg, #3d55b8 0%, #22348f 40%, #120a59 100%);
}
.cta-card h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 500; margin-bottom: 34px; }
.clouds { position: absolute; inset: 0; pointer-events: none; opacity: .45; filter: blur(22px); }
.cta-card .clouds { opacity: .5; }

/* ---------- Footer ---------- */
.footer { background: var(--c-ink); color: #fff; padding: clamp(56px, 7vw, 96px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); margin-bottom: 64px; }
.footer-word { font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; line-height: 1.2; }
.footer-word em { font-style: normal; color: var(--c-lime); }
.footer h4 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.footer a { color: rgba(255,255,255,.8); transition: color var(--t-fast); }
.footer a:hover { color: var(--c-lime); }
.footer-links li { margin-bottom: 10px; }
.footer-info { color: rgba(255,255,255,.7); font-size: var(--fs-small); line-height: 1.65; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: var(--fs-xs); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: rgba(255,255,255,.5); font-size: var(--fs-xs);
}

/* ---------- Service detail pages ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero .label { margin-bottom: 16px; }
.page-hero h1 { max-width: 20ch; margin-bottom: 24px; }
.page-hero .lede { color: var(--c-ink-light); font-size: var(--fs-body-l); max-width: 560px; line-height: 1.6; }

.stack-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-pills span {
  font-size: var(--fs-small); font-weight: 500;
  padding: 9px 18px; border-radius: var(--radius-pill);
  border: 1px solid rgba(18,10,89,.25);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.stack-pills span:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* Accordion expertise */
.acc { border-top: 1px solid rgba(18,10,89,.15); }
.acc-item { border-bottom: 1px solid rgba(18,10,89,.15); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0; text-align: left;
}
.acc-head h3 { font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; }
.acc-head .x {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  border: 1.5px solid rgba(18,10,89,.3);
  position: relative; transition: background var(--t-med), border-color var(--t-med), transform var(--t-med);
}
.acc-head .x::before, .acc-head .x::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.6px;
  background: var(--c-ink); transform: translate(-50%,-50%);
  transition: transform var(--t-med), background var(--t-med);
}
.acc-head .x::after { transform: translate(-50%,-50%) rotate(90deg); }
.acc-item.open .acc-head .x { background: var(--c-lime); border-color: var(--c-lime); transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.22,.61,.36,1); }
.acc-body p { color: var(--c-ink-light); font-size: var(--fs-body-s); line-height: 1.65; max-width: 760px; padding-bottom: 28px; }

/* Numbered process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.step { padding: 24px; border-radius: var(--radius); background: var(--c-grey-light); position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: var(--fs-small); font-weight: 700; color: var(--c-ink-light);
  margin-bottom: 40px;
}
.step h3 { font-size: var(--fs-body-s); margin-bottom: 8px; }
.step p { color: var(--c-ink-light); font-size: var(--fs-small); line-height: 1.55; }
.step .chip { position: absolute; top: 24px; right: 24px; width: 12px; height: 12px; border-radius: 3px; }

/* Checklist */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: var(--fs-body-s); line-height: 1.5; padding: 14px 0;
  border-bottom: 1px solid rgba(18,10,89,.1);
}
.checklist li::before {
  content: "→"; color: var(--c-ink); font-weight: 700; flex: none;
  width: 26px; height: 26px; border-radius: 50%; background: var(--c-lime);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}

/* ---------- Storytelling (implementation) ---------- */
.story-dark { background: var(--c-dark); color: #fff; }
.story-num {
  font-size: var(--fs-small); font-weight: 700; color: var(--c-lime);
  display: block; margin-bottom: 14px;
}
.gradient-text {
  background: linear-gradient(92deg, var(--c-blue) 0%, var(--c-lime) 35%, var(--c-yellow) 65%, var(--c-pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Card fan */
.fan { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.fan .fan-card {
  position: absolute; width: 220px; aspect-ratio: 3/4;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.fan .fan-card svg { width: 100%; height: 100%; }
.fan.in .fan-card:nth-child(1) { transform: translateX(-190px) rotate(-10deg); }
.fan.in .fan-card:nth-child(2) { transform: translateX(-95px) rotate(-5deg); }
.fan.in .fan-card:nth-child(3) { transform: rotate(0); z-index: 2; }
.fan.in .fan-card:nth-child(4) { transform: translateX(95px) rotate(5deg); }
.fan.in .fan-card:nth-child(5) { transform: translateX(190px) rotate(10deg); }
.fan:not(.in) .fan-card { transform: translateY(30px); }

/* Timeline chips */
.time-chips { display: flex; gap: 20px; flex-wrap: wrap; }
.time-chip { border-radius: var(--radius); padding: 28px 34px; min-width: 210px; }
.time-chip .big { font-size: clamp(30px, 3vw, 44px); font-weight: 500; }
.time-chip .sub { font-size: var(--fs-small); margin-top: 4px; }

/* ---------- Contact form ---------- */
.form-label { display: block; font-size: var(--fs-small); font-weight: 700; margin-bottom: 14px; }
.pill-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.pill-checks label {
  cursor: pointer; font-size: var(--fs-small); font-weight: 500;
  padding: 10px 20px; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(18,10,89,.3);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  user-select: none;
}
.pill-checks input { display: none; }
.pill-checks label:has(input:checked) { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.field { margin-bottom: 30px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid rgba(18,10,89,.3);
  background: transparent; padding: 12px 2px; font: inherit; color: var(--c-ink);
  border-radius: 0; outline: none; transition: border-color var(--t-fast);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--c-ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--c-ink-light); }
.form-note { font-size: var(--fs-xs); color: var(--c-ink-light); margin: 20px 0 28px; }
.form-ok {
  display: none; padding: 20px 24px; border-radius: var(--radius);
  background: var(--c-lime); color: var(--c-ink); font-weight: 500;
}
.form-ok.show { display: block; }

/* ---------- Counters ---------- */
.count { font-variant-numeric: tabular-nums; }

/* ---------- Diagram cycle (services hero) ---------- */
.cycle-wrap { display: flex; justify-content: center; }
.cycle-wrap svg { width: min(520px, 90%); height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .showcase-inner { grid-template-columns: 1fr; }
  .showcase-list { padding: 32px; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .showcase-stage { min-height: 380px; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 40px; }
  .hero-stream { height: 420px; margin-top: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr; }
  .value-item:nth-child(odd) { border-right: 0; padding-right: 0; }
  .value-item:nth-child(even) { padding-left: 0; }
  .svc-row { grid-template-columns: 1fr; }
  .blob-cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .checklist { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .quotes { min-height: 440px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .fan .fan-card { width: 160px; }
  .fan.in .fan-card:nth-child(1) { transform: translateX(-120px) rotate(-10deg); }
  .fan.in .fan-card:nth-child(2) { transform: translateX(-60px) rotate(-5deg); }
  .fan.in .fan-card:nth-child(4) { transform: translateX(60px) rotate(5deg); }
  .fan.in .fan-card:nth-child(5) { transform: translateX(120px) rotate(10deg); }
}

/* ---------- Team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card .pic { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/6; }
.team-card .pic svg { width: 100%; height: 100%; }
.team-card .meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 14px; }
.team-card .meta .name { font-weight: 700; }
.team-card .meta .role { color: var(--c-ink-light); font-size: var(--fs-small); }
.team-card .meta .arr { width: 28px; height: 28px; border-radius: 50%; background: var(--c-lime); color: var(--c-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.team-card .meta .arr svg { width: 12px; height: 12px; }
.team-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.team-mini .cell { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.team-mini .cell svg { width: 100%; height: 100%; }
@media (max-width: 820px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Portfolio grid ---------- */
.folio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.folio-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; display: flex; align-items: flex-end; padding: 22px; color: #fff; isolation: isolate; transition: transform var(--t-med), box-shadow var(--t-med); }
.folio-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(18,10,89,.18); }
.folio-card .bg { position: absolute; inset: 0; z-index: -2; }
.folio-card .bg svg { width: 100%; height: 100%; }
.folio-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(26,26,26,.72) 0%, rgba(26,26,26,0) 45%); }
.folio-card h3 { font-size: var(--fs-body-xl); font-weight: 500; }
.folio-card .go { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--c-lime); color: var(--c-ink); display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform var(--t-med); }
.folio-card:hover .go { transform: scale(1); }
@media (max-width: 820px) { .folio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .folio-grid { grid-template-columns: 1fr; } }

/* ---------- Portfolio detail ---------- */
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.detail-head h1 { font-size: clamp(38px, 4.6vw, 64px); }
.detail-meta { font-size: var(--fs-small); display: grid; gap: 6px; }
.detail-meta .row { display: flex; align-items: center; gap: 8px; }
.detail-meta .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-brand); flex: none; }
.detail-art { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.detail-art svg { width: 100%; height: auto; display: block; }
.pill-tag { display: inline-block; font-size: var(--fs-small); font-weight: 500; background: var(--c-blue); color: var(--c-ink); padding: 8px 18px; border-radius: var(--radius-pill); margin-bottom: 28px; }
.bigbody { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; line-height: 1.42; max-width: 30ch; }
.detail-quote { display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: start; max-width: 760px; margin: 0 auto; }
.detail-quote .ava { width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 700; color: var(--c-ink); }
.detail-quote blockquote { font-size: clamp(19px, 1.9vw, 25px); font-weight: 500; line-height: 1.45; margin-bottom: 18px; }
.detail-quote .who { font-size: var(--fs-small); color: var(--c-ink-light); }
.detail-quote .who .nm { color: var(--c-ink); font-weight: 700; }
@media (max-width: 640px) { .detail-quote { grid-template-columns: 1fr; } .detail-quote .ava { width: 72px; height: 72px; font-size: 26px; } }
.collab { border-radius: 0; }
.collab .cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin-top: 44px; }
.collab .ccard { border-radius: var(--radius); padding: 28px; min-height: 320px; }
.collab .ccard h3 { font-size: var(--fs-body-l); margin-bottom: 22px; }
.collab .ccard p { font-size: var(--fs-small); line-height: 1.6; }
.collab .ccard .squig { margin-bottom: 26px; }
@media (max-width: 820px) { .collab .cards { grid-template-columns: 1fr; } }

/* ---------- Insight cards ---------- */
.insight-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card { display: block; }
.insight-card .chipline { margin-bottom: 12px; }
.insight-card .chipline span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--c-blue); color: var(--c-ink); padding: 5px 12px; border-radius: var(--radius-pill); }
.insight-card .pic { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; margin-bottom: 14px; }
.insight-card .pic svg { width: 100%; height: 100%; transition: transform .5s ease; }
.insight-card:hover .pic svg { transform: scale(1.04); }
.insight-card h3 { font-size: var(--fs-body-s); font-weight: 500; line-height: 1.35; }
.insight-row.two { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
@media (max-width: 820px) { .insight-row, .insight-row.two { grid-template-columns: 1fr; } }

/* ---------- Newsletter (demo) ---------- */
.newsletter { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 14px; border-bottom: 1.5px solid rgba(255,255,255,.6); padding-bottom: 10px; }
.newsletter input { flex: 1; background: transparent; border: 0; outline: none; color: #fff; font: inherit; padding: 8px 2px; }
.newsletter input::placeholder { color: rgba(255,255,255,.65); }
.newsletter button { width: 34px; height: 34px; border-radius: 50%; background: var(--c-lime); color: var(--c-ink); display: flex; align-items: center; justify-content: center; flex: none; transition: transform var(--t-fast); }
.newsletter button:hover { transform: rotate(45deg); }
.newsletter-ok { display: none; margin-top: 16px; font-size: var(--fs-small); color: var(--c-lime); }

/* ---------- Opportunity storytelling ---------- */
.opp-hero { min-height: 92dvh; display: flex; flex-direction: column; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.opp-globe { width: min(560px, 80vw); margin: 40px auto 0; }
.story-beat { min-height: 62vh; display: flex; align-items: center; }
.story-beat .inner { max-width: 720px; margin: 0 auto; text-align: center; }
.story-beat h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 500; line-height: 1.25; margin-bottom: 20px; }
.story-beat p { color: rgba(255,255,255,.65); font-size: var(--fs-body-s); line-height: 1.65; }
