/* 珺凌优配 — Apple-style redesign, navy palette. Zero JS. Self-contained. */

:root {
  --navy: #0c1934;
  --white: #ffffff;
  --light: #f7f9fd;
  --text: #5d6b85;          /* body gray-blue on light */
  --ink: #0c1934;           /* headings on light */
  --line: #dbe5f3;
  --accent: #2a63e0;        /* single bright-blue accent (AA-safe on light) */
  --accent-dark: #8bb0ff;   /* eyebrow tint on navy */
  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-soft: rgba(255, 255, 255, 0.74);
  --shadow: 0 18px 44px rgba(12, 25, 52, 0.14);
  --wrap: 72rem;
  --measure: 34em;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.05rem, 1.01rem + 0.2vw, 1.15rem);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid #5a8dff;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

section {
  padding-block: clamp(5rem, 12vh, 9rem);
}

.s-navy {
  background: var(--navy);
  color: var(--on-dark);
}

.s-white {
  background: var(--white);
}

.s-light {
  background: var(--light);
}

.s-navy h1,
.s-navy h2,
.s-navy h3 {
  color: #fff;
}

.s-navy p {
  color: var(--on-dark-soft);
}

.eyebrow {
  display: block;
  margin: 0 0 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.s-navy .eyebrow {
  color: var(--accent-dark);
}

.lede {
  max-width: var(--measure);
  color: var(--text);
  font-size: clamp(1.1rem, 1.04rem + 0.4vw, 1.3rem);
  line-height: 1.7;
}

.s-navy .lede {
  color: var(--on-dark-soft);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.brand-name small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-cta:hover {
  background: #2154c4;
}

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #2154c4;
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
}

/* ---------- Hero (index) ---------- */

.hero h1 {
  font-size: clamp(1.65rem, 5.5vw, 4.2rem);
  line-height: 1.15;
  max-width: 20ch;
}

/* Sentence grouping: keep each sentence intact; breaks fall between sentences */
.sent {
  display: inline-block;
}

.hero .lede {
  margin-top: 1.7rem;
  color: var(--on-dark-soft);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
}

/* ---------- Section heading block ---------- */

.head {
  max-width: 46rem;
}

.head h2 {
  font-size: clamp(1.7rem, 1.25rem + 2vw, 2.9rem);
  line-height: 1.2;
}

/* ---------- ② Who we are ---------- */

.who-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 3.25rem;
}

.who-item .label {
  display: block;
  margin-bottom: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.who-item p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
}

.who-close {
  max-width: 42rem;
  margin-top: 3.25rem;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- ③ Creed (navy) ---------- */

.creed {
  max-width: 40rem;
  margin-top: 3rem;
  display: grid;
  gap: 1.6rem;
}

.creed p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.25rem, 1.08rem + 0.7vw, 1.7rem);
  line-height: 1.5;
  font-weight: 500;
}

.creed-close {
  max-width: 40rem;
  margin-top: 3rem;
  color: #fff;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.15rem);
  line-height: 1.4;
  font-weight: 700;
}

/* ---------- ④ Services (white) ---------- */

.services-list {
  margin-top: 3.25rem;
  border-top: 1px solid var(--line);
}

.svc {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: 1rem 3rem;
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--line);
}

.svc h3 {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.9rem);
  line-height: 1.25;
}

.svc p {
  max-width: var(--measure);
  color: var(--text);
}

.services-note {
  margin-top: 2.1rem;
  color: var(--text);
  opacity: 0.85;
  font-size: 0.98rem;
}

/* ---------- ⑤ Case preview (light) ---------- */

.case-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3.5rem;
}

.case-text {
  max-width: var(--measure);
}

.case-text h2 {
  font-size: clamp(1.7rem, 1.25rem + 2vw, 2.7rem);
  line-height: 1.22;
}

.case-text .lede {
  margin-top: 1.1rem;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
}

.case-link:hover {
  color: #2154c4;
}

.case-link span {
  transition: none;
}

.shot img {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ---------- ⑥ Contact (navy) ---------- */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3.5rem;
}

.contact-text {
  max-width: 32rem;
}

.contact-text h2 {
  font-size: clamp(1.7rem, 1.25rem + 2vw, 2.7rem);
  line-height: 1.22;
}

.contact-text .lede {
  margin-top: 1.1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-person {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  white-space: nowrap;
}

.contact-person strong {
  display: block;
  margin-top: 0.2rem;
  color: #fff;
  font-size: 1.85rem;
  font-weight: 700;
}

.qr {
  display: grid;
  justify-items: center;
  padding: 0.65rem 0.65rem 0.55rem;
  border-radius: 12px;
  background: #fff;
}

.qr img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.qr .qr-note {
  margin-top: 0.4rem;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* ---------- Case page: 01–04 blocks ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3.25rem;
}

.pillar {
  padding: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.pillar .num {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pillar h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.pillar p {
  color: var(--text);
}

/* ---------- Case page: gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-top: 3.25rem;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.gallery figcaption {
  margin-top: 0.9rem;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  padding-block: 2.1rem;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .svc {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 2.1rem 0;
  }

  .pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .who-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
  }

  .contact-person {
    white-space: normal;
  }
}

/* Narrow phones: shrink key display lines so each grouped sentence fits one line */
@media (max-width: 480px) {
  .creed p {
    font-size: 1.1rem;
  }

  .creed-close {
    font-size: 1.2rem;
    line-height: 1.4;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.4rem;
  }

  .creed p {
    font-size: 0.95rem;
  }

  .creed-close {
    font-size: 1rem;
  }

  .who-close {
    font-size: 1rem;
  }
}
