:root {
  color-scheme: light;
  --canvas: #f3f6f4;
  --canvas-end: #e7ece9;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --ink: #151817;
  --ink-soft: #59615e;
  --muted: #89928f;
  --line: rgba(21, 24, 23, 0.12);
  --primary: #2f3b37;
  --primary-dark: #151817;
  --primary-soft: #dfe5e1;
  --coral: #d06f4f;
  --coral-soft: #f0c7b7;
  --olive: #7a8d62;
  --olive-soft: #dfe7d2;
  --shadow: 0 1px 3px rgba(21, 24, 23, 0.05), 0 16px 44px rgba(21, 24, 23, 0.08);
  --shadow-strong: 0 24px 72px rgba(21, 24, 23, 0.14), 0 8px 22px rgba(21, 24, 23, 0.07);
  --font-sans: "Noto Sans TC", "Manrope", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111514;
  --canvas-end: #1d2421;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --ink: #f4f2ef;
  --ink-soft: #c8cfca;
  --muted: #8a938f;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #dce5df;
  --primary-dark: #ffffff;
  --primary-soft: rgba(220, 229, 223, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.82;
  background:
    radial-gradient(circle at 8% 12%, rgba(208, 111, 79, 0.13), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(122, 141, 98, 0.15), transparent 32rem),
    linear-gradient(180deg, var(--canvas) 0%, #fbfcfb 44%, var(--canvas-end) 100%);
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(208, 111, 79, 0.2);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.08);
}

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

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.desktop-nav a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
  transition: color 180ms ease-out, background 180ms ease-out;
}

.desktop-nav a:hover {
  color: var(--primary-dark);
  background: rgba(21, 24, 23, 0.08);
}

.header-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-self: end;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 14px 36px rgba(21, 24, 23, 0.18);
  font-weight: 800;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.menu-button span::before {
  transform: translateY(-6px);
}

.menu-button span::after {
  transform: translateY(4px);
}

.mobile-nav {
  position: fixed;
  inset: 92px 16px auto;
  z-index: 29;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-strong);
}

.mobile-nav a {
  display: block;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-weight: 800;
}

body.is-menu-open .mobile-nav {
  display: grid;
}

.hero,
.signal-section,
.services-section,
.work-section,
.method-section,
.system-section,
.journal-section,
.faq-section,
.contact-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
  gap: 56px;
  align-items: center;
  padding: 104px 0 58px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.kicker::before {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--coral), transparent);
  content: "";
}

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

.hero h1,
.section-heading h2,
.signal-section h2,
.method-copy h2,
.system-copy h2,
.contact-copy h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 10.8em;
  margin: 18px 0 22px;
  font-size: clamp(2.08rem, 4vw, 3.7rem);
  line-height: 1.2;
  text-wrap: balance;
}

.hero-copy > p:not(.kicker),
.section-heading p,
.signal-grid p,
.service-grid p,
.work-card p,
.method-copy p,
.method-steps p,
.system-copy p,
.journal-grid p,
.faq-list p,
.contact-copy p {
  color: var(--ink-soft);
  line-height: 1.92;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
}

.button-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 14px 42px rgba(21, 24, 23, 0.22);
}

.button-secondary {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.7);
}

.hero-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 300px 170px;
  gap: 14px;
  min-height: 560px;
}

.hero-image,
.brand-system-card,
.palette-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-image.large {
  grid-row: span 2;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-system-card {
  display: grid;
  align-content: end;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(21, 24, 23, 0.96), rgba(47, 59, 55, 0.92)),
    var(--primary-dark);
}

.brand-system-card span {
  color: var(--coral-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.brand-system-card strong {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.42;
}

.palette-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 132px;
}

.palette-card span:nth-child(1) {
  background: var(--primary-dark);
}

.palette-card span:nth-child(2) {
  background: var(--coral);
}

.palette-card span:nth-child(3) {
  background: var(--olive);
}

.palette-card span:nth-child(4) {
  background: var(--coral-soft);
}

.signal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(520px, 1.26fr);
  gap: 42px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.signal-section h2 {
  margin: 16px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.3;
}

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

.signal-grid article,
.service-grid article,
.work-card,
.method-steps article,
.journal-grid article,
.faq-list details,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out;
}

.signal-grid article:hover,
.service-grid article:hover,
.work-card:hover,
.method-steps article:hover,
.journal-grid article:hover,
.faq-list details:hover {
  transform: translateY(-2px);
  border-color: rgba(208, 111, 79, 0.28);
  box-shadow: var(--shadow-strong);
}

.signal-grid article {
  padding: 22px;
}

.signal-grid span,
.method-steps span {
  color: var(--coral);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
}

.signal-grid h3,
.service-grid h3,
.work-card h3,
.method-steps h3,
.journal-grid h3 {
  margin: 16px 0 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.4;
}

.services-section,
.work-section,
.method-section,
.system-section,
.journal-section,
.faq-section,
.contact-section {
  padding: 96px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.method-copy h2,
.system-copy h2,
.contact-copy h2 {
  margin: 16px 0 18px;
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  line-height: 1.3;
}

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

.service-grid article {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 26px;
}

.service-grid small,
.work-meta span,
.journal-grid span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.service-grid ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.service-grid li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--ink-soft);
  font-weight: 700;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active {
  color: #fff;
  background: var(--primary-dark);
}

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

.work-card {
  overflow: hidden;
}

