/* ============================================================
   SunshienTech / 赏夏科技 — Shared Design System
   Single source of truth implemented per SPEC.md §1–§7
   ============================================================ */

/* ----------------------------------------------------------------
   Self-hosted fonts (latin subset). Chinese glyphs fall through to
   PingFang SC / system per the font stacks below. Self-hosting keeps
   the display typography reliable for the mainland-China audience,
   where fonts.googleapis.com is frequently slow or blocked.
---------------------------------------------------------------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../assets/fonts/inter-400.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/inter-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/inter-600.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url('../assets/fonts/montserrat-500.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url('../assets/fonts/montserrat-600.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url('../assets/fonts/montserrat-700.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:url('../assets/fonts/montserrat-800.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ----------------------------------------------------------------
   §1  Design tokens
---------------------------------------------------------------- */
:root {
  --navy:        #0A2540;
  --navy-2:      #102E4F;
  --royal:       #046EB8;
  --blue:        #046EB8;
  --blue-dark:   #034E82;
  --blue-soft:   #EAF1FB;
  --gold:        #E9A93C;
  --gold-dark:   #D2902A;
  --ink:         #1A2332;
  --muted:       #5B6B7F;
  --bg:          #FFFFFF;
  --bg-alt:      #F4F7FB;
  --line:        #E3E8EF;
  --card-gray:   #E7EAEF;
  --radius:      12px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 10px rgba(16,46,79,.06);
  --shadow:      0 10px 30px rgba(16,46,79,.12);
  --shadow-lg:   0 20px 50px rgba(16,46,79,.18);
  --container:   1200px;
  --ease:        cubic-bezier(.22,.61,.36,1);

  --font-display: 'Montserrat','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --font-body:    'Inter','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;

  --nav-h: 80px;
}

/* ----------------------------------------------------------------
   Base / reset
---------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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; }
p { margin: 0; }

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

/* ----------------------------------------------------------------
   §2  Layout primitives
---------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  width: 100%;
}

.section { padding-block: 72px; }
.section--alt   { background: var(--bg-alt); }
.section--navy  { background: var(--navy);  color: #fff; }
.section--royal { background: var(--royal); color: #fff; }

/* ----------------------------------------------------------------
   §3  Section heading block
---------------------------------------------------------------- */
.section-head { margin-bottom: 48px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--blue);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: .005em;
}

.section-subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-dark);
  opacity: .85;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: .02em;
  margin-top: 6px;
}

.section-head--center { text-align: center; }

.section-head--light .section-title { color: #fff; }
.section-head--light .section-subtitle {
  color: var(--gold);
  opacity: .95;
}

/* Optional left accent bar for left-aligned (esp. dark) sections */
.section-title--bar {
  position: relative;
  padding-left: 22px;
}
.section-title--bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: .08em;
  bottom: .08em;
  width: 5px;
  border-radius: 4px;
  background: var(--gold);
}
.section--navy  .section-title--bar::before,
.section--royal .section-title--bar::before { background: var(--gold); }

/* ----------------------------------------------------------------
   §4  Buttons
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--gold);
  color: var(--navy); /* dark text on gold: ~6.7:1, meets WCAG AA (was #fff ≈ 1.9:1) */
  box-shadow: 0 5px 14px rgba(150,100,26,.20);
}
.btn--gold:hover {
  background: var(--gold-dark);
  box-shadow: 0 8px 20px rgba(150,100,26,.26);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.85);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.14);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

.btn--outline {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--outline:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--lg { padding: 16px 36px; font-size: 16px; }

/* ----------------------------------------------------------------
   §5  Nav
---------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  color: #fff;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: inline-flex;
  flex-direction: column;      /* vertical lockup: mark on top, wordmark below */
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  color: inherit;
  line-height: 1.05;
  text-align: center;
}
.nav-logo svg,
.nav-logo img { width: 38px; height: 38px; flex: none; display: block; }
.nav-logo .nav-logo__wm { display: flex; flex-direction: column; align-items: stretch; }
/* Chinese + English name lines justified to the SAME width (client request
   "两行一样长") — text-align-last:justify spreads the shorter line to fill the
   width of the wider one, so both read as one aligned block. */
