@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700&family=Noto+Serif+TC:wght@500;600;700&display=swap");

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-deep: #f7f7f7;
  --ink: #222222;
  --ink-soft: #6a6a6a;
  --accent: #ff385c;
  --accent-strong: #e00b41;
  --gold: #92174d;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --shadow-soft: rgba(0, 0, 0, 0.02) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.1) 0px 4px 8px;
  --shadow-card: rgba(0, 0, 0, 0.02) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.1) 0px 4px 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-h: 78px;
  --container: min(1160px, calc(100% - 3rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.72;
  letter-spacing: 0.012em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(95% 65% at 88% 10%, rgba(172, 166, 147, 0.18), transparent 60%),
    radial-gradient(85% 54% at 6% 86%, rgba(104, 114, 100, 0.15), transparent 58%),
    linear-gradient(140deg, #f5f2ec, #efebe2 60%, #ece8df);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(to right, rgba(44, 53, 46, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(44, 53, 46, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 40%, black 15%, transparent 88%);
}

.topbar,
main,
.footer {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.is-loading {
  overflow: hidden;
}

body.is-loading .topbar,
body.is-loading main,
body.is-loading .footer {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  background:
    radial-gradient(72% 48% at 80% 14%, rgba(255, 56, 92, 0.12), transparent 62%),
    radial-gradient(66% 42% at 10% 88%, rgba(146, 23, 77, 0.1), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 244, 0.94));
  backdrop-filter: blur(9px);
}

body.is-loading .site-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-inner {
  width: min(620px, calc(100vw - 2.2rem));
  padding: clamp(0.6rem, 1.6vw, 1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-loader-kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d6565;
}

.site-loader-title {
  margin: 0.52rem 0 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.16rem, 2.3vw, 1.34rem);
  color: #202627;
}

.site-loader-ring {
  margin-top: 0.96rem;
  width: clamp(56px, 8vw, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    from 0deg,
    rgba(255, 56, 92, 0.05),
    rgba(255, 56, 92, 0.22),
    rgba(224, 11, 65, 0.95),
    rgba(255, 56, 92, 0.18),
    rgba(255, 56, 92, 0.05)
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: loaderSpin 1.15s linear infinite;
}

.site-loader-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0.75;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #f7f5ef;
  z-index: 110;
}

.skip-link:focus-visible {
  top: 16px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  border-bottom: 1px solid rgba(31, 38, 34, 0.1);
  backdrop-filter: blur(12px);
  background: rgba(243, 240, 231, 0.78);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 9px;
  border: 1px solid rgba(30, 37, 33, 0.18);
  background:
    radial-gradient(circle at 28% 26%, rgba(189, 172, 137, 0.66), transparent 48%),
    linear-gradient(160deg, rgba(77, 91, 74, 0.92), rgba(42, 49, 44, 0.95));
  box-shadow: inset 0 0 0 1px rgba(236, 229, 212, 0.22);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: clamp(1.1rem, 1.75vw, 1.32rem);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.09em;
  text-transform: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.9rem;
  color: #39423d;
  letter-spacing: 0.05em;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.72rem 1.35rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.62rem 1.06rem;
  border-color: var(--line-strong);
  background: rgba(248, 245, 237, 0.84);
}

.btn-sm:hover,
.btn-sm:focus-visible {
  background: #fff;
}

.btn-primary {
  background: linear-gradient(146deg, #222823, #313a34 52%, #2a332d);
  color: #f8f6f1;
  box-shadow: 0 14px 28px rgba(23, 29, 24, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 19px 32px rgba(23, 29, 24, 0.28);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(248, 245, 237, 0.58);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(35, 44, 37, 0.38);
  background: rgba(250, 248, 242, 0.92);
}

.full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3.2rem) 0 3rem;
  overflow: hidden;
}

.hero-metamorphosis {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.84;
  mix-blend-mode: normal;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 82% 24%, rgba(184, 164, 130, 0.26), transparent 36%),
    radial-gradient(circle at 18% 88%, rgba(95, 108, 96, 0.2), transparent 32%);
}

.hero-grid {
  display: block;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0;
  color: #5b645d;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.73rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: "Noto Serif TC", "Songti TC", serif;
  line-height: 1.24;
  letter-spacing: 0.024em;
  margin: 0;
  color: #171c19;
}

h1 {
  margin-top: 1.05rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.hero-description {
  max-width: 64ch;
  margin: 1.1rem 0 0;
  color: #3f4843;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-copy {
  max-width: 880px;
}

.hero-badges {
  position: relative;
  margin: clamp(1.45rem, 3vw, 2.05rem) 0 0;
  list-style: none;
  padding: 1.08rem 0 0.12rem;
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 1.1fr;
  gap: 0;
  max-width: 900px;
  border-top: 1px solid rgba(38, 48, 42, 0.18);
}

.hero-badges::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(54px, 9vw, 112px);
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 11, 65, 0.72), rgba(224, 11, 65, 0));
}

