:root {
  --ink: #141416;
  --carbon: #24272f;
  --soft-ink: #556070;
  --muted: #76808e;
  --line: rgba(27, 31, 40, .14);
  --gold: #bf9145;
  --gold-soft: #f1d58b;
  --teal: #4fb7aa;
  --blue: #29508d;
  --rose: #b86f7b;
  --paper: #f5f0e8;
  --mist: #edf2f1;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(20, 20, 22, .15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.gb-modern {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(245, 240, 232, .96), rgba(255, 255, 255, .99) 46%, rgba(231, 238, 238, .92)),
    var(--paper);
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
  letter-spacing: 0;
}

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

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

.page {
  min-height: 100vh;
  overflow-x: hidden;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  --hero-image: url("images/room1.jpg");
  position: relative;
  min-height: 420px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(95deg, rgba(16, 17, 21, .94), rgba(25, 29, 36, .74) 48%, rgba(16, 17, 21, .28)),
    var(--hero-image) center / cover no-repeat;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(245, 240, 232, .96));
}

.hero-inner {
  display: grid;
  align-content: center;
  min-height: 420px;
  padding: 46px 0 66px;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-bottom: 34px;
}

.brand-row img {
  width: 70px;
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .28));
}

.brand-row strong,
.brand-row span {
  display: block;
}

.brand-row strong {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.brand-row span {
  margin-top: 4px;
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.kicker,
.eyebrow,
.label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .kicker {
  color: var(--gold-soft);
}

.hero h1,
.section-head h2,
.feature-copy h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
}

.knowledge-page .knowledge-hero-title {
  max-width: 940px;
  font-size: clamp(34px, 5vw, 58px);
}

.knowledge-page .knowledge-hero-title span {
  display: block;
}

.lead {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.78;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(32, 36, 44, .18);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(20, 20, 22, .08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.hero .button {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  box-shadow: none;
}

.button.primary {
  border-color: rgba(241, 213, 139, .78);
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  color: #211b12;
  box-shadow: 0 16px 34px rgba(191, 145, 69, .25);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(41, 80, 141, .38);
  outline: none;
}

.knowledge-page .epson-showroom-link {
  max-width: min(100%, 430px);
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
}

.section {
  padding: 76px 0;
}

.section.tight {
  padding-top: 42px;
}

.section.alt {
  background:
    linear-gradient(135deg, rgba(237, 242, 241, .72), rgba(255, 255, 255, .72)),
    var(--mist);
}

.section.dark {
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(21, 22, 27, .98), rgba(36, 39, 47, .98) 62%, rgba(25, 52, 60, .95)),
    var(--carbon);
}

.section.customer-value {
  color: #35232b;
  background:
    linear-gradient(135deg, rgba(255, 247, 249, .84), rgba(255, 226, 235, .76) 56%, rgba(255, 241, 225, .7)),
    rgba(255, 237, 243, .72);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head h2,
.feature-copy h2 {
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.16;
}

.knowledge-page .one-line-title {
  white-space: nowrap;
  font-size: clamp(24px, 3.4vw, 36px);
}

.section-head p,
.feature-copy p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.75;
}

.dark .section-head p,
.dark .feature-copy p,
.dark .muted {
  color: rgba(255, 255, 255, .7);
}

.customer-value .section-head .eyebrow {
  margin: 0 0 12px;
  color: #a55366;
  font-size: 12px;
  line-height: 1.2;
}

.customer-value .section-head h2 {
  color: #3b2330;
}

.customer-value-title span {
  display: block;
}

.customer-value .section-head > p {
  color: #654e58;
}

.stats-grid,
.card-grid,
.product-grid,
.step-grid,
.contact-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.stat-card,
.info-card,
.product-card,
.step-card,
.contact-card,
.process-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 22px;
}

.stat-card strong {
  display: block;
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
  gap: 34px;
  align-items: center;
}

.feature-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.feature-image.fit-contain {
  background: var(--white);
}

.feature-image.fit-contain img {
  object-fit: contain;
  padding: 22px;
}

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

.info-card,
.note-card {
  padding: 24px;
}

.info-card h3,
.note-card h3,
.contact-card h3,
.process-card h3,
.step-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.info-card p,
.note-card p,
.contact-card p,
.process-card p,
.step-card p,
.product-card p {
  margin: 12px 0 0;
  color: var(--soft-ink);
  font-size: 15px;
  line-height: 1.72;
}

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

.product-card {
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(20, 20, 22, .11);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mist);
}

