:root {
  --ink: var(--color-ink, #33495b);
  --muted: var(--color-muted, #738598);
  --blue: var(--color-blue, #7ea2d8);
  --blue-deep: var(--color-blue-deep, #506f9e);
  --warm: var(--color-warm, #d99152);
  --warm-deep: var(--color-warm-deep, #c67732);
  --line: var(--color-line, rgba(120, 153, 196, 0.18));
  --glass: var(--color-glass, rgba(255, 255, 255, 0.78));
  --shadow: var(--shadow-soft, 0 22px 58px rgba(93, 121, 157, 0.12));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-sans);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

.card-link {
  display: block;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(34px, calc((100vw - 1040px) / 2));
  background: rgba(255, 255, 255, 0.48);
  border-bottom: 1px solid rgba(136, 160, 188, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.hero p,
.section-heading h2,
.project-card h3,
.thinking-card h3 {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.brand {
  color: #30495a;
  font-size: 25px;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: clamp(24px, 4vw, 46px);
  color: #65798a;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--warm);
  content: "";
  transition: width 0.2s ease;
  transform: translateX(-50%);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 590px;
  padding-top: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: url("../assets/headerBg.jpg") center center / cover no-repeat;
}

.hero::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 190px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.62) 54%, #fff 100%);
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: -22px;
  text-align: center;
}

.hero p {
  margin: 0;
  color: #40596b;
  font-size: clamp(34px, 5.8vw, 62px);
  letter-spacing: 1px;
  line-height: 1.25;
}

.hero-subtitle {
  margin-top: 12px;
  color: #64798d;
  font-family: var(--font-sans);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.16em;
}

.content-section {
  position: relative;
  padding: 72px max(24px, calc((100vw - 1040px) / 2)) 0;
}

.content-section::before {
  position: absolute;
  z-index: -1;
  inset: 12px max(24px, calc((100vw - 1040px) / 2)) auto;
  height: 220px;
  background: radial-gradient(ellipse at 50% 50%, rgba(217, 145, 82, 0.08), rgba(126, 162, 216, 0.04) 45%, rgba(255, 255, 255, 0) 72%);
  content: "";
  pointer-events: none;
}

.intro-section {
  padding-top: 30px;
}

.section-shell {
  width: 100%;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading span {
  display: block;
  margin-bottom: 7px;
  color: var(--warm-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: var(--warm-deep);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.25;
}

.story-stack {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
    radial-gradient(ellipse at 18% 0%, rgba(217, 145, 82, 0.09), transparent 36rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.story-card,
.project-card,
.thinking-card,
.article-card,
.wechat-panel {
  transition: background 1.2s ease, border-color 1.2s ease, box-shadow 1.2s ease, filter 1.2s ease, transform 1.2s ease;
}

.project-card:hover,
.thinking-card:hover,
.article-card:hover,
.wechat-panel:hover {
  border-color: rgba(217, 145, 82, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 250, 244, 0.86)),
    radial-gradient(ellipse at 80% 0%, rgba(217, 145, 82, 0.14), transparent 18rem);
  box-shadow: 0 24px 62px rgba(198, 119, 50, 0.11), 0 12px 28px rgba(93, 121, 157, 0.07);
  filter: saturate(1.02);
  transform: translateY(-3px);
}

.project-card,
.thinking-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.story-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: 20px;
  min-height: 132px;
  padding: 30px 36px;
  border: 0;
  border-bottom: 1px solid rgba(120, 153, 196, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.story-card:last-child {
  border-bottom: 0;
}

.card-index {
  color: rgba(217, 145, 82, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.story-card p,
.thinking-card p,
.project-card li,
.project-kicker {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

.story-card p {
  margin: 0;
  color: #566b7e;
  font-size: 17px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  min-height: 300px;
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    radial-gradient(ellipse at 100% 0%, rgba(217, 145, 82, 0.12), transparent 16rem);
}

.project-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--warm), rgba(217, 145, 82, 0.2));
  content: "";
}

.project-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(198, 119, 50, 0.22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 244, 0.72);
  font-size: 14px;
}

a.project-kicker:hover,
.project-card h3 a:hover {
  color: var(--warm-deep);
}

.project-card h3 {
  margin: 0 0 16px;
  color: #344e62;
  font-size: clamp(25px, 3vw, 30px);
  line-height: 1.25;
}

.project-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #53697d;
  font-size: 16px;
}

.project-card li::marker {
  color: var(--warm-deep);
}

.pill-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin-top: 34px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(120, 153, 196, 0.18);
  color: #60758a;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.9s ease, border-color 0.9s ease, letter-spacing 0.9s ease;
}

.pill-link::after {
  margin-left: 8px;
  content: ">";
}

.pill-link:hover {
  border-color: rgba(217, 145, 82, 0.34);
  color: var(--warm-deep);
  letter-spacing: 0.02em;
}

.thinking-section {
  padding-bottom: 74px;
}

.thinking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.thinking-card {
  min-height: 238px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    linear-gradient(90deg, rgba(198, 119, 50, 0.08), transparent 42%);
}

.thinking-card h3 {
  margin: 18px 0 12px;
  color: #344e62;
  font-size: 25px;
  line-height: 1.35;
}

.thinking-card p {
  flex: 1;
  margin: 0;
  color: #64798d;
  font-size: 15px;
}

.text-link {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(120, 153, 196, 0.18);
  color: #60758a;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.9s ease, border-color 0.9s ease, letter-spacing 0.9s ease;
}

.text-link::after {
  margin-left: 6px;
  content: ">";
}

.text-link:hover {
  border-color: rgba(217, 145, 82, 0.34);
  color: #a86225;
  letter-spacing: 0.02em;
}

.blog-main {
  padding: 136px max(24px, calc((100vw - 1040px) / 2)) 74px;
}

.service-main {
  position: relative;
  overflow: hidden;
  padding: 154px max(24px, calc((100vw - 1040px) / 2)) 74px;
  isolation: isolate;
}

.service-main::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 370px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.6) 66%, #fff 100%),
    url("../assets/headerBg.jpg") center top / cover no-repeat;
  content: "";
  opacity: 0.9;
  pointer-events: none;
}

.service-main > * {
  position: relative;
  z-index: 1;
}

.blog-hero,
.service-hero {
  margin-bottom: 34px;
}

.blog-hero h1,
.service-hero h1 {
  margin: 0;
  color: var(--warm-deep);
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.2;
}

.blog-hero p,
.service-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #64798d;
  font-size: 17px;
}

.service-block {
  margin-top: 58px;
}

.service-block .project-card p {
  margin: 0;
  color: #64798d;
  font-size: 15px;
}

.wide-card {
  min-height: 0;
}

.service-list {
  margin: 0;
  padding-left: 18px;
}

.edu-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.article-card {
  min-height: 238px;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.82)),
    radial-gradient(ellipse at 100% 0%, rgba(217, 145, 82, 0.09), transparent 18rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.article-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.article-card h2 {
  margin: 0 0 14px;
  color: #344e62;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
}

.article-card p {
  margin: 0;
  color: #64798d;
  font-size: 15px;
}

.wechat-panel {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    radial-gradient(ellipse at 100% 0%, rgba(217, 145, 82, 0.12), transparent 18rem);
  box-shadow: var(--shadow);
}

.wechat-panel img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.wechat-panel h2 {
  margin: 0 0 12px;
  color: var(--warm-deep);
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-size: 30px;
  font-weight: 400;
}

.wechat-panel p {
  margin: 0;
  color: #64798d;
  font-size: 16px;
}

.voice-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.voice-sidebar,
.article-side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(93, 121, 157, 0.08);
}

.voice-sidebar h2,
.article-side h2 {
  margin: 0 0 4px;
  color: var(--warm-deep);
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-size: 22px;
  font-weight: 400;
}

.voice-sidebar a,
.article-side a,
.article-toc a {
  color: #60758a;
  font-size: 14px;
}

.voice-sidebar a:hover,
.article-side a:hover,
.article-toc a:hover {
  color: var(--warm-deep);
}

.voice-content {
  display: grid;
  gap: 46px;
}

.voice-category {
  scroll-margin-top: 96px;
}

.compact-heading {
  margin-bottom: 18px;
}

.featured-essay {
  min-height: 0;
  margin-bottom: 14px;
}

.article-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(120, 153, 196, 0.14);
}

.article-row span {
  color: var(--warm-deep);
  font-size: 13px;
}

.article-row a {
  color: #344e62;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-size: 21px;
}

.article-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 42px;
  align-items: start;
  padding: 136px max(24px, calc((100vw - 1100px) / 2)) 74px;
}

.article-side {
  gap: 22px;
}

.article-side section {
  display: grid;
  gap: 10px;
}

.article-detail {
  color: #40566a;
}

.article-header span {
  color: var(--warm-deep);
  font-size: 14px;
  font-weight: 700;
}

.article-header h1 {
  margin: 12px 0 18px;
  color: #2f475b;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.18;
}

.article-header p {
  margin: 0;
  color: #64798d;
  font-size: 18px;
}

.article-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 34px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.article-toc strong {
  color: var(--warm-deep);
}

.article-detail section {
  scroll-margin-top: 96px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(120, 153, 196, 0.14);
}

.article-detail h2 {
  margin: 0 0 14px;
  color: var(--warm-deep);
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-size: 31px;
  font-weight: 400;
}

.article-detail p {
  margin: 0 0 14px;
  color: #53697d;
  font-size: 17px;
}

.site-footer {
  position: relative;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: end;
  gap: 18px;
  min-height: 330px;
  padding: 112px max(24px, calc((100vw - 1100px) / 2)) 30px;
  text-align: center;
  background: url("../assets/alei-bottom.png") center bottom / 100% auto no-repeat;
  overflow: visible;
}

.site-footer::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 150px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.86) 26%, rgba(255, 255, 255, 0) 100%);
  content: "";
  pointer-events: none;
}