.hero-badges li {
  margin: 0;
}

.hero-badge-item {
  position: relative;
  padding: 0.2rem clamp(0.8rem, 2vw, 1.15rem) 0.2rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.66rem;
  align-items: start;
  transition: transform 0.28s ease;
}

.hero-badge-item + .hero-badge-item {
  padding-left: clamp(0.85rem, 2vw, 1.25rem);
  border-left: 1px solid rgba(38, 48, 42, 0.12);
}

.hero-badge-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.62rem;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 11, 65, 0.7), transparent);
  transform-origin: left;
  transform: scaleX(0.38);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-badge-item:hover {
  transform: translateY(-2px);
}

.hero-badge-item:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero-badge-index {
  margin-top: 0.1rem;
  width: auto;
  border: 0;
  background: transparent;
  font-family: "Noto Serif TC", serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  color: #e00b41;
  letter-spacing: 0.04em;
}

.hero-badge-title {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.02rem, 1.18vw, 1.14rem);
  line-height: 1.45;
  color: #242424;
  letter-spacing: 0.005em;
}

.hero-badge-meta {
  margin: 0.28rem 0 0;
  font-size: 0.84rem;
  color: #8b626b;
  letter-spacing: 0.04em;
  text-transform: none;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-about {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.4rem, 4vw, 3.4rem);
  align-items: start;
}

.section-heading h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 3.7vw, 2.6rem);
}

.section-heading p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  max-width: 55ch;
}

.section-body p {
  margin: 0;
  color: #3d4641;
}

.section-body p + p {
  margin-top: 1rem;
}

.partner-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.partner-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(47, 57, 50, 0.17);
  background: rgba(251, 248, 241, 0.88);
  padding: 1rem;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.partner-card:hover,
.partner-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(58, 68, 61, 0.33);
  box-shadow: 0 16px 28px rgba(20, 27, 23, 0.1);
}

.partner-card img {
  width: min(180px, 85%);
  max-height: 64px;
  object-fit: contain;
}

.partner-card h3 {
  margin: 0;
  font-size: 0.94rem;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0.02em;
  color: #2d3630;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: end;
}

.section-note {
  margin: 0;
  max-width: 48ch;
  color: #4b544f;
  font-size: 0.98rem;
}

.services-grid {
  margin-top: clamp(2rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.6rem, 4vw, 3.6rem);
  row-gap: 0;
  border-top: 1px solid rgba(34, 34, 34, 0.14);
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  align-content: start;
  gap: 0 1rem;
  min-height: 172px;
  padding: clamp(1.15rem, 2.3vw, 1.6rem) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.28s ease, padding-left 0.28s ease;
}

.service-card:nth-child(n + 3) {
  border-top: 1px solid rgba(34, 34, 34, 0.1);
}

.service-card:nth-child(odd) {
  padding-right: clamp(0.8rem, 2vw, 1.5rem);
}

.service-card:nth-child(even) {
  padding-left: clamp(0.8rem, 2vw, 1.5rem);
  border-left: 1px solid rgba(34, 34, 34, 0.08);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 56, 92, 0.85), rgba(255, 56, 92, 0));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.32s ease;
}

.service-card:nth-child(even)::before {
  left: clamp(0.8rem, 2vw, 1.5rem);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-3px);
}

.service-card:hover::before,
.service-card:focus-within::before {
  transform: scaleY(1);
}

.service-index {
  grid-row: span 2;
  display: block;
  margin: 0.15rem 0 0;
  color: #e00b41;
  letter-spacing: 0.08em;
  font-family: "Noto Serif TC", serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
}

.service-card h3 {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.22rem, 1.65vw, 1.52rem);
  line-height: 1.34;
  letter-spacing: 0.01em;
}

.service-card p {
  grid-column: 2;
  margin: 0.72rem 0 0;
  color: #5b5b5b;
  font-size: clamp(0.95rem, 1.04vw, 1rem);
  line-height: 1.85;
}

.section-projects {
  position: relative;
  padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.section-projects::before {
  content: none;
}

#services.section {
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-bottom: clamp(2.4rem, 4.8vw, 3.6rem);
}