.product-body {
  padding: 20px;
}

.product-code {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(79, 183, 170, .14);
  color: #1f746a;
  font-size: 12px;
  font-weight: 900;
}

.product-card h3 {
  margin: 14px 0 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.product-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.tag-list,
.check-list,
.plain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tag-list li,
.check-list li,
.plain-list li {
  border-radius: 999px;
  border: 1px solid rgba(32, 36, 44, .12);
  background: rgba(255, 255, 255, .76);
  color: var(--soft-ink);
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.dark .tag-list li {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-card {
  padding: 24px;
}

.dark .process-card {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}

.dark .process-card h3 {
  color: var(--white);
}

.dark .process-card p {
  color: rgba(255, 255, 255, .72);
}

.customer-value .process-card {
  border-color: rgba(148, 78, 94, .22);
  box-shadow: 0 18px 42px rgba(119, 73, 86, .13);
  backdrop-filter: blur(10px);
}

.customer-value .process-card:nth-child(1) {
  background: rgba(255, 255, 255, .62);
}

.customer-value .process-card:nth-child(2) {
  background: rgba(255, 232, 221, .66);
}

.customer-value .process-card:nth-child(3) {
  background: rgba(229, 247, 239, .66);
}

.customer-value .process-card:nth-child(4) {
  background: rgba(229, 240, 255, .66);
}

.customer-value .process-card h3 {
  color: #34212a;
}

.customer-value .process-card p {
  color: #5f4b54;
}

.customer-value .process-card span {
  color: #2a1d22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42);
}

.process-card span,
.step-card span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  color: #221b12;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(27, 31, 40, .1);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.68;
}

.compare-table th {
  color: var(--ink);
  background: rgba(241, 213, 139, .24);
  font-weight: 900;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  counter-reset: steps;
}

.step-card {
  position: relative;
  padding: 24px 24px 24px 82px;
  min-height: 150px;
}

.step-card::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 24px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--carbon);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
}

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

.contact-card {
  padding: 26px;
}

.contact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 31, 40, .1);
}

.contact-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-list strong,
.contact-list a {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  word-break: break-word;
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.gallery-strip img {
  width: 100%;
  height: 210px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(20, 20, 22, .12);
}

.gallery-strip img:nth-child(2) {
  height: 260px;
}

.footer-band {
  padding: 26px 0;
  color: rgba(255, 255, 255, .78);
  background: var(--carbon);
}

.footer-band .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footer-band strong {
  color: var(--gold-soft);
}

.footer-band a {
  color: var(--white);
  font-weight: 900;
}

@media (max-width: 920px) {
  .stats-grid,
  .card-grid,
  .product-grid,
  .process-grid,
  .contact-grid,
  .step-grid,
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-grid {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1160px);
  }

  .hero,
  .hero-inner {
    min-height: 520px;
  }

  .hero-inner {
    padding: 32px 0 54px;
  }

  .brand-row {
    margin-bottom: 28px;
  }

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

  .knowledge-page .knowledge-hero-title {
    font-size: clamp(24px, 6.3vw, 34px);
  }

  .lead {
    font-size: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    display: block;
  }

  .stats-grid,
  .card-grid,
  .product-grid,
  .process-grid,
  .contact-grid,
  .step-grid,
  .split-grid,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    margin-top: -24px;
  }

  .gallery-strip img,
  .gallery-strip img:nth-child(2) {
    height: 220px;
  }

  .step-card {
    padding: 78px 22px 24px;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-band .wrap {
    display: block;
  }

  .footer-band a {
    display: inline-flex;
    margin-top: 12px;
  }

  .table-wrap {
    overflow: visible;
  }

  .compare-table {
    display: block;
    min-width: 0;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tr {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(27, 31, 40, .1);
  }

  .compare-table tr:last-child {
    border-bottom: 0;
  }

  .compare-table td {
    padding: 8px 0;
    border-bottom: 0;
  }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
  }
}