.footer-brand,
.social-links,
.site-footer small {
  position: relative;
  z-index: 10;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 210px;
}

.brand-main {
  color: #071838;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.brand-contact {
  display: grid;
  gap: 4px;
  width: 100%;
  color: #5f7592;
  font-family: "Courier New", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.brand-contact span {
  display: block;
}

.social-links {
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.social-link {
  position: relative;
  z-index: 31;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: #163c81;
  font-size: 11px;
  font-weight: 800;
}

.social-link:nth-child(3) {
  background: #ef3f35;
}

.github-link {
  width: auto;
  min-width: 64px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(7, 24, 56, 0.88);
}

.qr-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  display: grid;
  place-items: center;
  width: 148px;
  height: 166px;
  padding: 12px;
  border: 1px solid rgba(31, 98, 208, 0.18);
  border-radius: 8px;
  color: #315a9b;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(20, 70, 140, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 9999;
}

.qr-popover img {
  display: block;
  width: 124px;
  height: 124px;
  object-fit: cover;
  border-radius: 6px;
}

.qr-popover em {
  display: block;
  color: #315a9b;
  font-style: normal;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.social-link:hover .qr-popover,
.social-link:focus-visible .qr-popover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer small {
  grid-column: 1 / -1;
  color: #627698;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .project-grid,
  .thinking-grid,
  .article-list,
  .edu-project-list,
  .voice-layout,
  .article-main {
    grid-template-columns: 1fr;
  }

  .voice-sidebar,
  .article-side {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    min-height: 360px;
    padding: 116px 20px 24px;
    background-size: auto 100%;
  }

  .footer-brand,
  .social-links {
    justify-self: center;
  }

  .site-footer small {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    flex-direction: column;
    gap: 10px;
    height: auto;
    min-height: 68px;
    padding: 16px 22px;
  }

  .site-header .brand {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
  }

  .hero {
    min-height: 500px;
  }

  .intro-section {
    padding-top: 28px;
  }

  .story-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .story-card p,
  .project-card ul {
    font-size: 15px;
  }

  .content-section {
    padding-top: 56px;
  }
}


/* ====== Hero CTA buttons ====== */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.hero-btn.primary {
  color: #fff;
  background: var(--warm-deep);
}

.hero-btn.primary:hover {
  background: #b05a2b;
  transform: translateY(-2px);
}

.hero-btn.secondary {
  color: var(--warm-deep);
  border: 1.5px solid var(--warm-deep);
  background: transparent;
}

.hero-btn.secondary:hover {
  background: rgba(198, 119, 50, 0.08);
  transform: translateY(-2px);
}

/* ====== Service Dual Panel ====== */
.service-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.service-panel {
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.service-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--warm), rgba(217, 145, 82, 0.2));
  content: "";
}