.nav-logo .nav-logo__cn { font-size: 14px; text-align: justify; text-align-last: justify; }
.nav-logo .nav-logo__en {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .9;
  margin-top: 2px;
  text-align: justify;
  text-align-last: justify;
}
/* nudge the nav logo slightly right of the container edge */
.site-nav .nav-logo { margin-left: 30px; }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: inherit;
  position: relative;
  padding: 6px 0;
  opacity: .92;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--gold);
  border-radius: 2px;
  transition: width .25s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }
.nav-link.is-active { opacity: 1; }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* Scrolled / solid state */
.site-nav.is-scrolled,
.site-nav--solid {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.site-nav.is-scrolled .nav-logo__en,
.site-nav--solid .nav-logo__en { opacity: .6; }
.site-nav.is-scrolled .nav-logo__cn,
.site-nav--solid .nav-logo__cn { color: var(--navy); }

/* Colorise logo mark only when over a dark/transparent bar */
.site-nav .nav-logo__sun { transition: filter .35s var(--ease); }

/* ----------------------------------------------------------------
   §5  Hero
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 18% 30%, rgba(10,37,64,.55), rgba(10,37,64,0) 60%),
    linear-gradient(180deg, rgba(10,37,64,.72), rgba(10,37,64,.55) 45%, rgba(10,37,64,.78));
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: .01em;
  line-height: 1.08;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2.6vw, 34px);
  color: rgba(255,255,255,.92);
  margin-top: 10px;
  text-shadow: 0 2px 18px rgba(0,0,0,.3);
}
.hero__actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  width: 30px;
  height: 30px;
  color: rgba(255,255,255,.85);
  animation: heroChevron 2s var(--ease) infinite;
}
.hero__scroll::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 4px auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
@keyframes heroChevron {
  0%, 100% { transform: translate(-50%, 0); opacity: .55; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ----------------------------------------------------------------
   §5  Stats row
---------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: center;
}
.stats--3 { grid-template-columns: repeat(3, 1fr); max-width: 760px; margin-inline: auto; }
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: rgba(255,255,255,.18);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}
.stat__label {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}
/* On a light section, soften the divider + label */
.section:not(.section--navy):not(.section--royal) .stat__label { color: var(--muted); }
.section:not(.section--navy):not(.section--royal) .stat + .stat::before { background: var(--line); }

/* ----------------------------------------------------------------
   §5  About
---------------------------------------------------------------- */
.about__lead {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.6;
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
}
.about__en {
  margin-top: 16px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: .01em;
  opacity: .85;
  max-width: 64ch;
}
.section--royal .about__lead,
.section--navy  .about__lead { color: #fff; }

/* ----------------------------------------------------------------
   §5  Solutions grid + card
---------------------------------------------------------------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.solution-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 440px;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  color: #fff;
  display: block;
}
.solution-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .7s var(--ease);
  backface-visibility: hidden;
}
.solution-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,37,64,0) 28%, rgba(10,37,64,.45) 60%, rgba(10,37,64,.88));
  transition: background .4s var(--ease);
}
.solution-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px 22px 26px;
}
.solution-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.25;
}
.solution-card__sub {
  margin-top: 6px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255,255,255,.82);
}
.solution-card__desc {
  margin-top: 10px;
  font-size: .9rem;
  color: rgba(255,255,255,.9);
  line-height: 1.55;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), opacity .35s var(--ease), margin-top .35s var(--ease);
}
.solution-card:hover .solution-card__img { transform: scale(1.1); }
.solution-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.solution-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.solution-card:hover::after {
  background: linear-gradient(180deg, rgba(10,37,64,.1) 14%, rgba(10,37,64,.6) 55%, rgba(10,37,64,.92));
}
.solution-card:hover .solution-card__desc {
  max-height: 140px;
  opacity: 1;
}

/* ----------------------------------------------------------------
   §5  Cases grid + card
---------------------------------------------------------------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.case-card { display: block; }
.case-card__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-sm);
}
.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.case-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,.05) 30%, rgba(10,37,64,.55));
  transition: background .4s var(--ease);
}
.case-card__brand {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .01em;
  text-shadow: 0 3px 16px rgba(0,0,0,.45);
}
.case-card__caption {
  margin-top: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  transition: color .25s var(--ease);
}
.case-card:hover .case-card__media img { transform: scale(1.06); }
.case-card:hover .case-card__media::after {
  background: linear-gradient(180deg, rgba(10,37,64,.1) 25%, rgba(10,37,64,.7));
}
.case-card:hover .case-card__caption { color: var(--blue); }

/* ----------------------------------------------------------------
   §5  Industry grid + card
---------------------------------------------------------------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.industry-grid--4 { grid-template-columns: repeat(4, 1fr); }
.industry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  min-height: 210px;
  padding: 28px 22px;
  background: var(--card-gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.industry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.industry-card__cn {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 28px);
  transition: color .3s var(--ease);
}
.industry-card__en {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  margin-top: 6px;
  opacity: .85;
}
.industry-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.industry-card:hover::before { transform: scaleX(1); }
.industry-card:hover .industry-card__cn { color: var(--blue); }

/* ----------------------------------------------------------------
   §5  News grid + card
---------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.news-card__date {
  display: inline-block;
  margin: 20px 22px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--gold-dark);
}
.news-card__title {
  margin: 8px 22px 24px;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card:hover .news-card__title { color: var(--blue); }

/* ----------------------------------------------------------------
   §5  Team layout + card  (gold section)
---------------------------------------------------------------- */
.team-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 56px;
  align-items: start;
}
.team-card { display: flex; flex-direction: column; }
.team-card__photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(0,0,0,.08);
  box-shadow: var(--shadow);
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card__tag {
  align-self: flex-start;
  margin-top: -34px;
  margin-left: 18px;
  position: relative;
  z-index: 2;
  background: var(--gold-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(146,98,18,.35);
  max-width: calc(100% - 36px);
}
.team-card__tag strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.team-card__tag span {
  display: block;
  font-size: .85rem;
  margin-top: 2px;
  color: rgba(255,255,255,.92);
}
.team-card__bio {
  margin-top: 18px;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.65;
}

/* "... ... ..." more-members hint card */
.team-card--more {
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.team-card--more .team-card__photo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  border: 2px dashed rgba(255,255,255,.55);
  box-shadow: none;
  color: rgba(255,255,255,.85);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .35em;
  font-size: 1.6rem;
}

/* ----------------------------------------------------------------
   §5  Partners strip
---------------------------------------------------------------- */
.partners { text-align: center; }
.partners__title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--blue);
  font-size: clamp(26px, 3vw, 36px);
  text-align: center;
  margin-bottom: 44px;
}
.partners__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.partner-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: .04em;
  color: var(--muted);
  opacity: .75;
  transition: color .25s var(--ease), opacity .25s var(--ease), transform .25s var(--ease);
}
.partner-logo:hover {
  color: var(--blue);
  opacity: 1;
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   §5  CTA footer block
---------------------------------------------------------------- */
.cta-footer {
  background: var(--blue);
  color: #fff;
  padding-block: 84px;
}
.cta-footer .container {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 56px;
  align-items: center;
}
.cta-footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}
.cta-footer__cn {
  margin-top: 14px;
  font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(255,255,255,.92);
}
.cta-footer .btn { margin-top: 28px; }
.cta-footer__contact {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255,255,255,.92);
}
.cta-footer__contact a { color: inherit; }
.cta-footer__contact a:hover { color: var(--gold); }