.work-visual {
  display: grid;
  min-height: 260px;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.5));
}

.work-mark {
  display: grid;
  min-height: 100%;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--work-color, var(--primary));
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

.work-card-content {
  padding: 24px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.work-meta span {
  border: 1px solid rgba(208, 111, 79, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(240, 199, 183, 0.32);
}

.method-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: 52px;
  align-items: center;
  border: 1px solid rgba(21, 24, 23, 0.1);
  border-radius: 8px;
  padding: 52px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 16%, rgba(240, 199, 183, 0.34), transparent 18rem),
    linear-gradient(135deg, rgba(255, 253, 249, 0.94), rgba(240, 199, 183, 0.22));
  box-shadow: var(--shadow);
}

.method-section .kicker,
.method-section p {
  color: var(--ink-soft);
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.method-steps article {
  border-color: rgba(21, 24, 23, 0.1);
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 34px rgba(21, 24, 23, 0.06);
}

.system-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(460px, 1.06fr);
  gap: 54px;
  align-items: center;
}

.system-section figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}

.system-section img {
  width: 100%;
  min-height: 600px;
  object-fit: cover;
}

.system-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.system-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--primary-dark);
  background: var(--olive-soft);
  font-weight: 800;
}

.journal-grid article {
  min-height: 280px;
  padding: 26px;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(520px, 1.3fr);
  gap: 54px;
}

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

.faq-list summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.55;
}

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

.faq-list summary::after {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--coral);
  content: "+";
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  gap: 54px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--surface-strong);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

textarea {
  resize: vertical;
}

.form-result {
  min-height: 28px;
  margin: 0;
  color: var(--coral);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms cubic-bezier(0.16, 1, 0.3, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .signal-section,
  .method-section,
  .system-section,
  .faq-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .hero {
    padding-top: 84px;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

  .filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 10px;
    width: min(100% - 24px, 1180px);
    min-height: 62px;
    padding: 8px 8px 8px 12px;
  }

  .brand span {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    max-width: 126px;
  }

  .hero,
  .signal-section,
  .services-section,
  .work-section,
  .method-section,
  .system-section,
  .journal-section,
  .faq-section,
  .contact-section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    gap: 30px;
    padding: 64px 0 42px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.82rem, 7vw, 2.35rem);
    line-height: 1.28;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .hero-image.large,
  .hero-image.small {
    min-height: 300px;
  }

  .signal-section,
  .method-section {
    padding: 22px;
  }

  .signal-grid,
  .service-grid,
  .work-grid,
  .method-steps,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .services-section,
  .work-section,
  .method-section,
  .system-section,
  .journal-section,
  .faq-section,
  .contact-section {
    padding: 66px 0;
  }

  .system-section img {
    min-height: 360px;
  }

  .section-heading h2,
  .signal-section h2,
  .method-copy h2,
  .system-copy h2,
  .contact-copy h2 {
    font-size: clamp(1.62rem, 6.4vw, 2.2rem);
  }
}

@media (max-width: 390px) {
  .site-header {
    padding-left: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand strong {
    max-width: 96px;
  }
}

/* 2026-06-10：作品集展示用 RWD 修正層。 */
.hero,
.signal-section,
.method-section,
.system-section,
.faq-section,
.contact-section,
.service-grid,
.work-grid,
.journal-grid,
.signal-grid,
.method-steps {
  min-width: 0;
}

h1,
h2,
h3,
p,
a,
button,
summary,
input,
select,
textarea {
  overflow-wrap: anywhere;
}

.hero h1,
.section-heading h2,
.signal-section h2,
.method-copy h2,
.system-copy h2,
.contact-copy h2 {
  line-height: 1.32;
}

@media (min-width: 1081px) {
  .hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  }

  .signal-section,
  .method-section,
  .system-section,
  .faq-section {
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
  }

  .contact-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-image.large,
  .hero-image.small,
  .system-section img {
    min-height: 240px;
  }

  .service-grid article {
    min-height: 0;
  }
}

/* 2026-06-25：網站案例亮色修正層，避免品牌案例在手機版出現大面積深色區塊。 */
.brand-system-card {
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(208, 111, 79, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 246, 244, 0.84));
}

.brand-system-card span {
  color: var(--coral);
}

.palette-card span:nth-child(1) {
  background: #e9eee9;
}

.palette-card span:nth-child(2) {
  background: #f0c7b7;
}

.palette-card span:nth-child(3) {
  background: #dfe7d2;
}

.palette-card span:nth-child(4) {
  background: #fff5ee;
}

.work-mark {
  color: var(--primary-dark);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.7), transparent 9rem),
    var(--work-color, var(--primary-soft));
}

.work-card:nth-child(odd) .work-mark {
  --work-color: #e8eee7;
}

.work-card:nth-child(even) .work-mark {
  --work-color: #f3ded4;
}

.work-section .work-card .work-mark {
  color: var(--primary-dark);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.78), transparent 9rem),
    linear-gradient(135deg, #eef2ed, #f8e5dc) !important;
}

.work-section .work-card:nth-child(3n + 2) .work-mark {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.78), transparent 9rem),
    linear-gradient(135deg, #f7e3d9, #fff8f1) !important;
}

.work-section .work-card:nth-child(3n) .work-mark {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.78), transparent 9rem),
    linear-gradient(135deg, #e7eddc, #fbfdf8) !important;
}