.service-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.service-panel-header h3 {
  margin: 0;
  color: #344e62;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 400;
}

.panel-icon {
  font-size: 24px;
}

.service-panel-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-panel-list li {
  padding: 0;
}

.service-panel-list strong {
  display: block;
  color: #344e62;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.service-badge {
  display: inline-flex;
  margin-top: 4px;
  padding: 3px 10px;
  border: 1px solid rgba(198, 119, 50, 0.22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 244, 0.72);
  font-size: 14px;
}

.service-panel-list p {
  margin: 8px 0 0;
  color: #64798d;
  font-size: 15px;
}

/* ====== FAQ ====== */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass);
  padding: 0;
  transition: background 1.2s ease, border-color 1.2s ease;
}

.faq-item[open] {
  border-color: rgba(217, 145, 82, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 250, 244, 0.86)),
    radial-gradient(ellipse at 80% 0%, rgba(217, 145, 82, 0.08), transparent 18rem);
}

.faq-item summary {
  padding: 18px 24px;
  color: #344e62;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item summary::before {
  content: "+";
  color: var(--warm-deep);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 24px 20px 24px;
  color: #64798d;
  font-size: 15px;
  line-height: 1.7;
}

/* ====== Sections spacing ====== */
/* Prevent double-padding when .content-section is nested inside .service-main/.blog-main */
.service-main .content-section,
.blog-main .content-section,
.cases-content .content-section {
  padding-left: 0;
  padding-right: 0;
}
.services-section,
.cases-section,
.faq-section {
  padding-top: 58px;
  padding-bottom: 0;
}

