:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --rice: #fbfaf6;
  --ink: #1f2421;
  --muted: #68706a;
  --line: #ddd8cd;
  --sage: #6f806e;
  --sage-dark: #3e5449;
  --kraft: #b28b5f;
  --blue-grey: #617386;
  --brand-red: #8a2f3c;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(41, 45, 38, 0.13);
  --max: 1160px;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Hiragino Sans", "Yu Gothic", "PingFang TC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--rice);
  line-height: 1.7;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--white);
  pointer-events: none;
  animation: introSplashExit 3900ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.intro-splash-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  opacity: 0;
  transform: translateY(10px);
  animation: introSplashBrand 2800ms cubic-bezier(0.16, 1, 0.3, 1) 360ms forwards;
}

.intro-splash-mark {
  display: block;
  width: 190px;
  height: 190px;
  line-height: 0;
}

.intro-splash-mark img,
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-splash-name {
  color: var(--ink);
  font-family: "Yu Mincho", "Noto Serif TC", serif;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.25;
  text-align: center;
}

.intro-splash-subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes introSplashBrand {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  30%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes introSplashExit {
  0%,
  76% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(221, 216, 205, 0.72);
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  line-height: 0;
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  font-weight: 650;
  font-size: 16px;
  letter-spacing: 0;
}

.brand-subtitle {
  margin-top: -2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: rgba(111, 128, 110, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--rice);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle span + span {
  margin-top: 7px;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(35deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-35deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(560px, 78svh, 760px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("hero-paper.png");
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.97) 0%, rgba(251, 250, 246, 0.83) 36%, rgba(251, 250, 246, 0.2) 72%),
    linear-gradient(0deg, rgba(31, 36, 33, 0.18), rgba(31, 36, 33, 0.02));
}

.hero-content,
.page-hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-content {
  padding: 64px 0 86px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: "Yu Mincho", "Noto Serif TC", serif;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 500;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 34px;
  color: #424b45;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.cta-layout {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 650;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.primary:hover {
  background: var(--sage-dark);
}

.button.secondary {
  border-color: rgba(31, 36, 33, 0.22);
  background: rgba(251, 250, 246, 0.66);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

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

.intro-section,
.products-section,
.service-section,
.industries-section,
.contact-section,
.download-empty-section {
  padding: clamp(72px, 9vw, 124px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.service-copy h2,
.cta-layout h2,
.contact-aside h2 {
  margin-bottom: 0;
  font-family: "Yu Mincho", "Noto Serif TC", serif;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 500;
}

.contact-aside h2 span {
  display: block;
}

.contact-aside h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}

.intro-copy {
  color: #465049;
  font-size: 17px;
}

.stats-band {
  padding: 40px 0;
  background: var(--ink);
  color: var(--rice);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(251, 250, 246, 0.2);
}

.stat-item {
  min-height: 178px;
  padding: 28px;
  background: var(--ink);
}

.stat-item span {
  display: block;
  margin-bottom: 24px;
  color: var(--kraft);
  font-family: "Yu Mincho", "Noto Serif TC", serif;
}

.stat-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.stat-item p {
  margin-bottom: 0;
  color: rgba(251, 250, 246, 0.74);
  font-size: 15px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.52fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: end;
  margin-bottom: 42px;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.section-heading p:not(.section-kicker) {
  margin-bottom: 8px;
  color: var(--muted);
}

.section-heading.compact {
  display: block;
  margin-bottom: 28px;
}

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

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

.product-card {
  min-height: 226px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(31, 36, 33, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 128, 110, 0.42);
  box-shadow: var(--shadow);
}

.product-code {
  display: inline-flex;
  margin-bottom: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--kraft);
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
}

.product-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.service-section {
  background:
    linear-gradient(90deg, rgba(111, 128, 110, 0.1), transparent 42%),
    #eff2ec;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.72fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
}

.service-copy p:not(.section-kicker) {
  max-width: 620px;
  margin-top: 22px;
  margin-bottom: 0;
  color: #4d574f;
  font-size: 17px;
}

.process-list {
  border-top: 1px solid rgba(31, 36, 33, 0.18);
}

.process-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(31, 36, 33, 0.18);
}

.process-step > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(31, 36, 33, 0.26);
  color: var(--sage-dark);
  font-family: "Yu Mincho", "Noto Serif TC", serif;
}

.process-step h3 {
  margin-bottom: 4px;
  font-size: 20px;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.industry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-row span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #424b45;
  font-size: 15px;
}

.cta-section {
  padding: 64px 0;
  background: #e7dfd2;
}

.cta-layout {
  justify-content: space-between;
}

.cta-layout h2 {
  max-width: 760px;
}

.site-footer {
  padding: clamp(34px, 5vw, 56px) clamp(20px, 4vw, 56px);
  background: var(--ink);
  color: rgba(251, 250, 246, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(340px, 1.22fr);
  width: min(var(--max), 100%);
  margin: 0 auto;
  align-items: start;
  gap: clamp(28px, 6vw, 76px);
  font-size: 14px;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-name {
  color: var(--rice);
  font-size: 18px;
  font-weight: 700;
}

.footer-contact {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(160px, 0.65fr);
  gap: 16px 28px;
  font-style: normal;
}

.footer-contact-item {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.footer-contact-label {
  color: rgba(251, 250, 246, 0.46);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-contact-value {
  color: rgba(251, 250, 246, 0.86);
  overflow-wrap: anywhere;
}

.footer-contact-value a {
  transition: color 160ms ease;
}

.footer-contact-value a:hover {
  color: var(--white);
}

.page-hero {
  position: relative;
  display: grid;
  min-height: clamp(360px, 52svh, 560px);
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(90deg, rgba(251, 250, 246, 0.97) 0%, rgba(251, 250, 246, 0.82) 46%, rgba(251, 250, 246, 0.36) 100%),
    url("hero-paper.png");
  background-position: center;
  background-size: cover;
}

.page-hero-content {
  --page-hero-copy-space: 72px;
  padding: 84px 0 72px;
}

.page-hero h1 {
  margin-bottom: 18px;
  font-family: "Yu Mincho", "Noto Serif TC", serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
}

.page-hero h1:last-child {
  margin-bottom: calc(18px + var(--page-hero-copy-space));
}

.page-hero p:not(.eyebrow) {
  max-width: 610px;
  min-height: var(--page-hero-copy-space);
  margin-bottom: 0;
  color: #465049;
  font-size: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 0.92fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: calc(var(--header) + 28px);
}

.detail-list {
  display: grid;
  gap: 1px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
}

.detail-list li {
  padding: 18px 0;
  background: var(--rice);
}

.detail-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
}

.detail-list strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.line-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(41, 45, 38, 0.08);
}

.line-contact-copy .section-kicker {
  margin-bottom: 10px;
}

.line-contact-copy h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.line-contact-copy p:not(.section-kicker) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.line-qr-link {
  display: block;
  width: fit-content;
  line-height: 0;
}

.line-qr-link:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 4px;
}

.line-contact-card img {
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  background: var(--white);
  object-fit: contain;
  transition: border-color 160ms ease, transform 160ms ease;
}

.line-qr-link:hover img {
  border-color: var(--sage);
  transform: translateY(-2px);
}

.about-content-section {
  padding: clamp(96px, 12vw, 164px) 0;
}

.about-content {
  max-width: 900px;
}

.about-copy {
  padding-top: clamp(28px, 4vw, 46px);
  border-top: 1px solid var(--line);
}

.about-copy p {
  margin-bottom: 0;
  color: #465049;
  font-size: 18px;
  line-height: 2.05;
}

.about-copy p + p {
  margin-top: 24px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 650;
}

label span {
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8d2c6;
  border-radius: 6px;
  background: #fbfaf7;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  min-height: 48px;
  padding: 10px 13px;
}

textarea {
  resize: vertical;
  min-height: 176px;
  padding: 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(111, 128, 110, 0.14);
}

.form-submit {
  justify-self: start;
  cursor: pointer;
}

.form-status {
  min-height: 28px;
  margin-bottom: 0;
  color: var(--sage-dark);
  font-weight: 650;
}

.download-empty {
  min-height: 260px;
  display: grid;
  align-items: start;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.download-empty p {
  margin: 28px 0 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 16px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 250, 246, 0.98);
    box-shadow: 0 22px 42px rgba(31, 36, 33, 0.12);
    transform: translateY(-130%);
    transition: transform 200ms ease;
  }

  .nav-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(221, 216, 205, 0.9);
    background: transparent;
    font-size: 16px;
  }

  .hero {
    min-height: clamp(560px, 82svh, 680px);
  }

  .hero-media {
    background-position: 60% center;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.88) 48%, rgba(251, 250, 246, 0.38) 100%),
      linear-gradient(0deg, rgba(31, 36, 33, 0.2), transparent);
  }

  .intro-grid,
  .section-heading,
  .service-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-heading .section-kicker {
    margin-bottom: -4px;
  }

  .stat-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    min-height: auto;
  }

  .contact-aside {
    position: static;
  }

  .footer-inner,
  .footer-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header: 68px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-content,
  .page-hero-content,
  .section-inner {
    width: min(100% - 32px, var(--max));
  }

  .page-hero-content {
    --page-hero-copy-space: 86px;
  }

  .hero-content {
    padding: 52px 0 72px;
  }

  .hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-copy,
  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .product-card {
    min-height: auto;
  }

  .field-pair {
    grid-template-columns: 1fr;
  }

  .cta-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .line-contact-card {
    grid-template-columns: 1fr;
  }

  .line-contact-card img {
    width: 148px;
    height: 148px;
  }

  .industry-row span {
    width: calc(50% - 5px);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
