:root {
  color-scheme: light;
  --ink: #111113;
  --ink-soft: #393a3d;
  --muted: #71727a;
  --line: #dedfe4;
  --paper: #ffffff;
  --wash: #f4f4f0;
  --gold: #f4a900;
  --gold-deep: #b66b00;
  --teal: #007d78;
  --red: #c43a2f;
  --shadow: 0 16px 50px rgba(17, 17, 19, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 40px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(17, 17, 19, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  font-weight: 800;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  color: #fff;
  background: #0b0b0c;
}

.hero-gallery {
  position: absolute;
  inset: 0;
  transform: scale(1.01);
  opacity: 0.82;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  min-height: 82vh;
  margin: 0 auto;
  padding-top: 132px;
  padding-bottom: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  width: min(620px, 100%);
  margin: 0;
  font-size: 72px;
  line-height: 1.04;
  font-weight: 900;
}

.hero-lead {
  width: min(680px, 100%);
  margin: 24px 0 0;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 800;
}

.hero-copy {
  width: min(640px, 100%);
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-contact {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: min(650px, 100%);
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-contact img {
  width: 178px;
  height: 178px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.hero-contact strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
}

.hero-contact span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #121212;
  background: var(--gold);
}

.button-primary:hover {
  background: #ffc02e;
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 172px));
  gap: 12px;
  width: min(560px, 100%);
  margin: 42px 0 0;
}

.hero-stats div {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.intro-band {
  background: var(--ink);
  color: #fff;
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 1fr;
  gap: 24px;
  padding: 22px 0;
}

.intro-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.intro-grid p:first-child {
  color: #fff;
}

.section {
  padding: 92px 0;
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 38px;
}

.section-heading h2,
.method-layout h2,
.contact-layout h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
}

.section-heading p:not(.eyebrow),
.contact-lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 17, 19, 0.04);
}

.service-index {
  display: block;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.service-card h3 {
  margin: 38px 0 12px;
  font-size: 24px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.method-section {
  padding: 78px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 17, 19, 0.95), rgba(17, 17, 19, 0.88)),
    linear-gradient(135deg, var(--teal), var(--gold-deep));
}

.seo-section {
  padding: 88px 0;
  background: #fff;
}

.seo-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: start;
}

.seo-copy-grid {
  display: grid;
  gap: 16px;
}

.seo-copy-grid article {
  padding: 24px;
  border-left: 4px solid var(--gold);
  background: var(--wash);
}

.seo-copy-grid h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.seo-copy-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.method-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.method-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.85;
}

.method-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.method-points div {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.method-points strong {
  display: block;
  color: var(--gold);
  font-size: 28px;
}

.method-points span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.75;
}

.work-section {
  background: var(--wash);
}

.split-heading {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 40px;
  align-items: end;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #cdced6;
  border-radius: 6px;
  color: var(--ink-soft);
  background: #fff;
  cursor: pointer;
}

.filter-button.is-active {
  color: #121212;
  border-color: var(--gold);
  background: var(--gold);
  font-weight: 800;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-set-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 19, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 17, 19, 0.06);
}

.case-card[hidden] {
  display: none;
}

.case-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e8e8e3;
}

.case-set-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.case-cover {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #111113;
  cursor: pointer;
}

.case-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 220ms ease;
}

.case-cover:hover img {
  transform: scale(1.025);
}

.case-preview {
  display: grid;
  grid-template-columns: 1.08fr 0.72fr 0.72fr;
  grid-template-rows: repeat(2, minmax(116px, 1fr));
  gap: 6px;
  padding: 8px;
  background: #111113;
}

.case-preview img {
  width: 100%;
  height: 100%;
  min-height: 116px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 4px;
}

.case-preview img:first-child {
  grid-row: 1 / 3;
}

.case-body {
  min-height: 152px;
  padding: 18px;
}

.case-body span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.case-body h3 {
  margin: 8px 0 8px;
  font-size: 20px;
}

.case-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.case-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--gold);
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.process-section {
  padding: 86px 0;
  background: #fff;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 212px;
  padding: 24px;
  border-top: 3px solid var(--ink);
  background: var(--wash);
}

.process-list span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.process-list h3 {
  margin: 36px 0 10px;
  font-size: 22px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.pricing-section {
  color: #fff;
  background: var(--ink);
}

.pricing-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.pricing-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.pricing-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.price-main,
.price-options {
  border-radius: 8px;
  padding: 28px;
}

.price-main {
  color: #121212;
  background: var(--gold);
}

.price-main span {
  font-size: 14px;
  font-weight: 900;
}

.price-main strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 48px;
  line-height: 1;
}

