/* ---------- Section headers ---------- */
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--last { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: end; gap: 1rem 2.5rem; margin-bottom: 1.5rem; }
.sec-head--inline { grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; }
.sec-title { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.sec-title--sm { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: .6rem; }
.sec-title--spaced { margin-top: 3rem; }
.sec-text { margin: 0; color: var(--steel); font-size: .92rem; max-width: 40em; }
.more-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--orange-deep); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }
.more-link .ico { width: 1rem; height: 1rem; }
@media (max-width: 860px) { .sec-head, .sec-head--inline { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Art fallback when HR has not uploaded a photo yet ---------- */
.art { position: relative; background: var(--night); overflow: hidden; }
.art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
.art::after { content: ""; position: absolute; width: 55%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); right: -12%; bottom: -40%; opacity: .9; }
.art--people::after { right: auto; left: -10%; bottom: -45%; width: 60%; }
.art__mark { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }

/* ---------- Services ---------- */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.svc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.svc:hover { border-color: #F6B48E; box-shadow: 0 16px 34px -22px rgba(14,26,43,.45); }
.svc__media { aspect-ratio: 16 / 9; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__media--art { position: relative; background: var(--night); overflow: hidden; }
.svc__media--art::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); right: -20%; bottom: -60%; }
.svc__body { position: relative; padding: 1.6rem 1.25rem 1.4rem; flex: 1; }
.svc__icon { position: absolute; top: -1.6rem; left: 1.1rem; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; background: #fff; border-radius: 8px; color: var(--orange); box-shadow: 0 6px 16px -8px rgba(14,26,43,.35); }
.svc__icon .ico { width: 1.9rem; height: 1.9rem; }
.svc h3 { font-size: 1.15rem; margin: .9rem 0 .7rem; padding-right: 2.5rem; }
.svc h3 a { color: var(--night); text-decoration: none; }
.svc h3 a:hover { color: var(--orange-deep); }
.svc p { color: var(--steel); margin: 0; font-size: .9rem; }
.round-arrow { position: absolute; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1.5px solid var(--orange); color: var(--orange-deep); background: #fff; text-decoration: none; transition: background .15s, color .15s; }
.round-arrow .ico { width: 1.05rem; height: 1.05rem; }
.round-arrow:hover { background: var(--orange-btn); border-color: var(--orange-btn); color: var(--on-orange); }
.svc .round-arrow { top: -1.15rem; right: 1rem; }
.diamond-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.diamond-list li { position: relative; padding-left: 1.1rem; font-size: .9rem; color: var(--night); }
.diamond-list li::before { content: ""; position: absolute; left: .1rem; top: .55em; width: .38rem; height: .38rem; background: var(--orange); transform: rotate(45deg); }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Technology cards ---------- */
.tech-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tech-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.tech-card__head { margin: 0; display: flex; align-items: center; gap: .6rem; padding: .85rem 1.1rem; font-size: .95rem; font-weight: 600; color: #fff; background: linear-gradient(100deg, var(--night) 0%, var(--night-2) 70%, #2B3F5E 100%); }
.tech-card__head .ico { color: #fff; width: 1.3rem; height: 1.3rem; }
.tech-card__items { list-style: none; margin: 0; padding: 1rem 1.1rem 1.15rem; display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.tech-card__items li { font-weight: 700; font-size: .95rem; color: var(--night); }
.tech-card__items li + li::before { content: ""; display: inline-block; width: 1px; height: .9em; background: var(--line); margin-right: .9rem; vertical-align: -1px; }
@media (max-width: 1000px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.case-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.case__media { position: relative; aspect-ratio: 21 / 9; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__badge { position: absolute; left: 1rem; bottom: 0; z-index: 2; padding: .35rem .8rem; background: var(--orange-btn); color: var(--on-orange); font-size: .8rem; font-weight: 600; border-radius: 4px 4px 0 0; }
.case__badge--static { position: static; display: inline-block; border-radius: 4px; }
.case__body { position: relative; padding: 1.1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.case h3 { font-size: 1.08rem; margin: 0 2.8rem .9rem 0; line-height: 1.35; }
.case h3 a { color: var(--night); text-decoration: none; }
.case h3 a:hover { color: var(--orange-deep); }
.case .round-arrow { top: -1.15rem; right: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.tags li { padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 4px; font-size: .78rem; color: var(--night); background: var(--bg); }
.tags--dark { margin-top: 1.25rem; }
.tags--dark li { background: var(--night-2); border-color: transparent; color: #fff; }
.tags--lg { margin: 0 0 1.5rem; }
.tags--lg li { font-size: .88rem; padding: .35rem .8rem; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- Consultation band ---------- */
.cta { position: relative; overflow: hidden; color: #fff; background: linear-gradient(100deg, var(--orange-deep) 0%, #7A3E00 38%, var(--night) 100%); }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; mix-blend-mode: luminosity; }
.cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) auto; align-items: center; gap: 1.5rem 2.5rem; padding-top: 2.25rem; padding-bottom: 2.25rem; }
.cta h2 { margin: 0 0 .5rem; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.2; }
.cta p { margin: 0; color: rgba(255,255,255,.88); font-size: .95rem; max-width: 34em; }
.cta__points { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.cta__points li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; }
.cta__points .ico { width: 1.6rem; height: 1.6rem; color: var(--orange); }
@media (max-width: 900px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------- Two-up blocks (about video / people, news / careers) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.duo__item { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.25rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem; }
.duo__text p:not(.label) { color: var(--steel); font-size: .92rem; margin: 0 0 1.1rem; }   /* .label (ABOUT US, AWARDS…) keeps the orange eyebrow style, same as NEWS & EVENTS */
.duo__media { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; }
.duo__media img { width: 100%; height: 100%; object-fit: cover; }
.duo__item--news { grid-template-columns: 1fr; align-items: start; }
.duo__item--news .sec-head { margin-bottom: .9rem; }
.news-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.news-mini a { display: grid; grid-template-columns: 4.5rem 1fr; gap: .65rem; color: inherit; text-decoration: none; }
.news-mini img, .news-mini__ph { width: 4.5rem; height: 3.6rem; object-fit: cover; border-radius: 6px; }
.news-mini__ph { display: block; }
.news-mini__ph::before { display: none; }
.news-mini__ph::after { width: 90%; right: -30%; bottom: -60%; }
.news-mini span { display: flex; flex-direction: column; min-width: 0; }
.news-mini time { font-size: .72rem; color: var(--steel); }
.news-mini strong { font-size: .84rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-mini small { font-size: .74rem; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-mini a:hover strong { color: var(--orange-deep); }
@media (max-width: 1000px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .duo__item { grid-template-columns: 1fr; } .news-mini { grid-template-columns: 1fr; } }
.duo__media--video { background: #000; }
.duo__media--video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---- Sliding photo strip: site.js clones the set and moves the track with requestAnimationFrame (not a CSS
   animation, which the global prefers-reduced-motion reset in 04-forms.css would switch off) ---- */
.gallery-band { padding: clamp(1.75rem, 4vw, 3rem) 0; overflow: hidden; }
.gallery-band__viewport { overflow-x: auto; scrollbar-width: none; outline-offset: 4px; }
.gallery-band__viewport::-webkit-scrollbar { display: none; }
.gallery-band__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: clamp(.9rem, 1.6vw, 1.5rem); width: max-content; }
.gallery-band__item { flex: 0 0 auto; width: clamp(230px, 20vw, 340px); aspect-ratio: 5 / 3; border-radius: 12px; overflow: hidden; background: var(--line); box-shadow: 0 6px 18px rgba(14, 24, 42, .08); }
.gallery-band__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-band { display: grid; gap: clamp(.9rem, 1.6vw, 1.5rem); }
.gallery-band__row.is-running .gallery-band__viewport { overflow: hidden; }
.gallery-band__row.is-running .gallery-band__track { padding-left: 0; will-change: transform; }
.gallery-band:last-child { padding-bottom: clamp(2.25rem, 5vw, 3.5rem); }

/* card rows: no section padding between them (the gap is set below) */
.section--duo:has(+ .section--duo), #technology:has(+ .section--duo) { padding-bottom: 0; }

/* 1.22 – every gap between home blocks equals the Dịch vụ → Công nghệ gap (services .section bottom padding +
   tech .section--tight top padding), so Công nghệ → Giới thiệu, Giới thiệu → Hàng 2 → Tin tức and Tin tức → dải ảnh match it. */
:root { --home-gap: calc(clamp(1rem, 2vw, 1.5rem) + clamp(2.25rem, 4vw, 3.25rem) + .55rem); }   /* #services bottom + #technology top (90-refinements) + label offset */
.section--duo + .section--duo, #technology + .section--duo { padding-top: var(--home-gap); }
.section--last:has(+ .gallery-band) { padding-bottom: 0; }
.section--last + .gallery-band { padding-top: var(--home-gap); }
/* 1.27: Công nghệ hidden → Dịch vụ is followed directly by the card rows; keep the same --home-gap */
#services:has(+ .section--duo) { padding-bottom: 0; }
#services + .section--duo { padding-top: var(--home-gap); }