/* Phone frame + QR */
.qr-card {
  justify-self: end;
  position: relative;
  width: 240px;
  max-width: 100%;
  padding: 16px;
  background: #0b0e13;
  border-radius: 38px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.qr-card::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 7px;
  border-radius: 6px;
  background: #1c2128;
}
.qr-card__bubble {
  position: absolute;
  top: 40px;
  right: -14px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  line-height: 1.35;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
}
.qr-card__bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--gold);
}
.qr {
  width: 100%;
  aspect-ratio: 1;
  margin-top: 40px;
  border-radius: 16px;
  background:
    /* finder-pattern-ish checker QR placeholder */
    repeating-conic-gradient(#0b0e13 0% 25%, #fff 0% 50%) 0 0 / 22px 22px,
    #fff;
  background-blend-mode: normal;
  box-shadow: inset 0 0 0 12px #fff;
  position: relative;
}
.qr::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: 12px;
  background-image:
    linear-gradient(#0b0e13 0 0), linear-gradient(#0b0e13 0 0),
    linear-gradient(#0b0e13 0 0), linear-gradient(#fff 0 0),
    linear-gradient(#fff 0 0), linear-gradient(#fff 0 0);
  background-repeat: no-repeat;
  background-size:
    42px 42px, 42px 42px, 42px 42px,
    24px 24px, 24px 24px, 24px 24px;
  background-position:
    top left, top right, bottom left,
    top left, top right, bottom left;
}

/* ----------------------------------------------------------------
   §5  Site footer (navy)
---------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  padding-block: 56px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.site-footer .nav-logo { color: #fff; margin-bottom: 16px; }
.site-footer__blurb {
  max-width: 42ch;
  line-height: 1.7;
  font-size: .95rem;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
}
.site-footer__links a { color: rgba(255,255,255,.82); transition: color .2s var(--ease); }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__copy {
  grid-column: 1 / -1;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* ----------------------------------------------------------------
   §6  Scroll reveal
---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }
.reveal[data-d="5"] { transition-delay: .5s; }
.reveal[data-d="6"] { transition-delay: .6s; }

/* ----------------------------------------------------------------
   §7  Responsive
---------------------------------------------------------------- */

/* Tablet 700–1023 */
@media (max-width: 1023px) {
  .section { padding-block: 72px; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid      { grid-template-columns: repeat(2, 1fr); }
  .industry-grid  { grid-template-columns: repeat(2, 1fr); }
  .team-layout    { grid-template-columns: repeat(2, 1fr); }
  .team-card--more { grid-column: auto; }
}

/* Nav collapse <900 */
@media (max-width: 900px) {
  .nav-toggle { display: flex; color: inherit; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: calc(var(--nav-h) + 24px) 28px 28px;
    background: #fff;
    color: var(--ink);
    box-shadow: -12px 0 40px rgba(16,46,79,.18);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 1001;
  }
  .nav-link { color: var(--ink); font-size: 17px; padding: 12px 0; width: 100%; }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--blue); }

  /* slide panel open */
  .site-nav.nav-open .nav-links { transform: translateX(0); }

  /* hamburger -> X */
  .site-nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* dim backdrop */
  .site-nav.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10,37,64,.42);
    z-index: 1000;
  }
  /* keep toggle tappable above its own backdrop */
  .site-nav.nav-open .nav-toggle { position: relative; z-index: 1002; }
  /* when panel open over hero, ensure toggle stays dark on white panel logic handled by JS color */
}

/* Mobile <700 */
@media (max-width: 700px) {
  .container { padding-inline: 18px; }
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 36px; }

  .solutions-grid,
  .cases-grid,
  .news-grid,
  .industry-grid,
  .team-layout { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat:nth-child(odd)::before { display: none; }

  .solution-card { min-height: 300px; }
  .solution-card__desc { max-height: 140px; opacity: 1; margin-top: 10px; } /* reveal on touch */

  .cta-footer { padding-block: 56px; }
  .cta-footer .container { grid-template-columns: 1fr; gap: 36px; }
  .qr-card { justify-self: center; }

  .site-footer .container { grid-template-columns: 1fr; }

  .team-card__tag { margin-left: 14px; }
}

/* ----------------------------------------------------------------
   Reduced motion — disable transforms / reveals
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__bg { animation: none; }
  .hero__scroll { animation: none; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn:hover,
  .solution-card:hover,
  .industry-card:hover,
  .news-card:hover,
  .case-card:hover .case-card__media img,
  .solution-card:hover .solution-card__img,
  .news-card:hover .news-card__media img { transform: none !important; }
}
