
:root {
  --navy: #1e407c;
  --navy-deep: #001e44;
  --navy-soft: #2b5194;
  --red: #c8102e;
  --red-soft: #e2374f;
  --paper: #f7f8fa;
  --white: #ffffff;
  --ink: #12213a;  --muted: #5a6b85;  --muted-light: #9fb0c9;  --radius: 18px;
  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1e407c;
  border-bottom: 3px solid var(--red);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand span { color: var(--red-soft); }

.site-nav { display: flex; gap: 8px; }

.site-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
}

.site-nav a.active {
  color: var(--white);
  background: var(--red);
}

.hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 56px;
  align-items: center;
}

.hero-photo {
  position: relative;
  aspect-ratio: 1 / 1.08;
  min-height: 280px;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
  filter: saturate(0.95);
}

.hero-photo .photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.hero-text .eyebrow {
  display: inline-block;
  color: var(--red-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-text h1 em { font-style: normal; color: var(--red-soft); }

.hero-text p.tagline {
  margin: 20px 0 0;
  color: var(--muted-light);
  font-size: 16.5px;
  max-width: 580px;
  text-align: justify;
  hyphens: auto;
}

.hero-text .text-box {
  margin-top: 24px;
  padding: 26px 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--red);
  border-radius: 12px;
}

.hero-text .text-box .tagline {
  max-width: none;
  text-align: justify;
  hyphens: auto;
}

.carousel-section {
  background: var(--white);
  padding: 56px 0 88px;
}

.carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  min-height: 300px;
  background: var(--navy-deep);
  box-shadow: 0 20px 50px rgba(0, 30, 68, 0.25);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: block;
}

.carousel-slide .slide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.carousel-slide img.slide-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 30, 68, 0.88) 0%, rgba(0, 30, 68, 0.12) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 40px;
}

.slide-overlay .slide-kicker {
  color: var(--red-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.slide-overlay h2 {
  color: var(--white);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
}

.slide-overlay .slide-hint {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 30, 68, 0.55);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.carousel-dots button.active {
  background: var(--red-soft);
  width: 22px;
  border-radius: 50px;
}

.projects { padding: 88px 0 96px; }

.section-head { margin-bottom: 24px; }

.section-head .kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-top: 8px;
}

.section-head .section-note {
  color: var(--muted);
  margin-top: 10px;
  font-size: 15.5px;
}

.project-row {
  padding: 44px 40px 48px;
  border-radius: 18px;
  border: 1px solid #e3e9f4;
  scroll-margin-top: 96px;
}

.project-row + .project-row { margin-top: 32px; }

.project-row:nth-of-type(even) { background: #f2f6fc; }

.row-head {
  padding-bottom: 24px;
  border-bottom: 1px solid #dfe5ee;
  margin-bottom: 44px;
}

.row-num {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--red);
}

.row-title {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1.2;
  margin-top: 6px;
}

.row-title .num { color: var(--red); }

.row-subs { margin-top: 16px; }

.sub-item {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  padding: 40px 0;
}

.sub-item + .sub-item { border-top: 1px solid #dfe5ee; }

.sub-item:first-child .sub-media { order: -1; }

.sub-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.sub-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-body h4 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 12px;
  line-height: 1.3;
}

.sub-body p { font-size: 15.5px; color: var(--muted); margin-bottom: 20px; }

.row-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}

.project-row.flip .row-media { order: 2; }
.project-row.flip .row-content { order: 1; }

.row-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  letter-spacing: 0.05em;
}

.row-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-content p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 28px;
}

.page-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 88px 0 64px;
  border-bottom: 4px solid var(--red);
}

.page-hero .kicker {
  color: var(--red-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  margin-top: 10px;
  max-width: 760px;
}

.page-hero .lede {
  margin-top: 18px;
  max-width: 680px;
  color: var(--muted-light);
  font-size: 17px;
}

.page-body { padding: 56px 0 88px; }

.sec {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
  padding: 44px 40px;
  border-radius: 22px;
  margin-bottom: 28px;
}

.sec.tint-blue { background: #eef2fa; }
.sec.tint-white { background: var(--white); border: 1px solid #e3e8f0; }

.sec.flip .sec-media { order: 2; }
.sec.flip .sec-body { order: 1; }

.sec-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13.5px;
  letter-spacing: 0.05em;
}

.sec-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sec-body h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  line-height: 1.35;
}

.prose p { margin-bottom: 18px; font-size: 16.5px; color: #2a3a55; }

.prose { max-width: none; }

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 28px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.doc-link span { color: var(--red); font-weight: 800; }

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 24px;
  border-radius: 50px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.learn-more span { color: var(--white); font-weight: 800; letter-spacing: 0; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 28px;
}

.stat {
  background: #eef2fa;
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 16px 22px;
  min-width: 180px;
}

.stat b {
  display: block;
  font-size: 22px;
  color: var(--navy-deep);
  line-height: 1.3;
}

.stat span { font-size: 13px; color: var(--muted); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}

.site-footer {
  background: var(--navy-deep);
  color: var(--muted-light);
  padding: 48px 0;
  border-top: 4px solid var(--red);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer .brand { font-size: 16px; }

.site-footer a { color: var(--white); }

.footer-note { font-size: 13px; }

.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

@media (max-width: 720px) {
  .back-top { right: 16px; bottom: 16px; width: 40px; height: 40px; font-size: 17px; }
}

@media (max-width: 860px) {
  .row-inner { grid-template-columns: 1fr; gap: 24px; }
  .row-subs { margin-top: 8px; }
  .sub-item { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .sub-media { order: -1; }
  .project-row { padding: 32px 24px 36px; }
  .project-row.flip .row-media { order: 0; }
  .project-row.flip .row-content { order: 1; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-photo { max-width: 340px; margin: 0 auto; width: 100%; }
  .sec { grid-template-columns: 1fr; gap: 24px; padding: 36px 24px; }
  .sec.flip .sec-media { order: 0; }
  .sec.flip .sec-body { order: 1; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .carousel { aspect-ratio: 4 / 3; }
  .carousel-slide .slide-overlay { padding: 22px; }
  .site-footer .container { flex-direction: column; text-align: center; }
}