@media (max-width: 900px) {
  .service-dual {
    grid-template-columns: 1fr;
  }
}


/* ====== Service cases embedded in panel ====== */
.service-cases {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 6px;
  background: rgba(217, 145, 82, 0.05);
  border: 1px solid rgba(217, 145, 82, 0.1);
}

.service-cases-label {
  display: block;
  margin-bottom: 8px;
  color: var(--warm-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.service-cases ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}

.service-cases li {
  color: #64798d;
  font-size: 14px;
}

.service-cases li::marker {
  color: var(--warm-deep);
}

/* ====== Vertical service panels ====== */
.services-section .service-panel {
  margin-bottom: 28px;
}

.services-section .service-panel:last-child {
  margin-bottom: 0;
}

/* Remove grid for service-dual since we use vertical now */
.service-dual {
  display: block;
}

@media (max-width: 900px) {
  .service-dual {
    grid-template-columns: 1fr;
  }
}


/* ====== Horizontal service items ====== */
.service-horizontal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-horizontal--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-h-item {
  padding: 0;
}

.service-h-item strong {
  display: block;
  color: #344e62;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.service-h-item .service-badge {
  display: inline-flex;
  margin-top: 4px;
  padding: 3px 10px;
  border: 1px solid rgba(198, 119, 50, 0.22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 244, 0.72);
  font-size: 14px;
}

.service-h-item p {
  margin: 8px 0 0;
  color: #64798d;
  font-size: 14px;
}

@media (max-width: 900px) {
  .service-horizontal,
  .service-horizontal--three {
    grid-template-columns: 1fr;
  }
}


/* ====== Service Horizontal Cards (stronger visual) ====== */
.service-horizontal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.service-h-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 244, 0.9)),
    radial-gradient(ellipse at 100% 0%, rgba(217, 145, 82, 0.08), transparent 14rem);
  box-shadow: 0 12px 32px rgba(93, 121, 157, 0.06);
  transition: border-color 0.9s ease, box-shadow 0.9s ease, transform 0.9s ease, background 0.9s ease;
}

.service-h-item:hover {
  border-color: rgba(217, 145, 82, 0.3);
  box-shadow: 0 18px 44px rgba(198, 119, 50, 0.1), 0 8px 20px rgba(93, 121, 157, 0.06);
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 250, 244, 0.92)),
    radial-gradient(ellipse at 80% 0%, rgba(217, 145, 82, 0.14), transparent 16rem);
}

.service-h-item strong {
  display: block;
  color: #344e62;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
}

.service-h-item .service-badge {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(198, 119, 50, 0.22);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 250, 244, 0.72);
  font-size: 14px;
}

.service-h-item p {
  margin: 10px 0 0;
  color: #64798d;
  font-size: 14px;
  line-height: 1.65;
}

.service-panel--enterprise .service-h-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 244, 0.9)),
    radial-gradient(ellipse at 100% 0%, rgba(217, 145, 82, 0.1), transparent 14rem);
}

@media (max-width: 900px) {
  .service-horizontal {
    grid-template-columns: 1fr;
  }
}


/* ====== Service block item (light container) ====== */
.service-block-item {
  margin-bottom: 28px;
}

.service-block-item:last-child {
  margin-bottom: 0;
}

/* reduce hero-to-services gap */
.services-section {
  padding-top: 36px !important;
}

/* Remove unused service-dual and service-panel overrides */
.services-section .service-panel {
  margin-bottom: 0;
}


/* ====== Service detail link in header ====== */
.service-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.service-panel-header h3 {
  margin: 0;
  flex: 1;
}

.service-more {
  color: var(--warm-deep);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.service-more:hover {
  color: #b05a2b;
  letter-spacing: 0.03em;
}

/* ====== Unified font sizes ====== */
.section-heading h2 {
  font-size: 34px !important;
}

.service-panel-header h3 {
  font-size: 26px !important;
  color: #344e62;
  font-family: var(--font-serif);
  font-weight: 400;
}

.service-h-item strong {
  font-size: 18px !important;
}

.thinking-card h3 {
  font-size: 22px !important;
}

/* Unified body text */
.service-h-item p,
.thinking-card p,
.story-card p,
.project-card p,
.project-card li,
.article-card p,
.faq-item p {
  font-size: 15px !important;
}

/* Hero subtitle */
.hero-subtitle {
  font-size: 15px !important;
}

/* Hero main text */
.hero p {
  font-size: clamp(36px, 5.8vw, 52px) !important;
}