#awards.section {
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

#proof.section {
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

#contact.section {
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
}

#about.section-about {
  padding-top: clamp(1.8rem, 3.4vw, 2.8rem);
  padding-bottom: clamp(2.2rem, 4.2vw, 3.2rem);
}

.project-grid {
  margin-top: 2.05rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.project-card {
  grid-column: span 6;
  border-radius: var(--radius-md);
  border: 1px solid rgba(44, 52, 46, 0.16);
  background: rgba(251, 249, 244, 0.88);
  overflow: hidden;
  height: fit-content;
  transition: transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
}

.project-card.featured {
  grid-column: span 6;
}

.project-card.has-video {
  grid-column: span 6;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-7px);
  border-color: rgba(59, 69, 62, 0.35);
  box-shadow: 0 20px 36px rgba(23, 30, 25, 0.14);
}

.project-media {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(49, 58, 51, 0.14);
}

.mock-browser {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(43, 51, 45, 0.2);
  background: #faf8f1;
}

.mock-top {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0 0.68rem;
  border-bottom: 1px solid rgba(47, 56, 48, 0.16);
  background: #f4f1e6;
}

.dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dots span {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(61, 71, 63, 0.4);
}

.mock-url {
  font-size: 0.67rem;
  color: #5b645f;
  letter-spacing: 0.04em;
  max-width: 78%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.mock-canvas {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(170deg, #1d2621, #2a332d);
  overflow: hidden;
  color: #f7f5ee;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.mock-canvas-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #0f1512;
}

.mock-canvas-media.media-fill {
  object-fit: cover;
}

.project-card.has-video .mock-canvas {
  aspect-ratio: 16 / 8.4;
}

.media-chip {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.46rem;
  border-radius: 999px;
  border: 1px solid rgba(236, 231, 220, 0.46);
  color: #ede8dd;
  background: rgba(14, 18, 16, 0.42);
}

.tone-1 {
  background:
    radial-gradient(circle at 76% 18%, rgba(221, 199, 157, 0.42), transparent 46%),
    linear-gradient(155deg, #2e3a33 4%, #1f2a24 42%, #3e4f45);
}

.tone-2 {
  background:
    radial-gradient(circle at 28% 22%, rgba(187, 176, 145, 0.38), transparent 43%),
    linear-gradient(170deg, #203138, #33464f, #243138);
}

.tone-3 {
  background:
    radial-gradient(circle at 76% 82%, rgba(183, 161, 120, 0.42), transparent 45%),
    linear-gradient(150deg, #31302a, #4a4a41, #282720);
}

.tone-4 {
  background:
    radial-gradient(circle at 13% 66%, rgba(196, 167, 120, 0.35), transparent 42%),
    linear-gradient(150deg, #33363d, #2a3037, #3e464f);
}

.tone-5 {
  background:
    radial-gradient(circle at 74% 24%, rgba(203, 186, 141, 0.4), transparent 44%),
    linear-gradient(160deg, #2a332f, #374139, #202824);
}

.project-content {
  padding: 1rem 1rem 1.15rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.project-type {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f6a61;
}

.project-link {
  font-size: 0.83rem;
  color: #303833;
  border-bottom: 1px solid rgba(47, 56, 49, 0.4);
}

.project-link:hover,
.project-link:focus-visible {
  border-bottom-color: #232a25;
}

.project-content h3 {
  margin-top: 0.44rem;
  font-size: 1.28rem;
}

.project-content p {
  margin: 0.62rem 0 0;
  color: #49514c;
  font-size: 0.95rem;
}

.project-content .project-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.72rem;
  padding: 0.36rem 0.62rem;
  border: 1px solid rgba(255, 56, 92, 0.16);
  border-radius: 999px;
  background: rgba(255, 56, 92, 0.055);
  color: #7b4c55;
  font-size: 0.78rem;
  line-height: 1.45;
}

.tags {
  margin: 0.82rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags li {
  border: 1px solid rgba(61, 71, 63, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.56rem;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  color: #445049;
}

.awards-layout {
  align-items: stretch;
}

.award-list {
  display: grid;
  gap: 0.75rem;
}

.award-item {
  border-left: 1px solid rgba(53, 63, 56, 0.28);
  padding: 0.85rem 0 0.85rem 1rem;
  position: relative;
}

.award-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 1.38rem;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, #c1a873, #8f784e);
  box-shadow: 0 0 0 4px rgba(193, 168, 115, 0.12);
}

.award-year {
  margin: 0;
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #5b655f;
}

.award-item h3 {
  margin-top: 0.34rem;
  font-size: 1.14rem;
}

.award-item p {
  margin: 0.4rem 0 0;
  color: #48514b;
}

.award-visual {
  margin: 1rem 0 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(52, 61, 55, 0.18);
  overflow: hidden;
  background: rgba(250, 247, 239, 0.84);
}

.award-visual img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #121814;
}

.proof-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.proof-card {
  grid-column: span 1;
  border-radius: var(--radius-md);
  border: 1px solid rgba(46, 55, 48, 0.16);
  background: rgba(252, 249, 243, 0.84);
  padding: 0.8rem;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.8rem;
  height: 100%;
  transition: border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.proof-card:hover,
.proof-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(57, 67, 59, 0.3);
  box-shadow: var(--shadow-card);
}

.proof-card.layout-hero {
  grid-column: span 1;
}

.proof-card.layout-side {
  grid-column: span 1;
}

.proof-media {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(45, 55, 48, 0.16);
  background:
    linear-gradient(160deg, rgba(248, 246, 240, 0.92), rgba(236, 232, 222, 0.84)),
    radial-gradient(circle at 82% 18%, rgba(177, 159, 122, 0.18), transparent 45%);
  min-height: clamp(120px, 13vw, 162px);
  display: grid;
  place-items: center;
  padding: 0.5rem;
  overflow: hidden;
}

.proof-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.proof-media img.img-compact {
  width: 74%;
  height: auto;
  max-height: 124px;
}

.proof-media img.img-no1 {
  width: 86%;
  height: auto;
  max-height: 136px;
}

.proof-media img.img-sheraton {
  width: 90%;
  height: auto;
  max-height: 130px;
}

.proof-card:hover .proof-media img,
.proof-card:focus-within .proof-media img {
  transform: scale(1.015);
}

.proof-content {
  padding: 0.06rem 0.2rem 0.1rem;
}

.proof-label {
  margin: 0;
  color: #5b655f;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-value {
  margin: 0.55rem 0 0;
  font-family: "Noto Serif TC", serif;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.3;
}

.proof-desc {
  margin: 0.4rem 0 0;
  color: #4a534d;
  font-size: 0.92rem;
}

.section-cta {
  padding-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.cta-card {
  border: 1px solid rgba(43, 52, 45, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3.8vw, 2.2rem);
  background:
    linear-gradient(160deg, rgba(252, 249, 242, 0.88), rgba(238, 233, 223, 0.84)),
    radial-gradient(circle at 100% 0%, rgba(179, 160, 124, 0.18), transparent 38%);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr 345px;
  gap: 1rem;
  align-items: start;
}

.cta-card h2 {
  margin-top: 0.78rem;
  font-size: clamp(1.56rem, 3.2vw, 2.26rem);
}

.cta-card p {
  margin: 0.88rem 0 0;
  color: #454e48;
}

.contact-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(52, 61, 54, 0.2);
  background: rgba(251, 248, 240, 0.9);
  padding: 1rem;
}

.contact-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f6963;
}

.contact-name {
  margin: 0.42rem 0 0;
  font-family: "Noto Serif TC", serif;
  font-size: 1.5rem;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.52rem;
}

.contact-card li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0.4rem;
  align-items: center;
}

.contact-card span {
  color: #5f6963;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.contact-card a {
  color: #1f2521;
  font-size: 0.92rem;
  word-break: break-word;
}

.contact-card .btn-primary,
.contact-card .btn-primary:hover,
.contact-card .btn-primary:focus-visible {
  color: #ffffff;
}

.footer {
  border-top: 1px solid rgba(40, 48, 42, 0.13);
  padding: 1.6rem 0 2rem;
  background: rgba(240, 236, 226, 0.76);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  margin: 0;
  font-family: "Noto Serif TC", serif;
  font-size: 1.15rem;
}

.footer p {
  margin: 0.26rem 0 0;
  color: #4d5651;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #343c37;
  font-size: 0.88rem;
}

.copyright {
  color: #66706a;
  font-size: 0.81rem;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* DESIGN.md theme override: color-only (no layout changes) */
body::before {
  background:
    radial-gradient(80% 52% at 90% 10%, rgba(255, 56, 92, 0.07), transparent 60%),
    radial-gradient(75% 48% at 5% 95%, rgba(146, 23, 77, 0.06), transparent 58%),
    linear-gradient(160deg, #ffffff, #fcfcfc 58%, #f8f8f8);
}

body::after {
  opacity: 0.2;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.topbar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.brand-text small,
.hero-description,
.section-note,
.section-heading p,
.section-body p,
.project-content p,
.award-item p,
.proof-desc,
.footer p,
.copyright,
.mock-url {
  color: var(--ink-soft);
}

.nav a {
  color: #3f3f3f;
}

.nav a::after {
  background: var(--accent);
}

.btn-sm {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--ink);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: rgba(255, 56, 92, 0.28) 0px 8px 18px;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: rgba(224, 11, 65, 0.32) 0px 10px 22px;
}

.btn-ghost {
  border-color: rgba(0, 0, 0, 0.14);
  background: #ffffff;
  color: var(--ink);
}

h1,
h2,
h3 {
  color: var(--ink);
}

.hero-noise {
  background-image:
    radial-gradient(circle at 82% 24%, rgba(255, 56, 92, 0.15), transparent 36%),
    radial-gradient(circle at 18% 88%, rgba(146, 23, 77, 0.13), transparent 32%);
}

.project-card,
.proof-card,
.cta-card,
.contact-card,
.partner-card,
.award-visual,
.mock-browser {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-card);
}

.project-card:hover,
.proof-card:hover,
.partner-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
}

.hero-badge-title,
.partner-card h3 {
  color: var(--ink);
}

.project-type,
.proof-label,
.award-year {
  color: #6a6a6a;
}

.mock-top {
  background: #f7f7f7;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.mock-canvas,
.mock-canvas-media {
  background: #f2f2f2;
}

.mock-canvas-media.media-fill {
  object-fit: cover;
}

.media-chip {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(34, 34, 34, 0.45);
}

.project-link {
  color: var(--accent-strong);
  border-bottom-color: rgba(224, 11, 65, 0.45);
}

.project-link:hover,
.project-link:focus-visible {
  border-bottom-color: var(--accent-strong);
}

.tags li {
  border-color: rgba(0, 0, 0, 0.14);
  background: #ffffff;
  color: #3f3f3f;
}

.award-item {
  border-left-color: rgba(0, 0, 0, 0.14);
}

.award-item::before {
  background: linear-gradient(160deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.14);
}

.contact-card span {
  color: #6a6a6a;
}

.contact-card a,
.footer-links a {
  color: #222222;
}

.footer {
  border-top-color: rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-badge-item {
    padding: 0.78rem 0;
  }

  .hero-badge-item + .hero-badge-item {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(38, 48, 42, 0.11);
  }

  .split-section,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(odd),
  .service-card:nth-child(even) {
    min-height: auto;
    padding: 1.15rem 0;
    border-left: 0;
  }

  .service-card:nth-child(n + 2) {
    border-top: 1px solid rgba(34, 34, 34, 0.1);
  }

  .service-card:nth-child(even)::before {
    left: 0;
  }

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

  .project-card {
    grid-column: span 6;
  }

  .project-card.featured {
    grid-column: span 12;
  }

  .project-card.has-video {
    grid-column: span 12;
  }

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

  .proof-card,
  .proof-card.layout-hero,
  .proof-card.layout-side {
    grid-column: span 1;
  }

  .proof-media img.img-compact {
    width: 78%;
    max-height: 120px;
  }

  .proof-media img.img-no1 {
    width: 88%;
    max-height: 132px;
  }

  .proof-media img.img-sheraton {
    width: 92%;
    max-height: 126px;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(1160px, calc(100% - 1.4rem));
    --header-h: 72px;
  }

  .topbar-inner {
    gap: 0.65rem;
  }

  .brand-text small {
    display: none;
  }

  .nav {
    display: none;
  }

  .btn-sm {
    padding: 0.56rem 0.9rem;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .hero-metamorphosis {
    opacity: 0.74;
  }

  h1 {
    font-size: clamp(1.76rem, 8.3vw, 2.32rem);
  }

  .section-heading h2 {
    font-size: clamp(1.48rem, 6.6vw, 2rem);
  }

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

  .services-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-card,
  .proof-card.layout-hero,
  .proof-card.layout-side {
    grid-column: span 1;
  }

  .proof-media img.img-compact {
    width: 84%;
    max-height: 118px;
  }

  .proof-media img.img-no1 {
    width: 90%;
    max-height: 126px;
  }

  .proof-media img.img-sheraton {
    width: 94%;
    max-height: 122px;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.featured,
  .project-card.has-video {
    grid-column: span 12;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0.88rem;
  }

  .copyright {
    margin-top: -0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