.price-main p,
.price-options p {
  margin: 0;
  line-height: 1.7;
}

.price-options {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.price-options p {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

.price-options p:first-child {
  padding-top: 0;
}

.price-options p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.faq-section {
  padding: 88px 0;
  background: var(--wash);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.contact-section {
  padding: 92px 0;
  background: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-methods a {
  display: inline-flex;
  width: fit-content;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  border-bottom: 2px solid var(--gold);
}

.contact-methods span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
}

.qr-block {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.qr-block p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd0d7;
  border-radius: 6px;
  padding: 14px 14px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 125, 120, 0.14);
}

.contact-form .button {
  width: 100%;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.7);
  background: #09090a;
}

.page-hero {
  padding: 132px 0 72px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 17, 19, 0.94), rgba(17, 17, 19, 0.72)),
    url("./assets/case-sets/solar-light/2.jpg") center / cover;
}

.page-hero h1 {
  width: min(760px, 100%);
  margin: 0;
  font-size: 54px;
  line-height: 1.12;
}

.page-hero p:not(.eyebrow) {
  width: min(760px, 100%);
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.content-section {
  padding: 78px 0;
  background: #fff;
}

.content-section.alt {
  background: var(--wash);
}

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

.content-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.content-card ul {
  margin: 0;
  padding-left: 18px;
}

.text-block {
  width: min(860px, 100%);
}

.text-block h2 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.2;
}

.text-block p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-item {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.article-item h2 {
  margin: 0;
  font-size: 25px;
}

.article-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.article-meta {
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 900;
}

.article-body h2 {
  margin: 34px 0 12px;
  font-size: 30px;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.case-modal[hidden] {
  display: none;
}

.case-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  padding: 28px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.78);
}

.case-modal-panel {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-heading {
  width: min(760px, 100%);
  margin-bottom: 24px;
}

.modal-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.modal-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.modal-gallery {
  column-count: 3;
  column-gap: 16px;
}

.modal-gallery img {
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: 6px;
  background: var(--wash);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #fff;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
  }

  .site-nav {
    gap: 18px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-lead {
    font-size: 25px;
  }

  .intro-grid,
  .seo-layout,
  .method-layout,
  .split-heading,
  .pricing-layout,
  .contact-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-set-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-gallery {
    column-count: 2;
  }
}

@media (min-width: 1280px) {
  .case-set-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .brand {
    min-width: auto;
  }

  .brand span {
    font-size: 15px;
  }

  .site-nav {
    display: none;
  }

  .nav-cta {
    min-height: 36px;
    padding: 0 12px;
  }

  .hero,
  .hero-content {
    min-height: 84vh;
  }

  .hero-gallery {
    opacity: 0.58;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.88)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28));
  }

  .hero-content {
    width: min(100% - 32px, 560px);
    padding-top: 94px;
    padding-bottom: 36px;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: 43px;
  }

  .page-hero {
    padding: 98px 0 54px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 22px;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-contact {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .hero-contact img {
    width: 128px;
    height: 128px;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .hero-stats div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
  }

  .hero-stats dt {
    font-size: 20px;
  }

  .section-inner {
    width: min(100% - 32px, 560px);
  }

  .intro-grid {
    gap: 10px;
  }

  .section,
  .seo-section,
  .faq-section,
  .contact-section {
    padding: 64px 0;
  }

  .method-section,
  .process-section {
    padding: 58px 0;
  }

  .section-heading h2,
  .method-layout h2,
  .contact-layout h2 {
    font-size: 31px;
  }

  .service-grid,
  .method-points,
  .case-grid,
  .process-list,
  .pricing-panel {
    grid-template-columns: 1fr;
  }

  .case-preview {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .case-preview img,
  .case-preview img:first-child {
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }

  .service-card {
    min-height: 210px;
  }

  .case-body {
    min-height: 0;
  }

  .contact-form {
    padding: 18px;
  }

  .case-modal {
    padding: 0;
  }

  .case-modal-panel {
    min-height: 100%;
    padding: 22px 16px;
    border-radius: 0;
  }

  .modal-heading h2 {
    font-size: 26px;
  }

  .modal-gallery {
    column-count: 1;
  }

  .footer-inner {
    flex-direction: column;
  }
}
