/* ===========================================================
   ASTRA VISUAL (China) — 深圳市顺宸科技有限公司
   Stylesheet. System fonts only (Google Fonts is not reachable
   from mainland China).
   =========================================================== */

:root {
  --navy: #12324f;
  --navy-deep: #0c2438;
  --navy-2: #2d4f67;
  --accent: #a3462f;
  --accent-light: #c26248;
  --leaf: #4c7a45;
  --text: #2b3440;
  --muted: #5d6874;
  --muted-light: #8794a1;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --border: #e4e8ec;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(18, 50, 79, 0.08);
  --shadow-hover: 0 18px 44px rgba(18, 50, 79, 0.16);
  --container: 1200px;
  --ff-zh: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --ff-en: "Segoe UI", "Helvetica Neue", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-zh);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--ff-en); line-height: 1.7; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--navy); line-height: 1.3; text-wrap: balance; }
p { margin: 0 0 1em; color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

/* ---------- language visibility ---------- */
/* !important: language nodes sit inside elements with their own display rules. */
[data-en] { display: none !important; }
html[lang="en"] [data-zh] { display: none !important; }
html[lang="en"] [data-en] { display: inline !important; }
html[lang="en"] h1[data-en], html[lang="en"] h2[data-en], html[lang="en"] h3[data-en],
html[lang="en"] h4[data-en], html[lang="en"] p[data-en], html[lang="en"] div[data-en],
html[lang="en"] li[data-en] { display: block !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
  letter-spacing: 0.02em; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy-deep); color: #b9c8d6; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; gap: 12px; }
.topbar-info { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar-info a:hover { color: #fff; }
.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,.08); border-radius: 20px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; color: #b9c8d6; padding: 4px 14px; border-radius: 20px;
  cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit; transition: background .2s, color .2s;
}
.lang-switch button.active { background: var(--accent); color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand .mark { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; width: 10.4rem; line-height: 1.25; }
.brand-text .en-name { font-family: var(--ff-en); font-weight: 800; font-size: 18px; color: var(--navy); letter-spacing: .14em; }
.brand-text .co-name { font-size: 12px; color: var(--muted-light); letter-spacing: .02em; }
.brand-text .co-name[data-en] {
  width: 100%;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
.brand-text .co-name[data-zh] {
  width: 100%;
  font-weight: 700;
  color: #526377;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { position: relative; padding: 10px 15px; font-weight: 600; font-size: 14.5px; color: var(--text); transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 100%); color: #fff; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 130px; }
.hero .eyebrow { display: inline-block; color: #e2937c; font-weight: 700; letter-spacing: .16em; font-size: 12.5px; margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.25; margin-bottom: 22px; }
.hero p.lead { color: #c8d6e3; font-size: 16.5px; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.hero-visual::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); }
.hero-visual img { position: relative; }

/* ---------- highlight cards ---------- */
.highlights { margin-top: -74px; position: relative; z-index: 3; padding: 0; }
.highlights .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.highlight-card { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.highlight-card h3 { font-size: 19px; margin-bottom: 10px; }
.highlight-card p { margin: 0; font-size: 14.5px; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow-dark { display: block; color: var(--accent); font-weight: 700; letter-spacing: .16em; font-size: 12.5px; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 16px; }
.section-head p { font-size: 15.5px; margin: 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-grid h2 { font-size: clamp(25px, 3vw, 34px); margin: 0 0 20px; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--border); }
.stat { padding: 22px 12px 4px; border-inline-start: 1px solid var(--border); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat .num { font-size: 34px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media.contain { background: linear-gradient(160deg, #f7f9fb, #e9eef3); padding: 18px; }
.card-media.contain img { object-fit: contain; }
.card:hover .card-media.contain img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 18px; }
.card-body p { font-size: 14px; margin: 0; }
.kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.center-cta { text-align: center; margin-top: 48px; }

/* ---------- filter tabs ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 40px; }
.filters button {
  border: 1px solid var(--border); background: #fff; color: var(--text); padding: 8px 20px; border-radius: 30px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .2s;
}
.filters button:hover { border-color: var(--navy); color: var(--navy); }
.filters button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-cat][hidden] { display: none !important; }

/* ---------- projects ---------- */
.project-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow); background: var(--navy); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover img { transform: scale(1.07); }
.project-card .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,36,56,.94) 0%, rgba(12,36,56,.2) 52%, rgba(12,36,56,0) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; gap: 4px; }
.project-card .cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #e2937c; font-weight: 700; }
.project-card h4 { color: #fff; font-size: 17px; }
.project-card .spec { font-size: 13px; color: #c8d6e3; line-height: 1.5; }

/* ---------- testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px; }
.testimonial .quote { font-size: 14.5px; margin: 0; flex: 1; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--ff-en); flex-shrink: 0; }
.testimonial .name { font-weight: 700; color: var(--navy); font-size: 14.5px; display: block; }
.testimonial .role { font-size: 12.5px; color: var(--muted-light); display: block; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-grid.two { grid-template-columns: repeat(2, 1fr); }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-card .card-media { aspect-ratio: 16/10; }
.news-card .card-body { padding: 20px 22px 24px; }
.news-card .date { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .05em; }
.news-card h4 { font-size: 17px; line-height: 1.5; }
.news-card p { font-size: 14px; margin: 0; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 8px 26px 8px 0; position: relative; }
.step + .step { padding-inline-start: 26px; border-inline-start: 1px solid var(--border); }
.step .n { font-family: var(--ff-en); font-weight: 800; font-size: 34px; color: var(--accent); line-height: 1; margin-bottom: 14px; display: block; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(115deg, var(--navy-deep), var(--navy-2)); color: #fff; text-align: center; padding: 84px 0; }
.cta-band h2 { color: #fff; font-size: clamp(25px, 3vw, 34px); margin-bottom: 14px; }
.cta-band p { color: #c8d6e3; max-width: 560px; margin: 0 auto 30px; }

/* ---------- page banner ---------- */
.page-banner { background: linear-gradient(115deg, var(--navy-deep), var(--navy)); color: #fff; padding: 64px 0 60px; text-align: center; }
.page-banner h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.breadcrumb { font-size: 13.5px; color: #b9c8d6; }
.breadcrumb a:hover { color: #fff; }

/* ---------- mission / vision ---------- */
.mv-card { background: #fff; border-radius: var(--radius); padding: 38px 36px; box-shadow: var(--shadow); }
.mv-card h3 { font-size: 22px; margin: 6px 0 14px; }
.mv-card p:last-child { margin: 0; }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-info { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 40px 34px; }
.contact-info h3 { color: #fff; font-size: 21px; margin-bottom: 26px; }
.contact-info li { display: flex; gap: 16px; margin-bottom: 24px; font-size: 14.5px; color: #c8d6e3; }
.contact-info li:last-child { margin-bottom: 0; }
.contact-info strong { display: block; color: #fff; margin-bottom: 2px; }
.contact-info a:hover { color: #fff; text-decoration: underline; }
.ic { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.ic svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 36px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 22px; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 14.5px; color: var(--text); background: var(--bg-alt); transition: border-color .2s, background .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--navy); background: #fff; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: var(--muted-light); margin: 12px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9b9c8; padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 44px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 20px; }
.footer-grid p { font-size: 13.5px; color: #93a5b6; max-width: 340px; }
.site-footer .brand { margin-bottom: 18px; }
.site-footer .brand-text .en-name { color: #fff; }
.site-footer .brand-text { width: auto; }
.footer-links li { margin-bottom: 12px; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-contact li { margin-bottom: 14px; font-size: 13.5px; display: flex; gap: 10px; }
.footer-bottom { padding: 22px 0; font-size: 12.5px; color: #71869a; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- mobile nav ---------- */
.mobile-nav { position: fixed; inset: 0; background: var(--navy-deep); z-index: 300; color: #fff; display: none; flex-direction: column; padding: 24px; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav .close-btn { align-self: flex-end; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; }
.mobile-nav a { display: block; padding: 16px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 10px 10px; font-size: 14px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .brand-text .co-name { display: none; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 120px; gap: 44px; }
  .hero-visual::before { display: none; }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .testimonial-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .step:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .brand-text .co-name { display: block; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2, .testimonial-grid, .news-grid, .news-grid.two { grid-template-columns: 1fr; }
  .grid-4.compact { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .header-cta .btn { display: none; }
  .topbar-info a + span, .topbar-info span + span { display: none; }
  .brand-text .co-name { display: none; }
  .contact-form, .contact-info, .mv-card { padding: 30px 24px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 0; border: 0; }
}

/* 2026 cinematic art direction: real projects, brand colour, restrained motion */
.hero-cinematic {
  position: relative;
  isolation: isolate;
  min-height: min(790px, 88svh);
  padding: 0;
  display: flex;
  align-items: stretch;
  background: var(--navy-deep);
}
.hero-scenes, .hero-shade, .hero-scene { position: absolute; inset: 0; }
.hero-scenes { z-index: -2; overflow: hidden; }
.hero-scene {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.055);
  transition: opacity 1.25s ease, transform 8.5s ease;
}
.hero-scene.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(5,24,39,.93) 0%, rgba(8,29,46,.79) 39%, rgba(8,29,46,.28) 76%),
              linear-gradient(0deg, rgba(6,24,38,.84) 0%, transparent 45%);
}
.hero-cinematic .hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding-top: clamp(110px, 15vh, 160px);
  padding-bottom: 70px;
  position: relative;
}
.hero-copy { max-width: 850px; animation: heroEnter .9s ease both; }
.hero-cinematic .eyebrow {
  color: #e6a58e;
  font-size: 13px;
  letter-spacing: .18em;
  border-left: 3px solid var(--leaf);
  padding-left: 15px;
  margin-bottom: 24px;
}
.hero-cinematic h1 {
  font-size: clamp(48px, 6.7vw, 100px);
  line-height: 1.1;
  max-width: 950px;
  letter-spacing: -.035em;
  margin-bottom: 24px;
  text-shadow: 0 3px 26px rgba(0,0,0,.16);
}
.hero-cinematic .hero-period { color: #cc7052; }
.hero-cinematic p.lead {
  max-width: 590px;
  color: #e0e8ed;
  font-size: clamp(16px, 1.35vw, 19px);
  margin-bottom: 33px;
}
.hero-cinematic .btn { min-height: 52px; }
.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,.3);
  padding-top: 22px;
  margin-top: 72px;
}
.hero-project-label { display: flex; align-items: baseline; gap: 19px; color: #fff; }
.hero-index { font: 700 15px var(--ff-en); color: #e6a58e; letter-spacing: .13em; white-space: nowrap; }
.hero-project-name { font-size: 15px; letter-spacing: .035em; }
.hero-controls { display: flex; gap: 8px; }
.hero-controls button {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.5);
  background: transparent; color: #fff;
  border-radius: 50%; cursor: pointer;
  font-size: 18px;
  transition: background .25s, border-color .25s, transform .25s;
}
.hero-controls button:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.hero-controls .hero-pause { font-size: 13px; }
.hero-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.18); }
.hero-progress span { display: block; height: 100%; width: 0; background: #c66c4d; }
.hero-cinematic.is-playing .hero-progress span { animation: heroTimer 7s linear forwards; }
@keyframes heroTimer { to { width: 100%; } }
@keyframes heroEnter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.highlights { margin-top: -34px; }
.highlights .container { gap: 1px; box-shadow: 0 24px 65px rgba(10,33,52,.14); }
.highlight-card { border-radius: 0; box-shadow: none; border-top: 3px solid var(--accent); padding: 30px 35px; }
.highlight-card:nth-child(2) { border-top-color: var(--leaf); }
.highlight-card:nth-child(3) { border-top-color: var(--navy-2); }
.highlight-card:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(10,33,52,.1); }
.highlight-card p { font-size: 15px; }
.home-products .section-head, .home-projects .section-head { max-width: 800px; }
.home-products .section-head h2, .home-projects .section-head h2 { font-size: clamp(32px, 3.5vw, 48px); }
.product-feature-grid { gap: 16px; }
.product-feature-grid .card { border-radius: 0; border: 0; background: #f4f6f8; }
.product-feature-grid .card-media { aspect-ratio: 1/1; }
.product-feature-grid .card-body { padding: 26px 24px 32px; }
.product-feature-grid .card-body h3 { font-size: 24px; }
.showcase-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 15px; }
.showcase-grid .project-card { aspect-ratio: 4/5; border-radius: 0; }
.showcase-grid .project-card:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 550px; }
.showcase-grid .project-card:last-child { grid-column: span 2; aspect-ratio: 2.1/1; }
.showcase-grid .project-card .overlay { padding: 28px; transition: background .3s; }
.showcase-grid .project-card:hover .overlay { background: linear-gradient(0deg, rgba(12,36,56,.96) 0%, rgba(12,36,56,.12) 85%); }
.showcase-grid .project-card h4 { font-size: 22px; }
.showcase-grid .project-card .spec { font-size: 14px; }
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 30vw; height: 30vw; border: 1px solid rgba(255,255,255,.09); transform: rotate(45deg); right: -12vw; top: -15vw; pointer-events: none; }
.js .reveal { transform: translateY(32px); transition-duration: .8s; }
.js .grid-3 > .reveal:nth-child(3n+2), .js .grid-4 > .reveal:nth-child(4n+2) { transition-delay: .08s; }
.js .grid-3 > .reveal:nth-child(3n+3), .js .grid-4 > .reveal:nth-child(4n+3) { transition-delay: .16s; }

@media (max-width: 960px) {
  .hero-cinematic { min-height: 710px; }
  .hero-cinematic .hero-inner { padding-top: 100px; padding-bottom: 58px; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-grid .project-card:first-child { grid-row: auto; min-height: 0; aspect-ratio: 4/5; }
  .showcase-grid .project-card:last-child { grid-column: auto; aspect-ratio: 4/5; }
}
@media (max-width: 640px) {
  .hero-cinematic { min-height: min(760px, 93svh); }
  .hero-cinematic .hero-inner { padding-top: 95px; padding-bottom: 38px; }
  .hero-cinematic h1 { font-size: clamp(44px, 11vw, 64px); }
  .hero-cinematic .lead { max-width: 100%; }
  .hero-shade { background: linear-gradient(90deg,rgba(5,24,39,.9),rgba(5,24,39,.5)),linear-gradient(0deg,rgba(5,24,39,.78),transparent 60%); }
  .hero-bottom { margin-top: 45px; align-items: flex-start; }
  .hero-project-label { flex-direction: column; gap: 3px; }
  .hero-controls button { width: 38px; height: 38px; }
  .hero-controls .hero-pause { display: none; }
  .highlights { margin-top: 0; }
  .highlights .container { gap: 0; }
  .highlight-card { border-top: 0; border-left: 3px solid var(--accent); }
  .highlight-card:nth-child(2) { border-left-color: var(--leaf); }
  .highlight-card:nth-child(3) { border-left-color: var(--navy-2); }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-grid .project-card, .showcase-grid .project-card:first-child, .showcase-grid .project-card:last-child { aspect-ratio: 4/3; min-height: 0; grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scene { transition: none; transform: none; }
  .hero-copy { animation: none; }
  .hero-cinematic.is-playing .hero-progress span { animation: none; }
  .js .reveal, .js .grid-3 > .reveal, .js .grid-4 > .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- global locations ---------- */
.footer-locations { padding: 44px 0 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-locations-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.section-kicker { display: block; color: var(--accent-light); font: 700 11px var(--ff-en); letter-spacing: .16em; margin-bottom: 8px; }
.footer-locations h2 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.saudi-site-link, .contact-saudi { display: inline-flex; align-items: center; color: #fff; border: 1px solid rgba(255,255,255,.38); padding: 10px 16px; font-size: 13px; font-weight: 600; transition: background .2s, border-color .2s; }
.saudi-site-link:hover, .contact-saudi:hover { background: var(--accent); border-color: var(--accent); }
.network-note { max-width: 740px !important; margin-bottom: 28px; font-size: 14px !important; line-height: 1.6; }
.footer-locations-grid, .contact-locations-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.location-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); padding: 22px; }
.location-card h3 { font-size: 16px; color: #fff; margin: 0 0 12px; line-height: 1.35; }
.location-card h3 a:hover { color: #e7a58b; }
.location-card .external-arrow { font-size: 13px; opacity: .6; }
.location-china .external-arrow { display: none; }
.location-address { overflow-wrap: anywhere; color: #b8c7d4 !important; font-size: 13px !important; line-height: 1.55; margin-bottom: 12px; }
.location-tax { color: #9fb2c3 !important; font-size: 12px !important; margin-bottom: 11px; overflow-wrap: anywhere; }
.location-phone { display: inline-flex; color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; margin-top: auto; }
.location-phone:hover { color: #e7a58b; }
.location-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.location-action { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.32); color: #e3edf4; font-size: 12px; font-weight: 600; }
.location-action:hover { background: #fff; color: var(--navy-deep); }
.footer-contact a:hover { color: #fff; }
.contact-info p { color: #d2dee8; line-height: 1.7; }
.contact-email { display: inline-block; color: #fff; font-weight: 700; overflow-wrap: anywhere; margin: 10px 0 22px; }
.contact-saudi { display: table; }
.contact-locations-section { background: var(--bg-alt); }
.contact-locations-section .section-head { margin-bottom: 30px; }
.contact-locations-section .section-head h2 { font-size: clamp(30px,3.4vw,44px); }
.contact-locations-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.contact-locations-grid .location-card { background: #fff; border-color: var(--border); box-shadow: var(--shadow); padding: 26px; }
.contact-locations-grid .location-card h3 { color: var(--navy); font-size: 20px; }
.contact-locations-grid .location-card h3 a:hover, .contact-locations-grid .location-phone:hover { color: var(--accent); }
.contact-locations-grid .location-address, .contact-locations-grid .location-tax { color: var(--muted) !important; }
.contact-locations-grid .location-phone { color: var(--navy); font-size: 17px; margin-top: 2px; }
.location-map { width: 100%; aspect-ratio: 2.2/1; margin-top: 18px; background: #dfe6eb; overflow: hidden; }
.location-map iframe { width: 100%; height: 100%; border: 0; }
.contact-locations-grid .location-action { color: var(--navy); border-color: #cdd7df; }
.contact-locations-grid .location-action:hover { color: #fff; background: var(--navy); }
@media (max-width: 960px) {
  .footer-locations-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .footer-locations-heading { display: block; }
  .saudi-site-link { margin-top: 18px; }
  .footer-locations-grid, .contact-locations-grid { grid-template-columns: 1fr; }
  .location-card { padding: 20px; }
  .contact-locations-grid .location-card { padding: 22px; }
  .location-map { aspect-ratio: 1.7/1; }
}

/* Compact footer country navigation. Full addresses remain on the contact page. */
.footer-locations { padding: 32px 0 38px; }
.footer-locations-heading { margin-bottom: 18px; }
.footer-locations h2 { font-size: 23px; }
.footer-country-row { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; }
.footer-country { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 13px; color: #f1f6f9; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.16); transition: background .2s,border-color .2s,transform .2s; }
.footer-country:hover { background: rgba(255,255,255,.12); border-color: #d8a28e; transform: translateY(-2px); }
.country-name { min-width: 0; font-size: 14px; font-weight: 650; line-height: 1.25; }
.country-icon { display: grid; place-items: center; flex: 0 0 22px; color: #d89980; }
.country-icon svg { width: 20px; height: 20px; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.35); color: #fff; font: 600 13px var(--ff-en); transition: background .2s,border-color .2s; }
.footer-whatsapp:hover { background: #218c60; border-color: #218c60; }
.footer-whatsapp svg { width: 20px; height: 20px; }
@media (max-width: 960px) { .footer-country-row { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .footer-country-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-country { padding: 11px 12px; }
  .footer-locations h2 { font-size: 22px; }
}

/* Refined footer proportions and legal details. */
.site-footer { padding-top: 48px; }
.footer-grid { grid-template-columns: 2.2fr .9fr .9fr 1.5fr; gap: 32px; padding-bottom: 34px; }
.footer-grid p { max-width: 420px; font-size: 13px; line-height: 1.7; }
.footer-links li { margin-bottom: 9px; }
.footer-contact li { margin-bottom: 9px; display: block; line-height: 1.6; overflow-wrap: anywhere; }
.footer-locations { padding: 26px 0 30px; }
.footer-locations-heading { display: block; text-align: center; margin-bottom: 15px; }
.footer-locations .section-kicker { margin-bottom: 5px; }
.footer-locations h2 { font-size: 22px; }
.footer-country-row { gap: 0; }
.footer-country { min-height: 48px; padding: 8px 12px; justify-content: center; gap: 10px; background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,.14); }
.footer-country:last-child { border-right: 0; }
.footer-country:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); transform: none; }
.country-name { font-size: 13.5px; }
.country-icon, .country-icon svg { width: 17px; height: 17px; flex-basis: 17px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 17px 0 20px; }
.footer-tax { white-space: nowrap; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr; }
  .footer-country:nth-child(3) { border-right: 0; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-locations { padding: 24px 0; }
  .footer-country { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .footer-bottom { display: block; }
  .footer-tax { display: block; margin-top: 7px; white-space: normal; }
}
