/* ==========================================================================
   NEXUS Agency — theme thiet ke web
   HTML/CSS/JS thuan. Khong build tool.
   ========================================================================== */

/* --- 1. Token ------------------------------------------------------------ */
:root {
  --ink:        #0b0e14;
  --ink-soft:   #151a24;
  --ink-line:   #232936;
  --paper:      #ffffff;
  --paper-2:    #f6f7fb;
  --paper-3:    #eef0f7;
  --line:       #e3e6ef;
  --text:       #171b26;
  --muted:      #62697c;
  --muted-2:    #8a91a3;

  --brand:      #4f46e5;
  --brand-2:    #7c3aed;
  --brand-3:    #06b6d4;
  --brand-soft: #eef0ff;

  --grad:       linear-gradient(115deg, #4f46e5 0%, #7c3aed 48%, #06b6d4 100%);
  --grad-soft:  linear-gradient(115deg, rgba(79,70,229,.10), rgba(6,182,212,.10));

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(11,14,20,.06), 0 2px 8px rgba(11,14,20,.04);
  --shadow:    0 8px 30px rgba(11,14,20,.08);
  --shadow-lg: 0 24px 60px rgba(11,14,20,.14);

  --wrap: 1200px;
  --gut:  24px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
}
p { margin: 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- 3. Layout ----------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section        { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt   { background: var(--paper-2); }
.section--dark  { background: var(--ink); color: #cfd4e2; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.grid { display: grid; gap: 28px; }
.g-2  { grid-template-columns: repeat(2, 1fr); }
.g-3  { grid-template-columns: repeat(3, 1fr); }
.g-4  { grid-template-columns: repeat(4, 1fr); }

/* --- 4. Chu ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--brand-3); }

.h-xl { font-size: clamp(38px, 6.4vw, 76px); letter-spacing: -.035em; }
.h-lg { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -.03em; }
.h-md { font-size: clamp(24px, 2.6vw, 34px); }
.h-sm { font-size: clamp(19px, 1.6vw, 22px); }

.lead {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--muted);
  max-width: 62ch;
}
.section--dark .lead { color: #a8b0c4; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .lead { margin-inline: auto; }
.sec-head .lead { margin-top: 18px; }

.sec-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}

/* --- 5. Nut -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--grad);
  background-size: 160% 100%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(79,70,229,.32);
}
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 14px 34px rgba(79,70,229,.42); }

.btn--ghost {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.section--dark .btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--sm { padding: 10px 20px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--brand);
}
.link-arrow::after {
  content: '→';
  transition: transform .3s var(--ease);
}
.link-arrow:hover::after { transform: translateX(5px); }

/* --- 6. Header ----------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-head.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.03em;
  color: var(--ink);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(79,70,229,.35);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--paper-3); }
.nav a.is-active { color: var(--ink); font-weight: 600; }
.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.head-actions { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: background-color .2s;
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- 7. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 128px);
  background: var(--ink);
  color: #cfd4e2;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(48% 60% at 22% 30%, rgba(79,70,229,.42), transparent 68%),
    radial-gradient(42% 55% at 78% 22%, rgba(6,182,212,.30), transparent 66%),
    radial-gradient(40% 50% at 55% 78%, rgba(124,58,237,.28), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 2; }

.hero h1 { color: #fff; margin-bottom: 22px; }
.hero .lead { color: #a8b0c4; font-size: clamp(17px, 1.5vw, 20px); }
.hero .eyebrow { color: var(--brand-3); }

.hero-inner { max-width: 880px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 13.5px;
  color: #c3cade;
  margin-bottom: 26px;
}
.hero-badge b {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Hero phu cho trang trong */
.page-hero {
  background: var(--ink);
  color: #cfd4e2;
  padding-block: clamp(56px, 7vw, 92px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: -60% -20% auto 40%;
  height: 460px;
  background: radial-gradient(45% 55% at 60% 40%, rgba(79,70,229,.38), transparent 70%),
              radial-gradient(40% 50% at 30% 60%, rgba(6,182,212,.24), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.page-hero > .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #a8b0c4; margin-top: 18px; }

.crumb {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.crumb a:hover { color: #fff; }
.crumb span { opacity: .5; }

/* --- 8. Stats ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: clamp(48px, 6vw, 76px);
}
.stat { background: var(--ink); padding: 30px 26px; }
.stat-num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
}
.stat-num em { font-style: normal; color: var(--brand-3); }
.stat-label { margin-top: 10px; font-size: 14.5px; color: #98a0b6; }

/* --- 9. Card ------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.card-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand);
  display: block;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 12px; font-size: 21px; }
.card p  { color: var(--muted); font-size: 15.5px; }
.card .link-arrow { margin-top: 20px; }

.card--service {
  padding-top: 34px;
  overflow: hidden;
}
.card--service::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.card--service:hover::before { transform: scaleX(1); }

/* --- 10. Portfolio ------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.chip {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: all .25s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.work {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-3);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work.is-hidden { display: none; }

.work-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.work:hover .work-media img { transform: scale(1.06); }

.work-body { padding: 22px 24px 26px; background: var(--paper); }
.work-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.work-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.work-meta .year { color: var(--muted-2); font-weight: 500; }
.work-body h3 { font-size: 20px; margin-bottom: 8px; }
.work-body p  { color: var(--muted); font-size: 15px; }
.work-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  font-size: 0;
  color: transparent;
}

/* --- 11. Process --------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.step {
  background: var(--paper);
  padding: 32px 30px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  transition: background-color .3s;
}
.step:hover { background: var(--paper-2); }
.step-n {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p  { color: var(--muted); font-size: 15.5px; max-width: 82ch; }

/* --- 12. About ----------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 4 / 3.2;
  position: relative;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.vm {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  background: var(--paper);
}
.vm h3 { font-size: 20px; margin-bottom: 12px; }
.vm p  { color: var(--muted); font-size: 15.5px; }

.vm--stat h3 {
  font-size: clamp(32px, 3.2vw, 42px);
  letter-spacing: -.04em;
  margin-bottom: 6px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vm--stat p { font-size: 14.5px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { text-align: left; }
.member-photo {
  aspect-ratio: 1 / 1.12;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-3);
  margin-bottom: 18px;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member:hover .member-photo img { transform: scale(1.05); }
.member h4 { font-size: 18px; margin-bottom: 4px; }
.member-role { color: var(--brand); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.member-bio  { color: var(--muted); font-size: 14.5px; }

/* --- 13. Blog ------------------------------------------------------------ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  height: 100%;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.post-cat { color: var(--brand); font-weight: 600; }
.post-body h3 { font-size: 19px; margin-bottom: 10px; }
.post-body p  { color: var(--muted); font-size: 15px; flex: 1; }
.post-body .link-arrow { margin-top: 18px; }
.post-link { position: absolute; inset: 0; z-index: 3; font-size: 0; color: transparent; }

/* --- 14. Trang chi tiet -------------------------------------------------- */
.detail { max-width: 860px; margin-inline: auto; }
.detail-hero-img {
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-block: 40px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--paper-3);
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  margin-bottom: 40px;
}
.detail-meta li  { font-size: 16px; font-weight: 600; color: var(--ink); }
.detail-meta .k  { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 5px; }

.prose { font-size: 17px; line-height: 1.8; color: #2c3242; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 28px; margin-top: 44px; }
.prose h3 { font-size: 22px; margin-top: 34px; }
.prose ul, .prose ol { padding-left: 22px; list-style: disc; color: #2c3242; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose img { border-radius: var(--r); margin-block: 32px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 34px 0;
  padding: 22px 28px;
  border-left: 3px solid var(--brand);
  background: var(--paper-2);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 18px;
  color: var(--ink);
}
.prose strong { color: var(--ink); font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.gallery img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4/3; object-fit: cover; background: var(--paper-3); }

.features { display: grid; gap: 14px; margin-top: 8px; }
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  font-size: 16px;
  font-weight: 500;
}
.feature::before {
  content: '✓';
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

/* --- 15. Lien he --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.info-list { display: grid; gap: 4px; margin-top: 32px; }
.info-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-ico {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.info-item > span:last-child { display: block; min-width: 0; }
.info-k { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.info-v { display: block; font-size: 16.5px; font-weight: 600; color: var(--ink); word-break: break-word; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .req { color: #e11d48; }

.input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--muted-2); }
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
textarea.input { resize: vertical; min-height: 128px; }
select.input { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2362697c' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }

.form-note { font-size: 13.5px; color: var(--muted-2); margin-top: 14px; }

.form-msg {
  margin-top: 18px;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-sm);
}
.form-msg:not(:empty) { padding: 14px 18px; background: var(--brand-soft); color: var(--brand); }

.map-frame {
  margin-top: 44px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 21 / 8;
  background: var(--paper-3);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- 16. CTA band -------------------------------------------------------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 76px);
  background: var(--ink);
  color: #cfd4e2;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 420px;
  background: radial-gradient(45% 60% at 50% 50%, rgba(79,70,229,.5), transparent 70%),
              radial-gradient(40% 55% at 80% 40%, rgba(6,182,212,.3), transparent 70%);
  filter: blur(8px);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band .lead { color: #a8b0c4; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }

/* --- 17. Footer ---------------------------------------------------------- */
.site-foot {
  background: var(--ink);
  color: #98a0b6;
  padding-block: clamp(52px, 6vw, 78px) 32px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--ink-line);
}
.foot-brand .brand { color: #fff; margin-bottom: 18px; }
.foot-desc { font-size: 15px; max-width: 34ch; margin-bottom: 22px; }
.foot-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.foot-col li + li { margin-top: 11px; }
.foot-col a { font-size: 15px; transition: color .2s; }
.foot-col a:hover { color: #fff; }

.foot-contact li { display: flex; gap: 9px; font-size: 15px; margin-bottom: 11px; }
.foot-contact .ic { flex: none; opacity: .55; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--ink-line);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  transition: all .25s;
}
.socials a:hover { background: #fff; color: var(--ink); border-color: #fff; }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 14px;
}

/* --- 18. Reveal ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- 19. Responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
  .g-4, .team-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .post-grid, .g-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .head-in { height: 66px; }
  .burger { display: grid; }
  .nav {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px var(--gut) 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all .3s var(--ease);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 14px; font-size: 16.5px; border-radius: var(--r-sm); }
  .nav a.is-active::after { display: none; }
  .head-actions .btn { display: none; }
  .split, .vm-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .detail-meta { gap: 24px; }
}

@media (max-width: 640px) {
  :root { --gut: 18px; }
  .g-2, .g-3, .g-4, .work-grid, .post-grid, .team-grid, .stats,
  .form-grid, .gallery { grid-template-columns: 1fr; }
  .sec-head--split { flex-direction: column; align-items: flex-start; gap: 20px; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .card, .vm, .form-card { padding: 24px; }
  .foot-top { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
