:root {
  --ice: #72bfd2;
  --ice-light: #dff2f5;
  --navy: #123d5b;
  --navy-deep: #0b2a3d;
  --ink: #18313c;
  --muted: #62737a;
  --paper: #f6f4ee;
  --white: #fffdf8;
  --sand: #e8dfd0;
  --line: rgba(18, 61, 91, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
}

.site-shell {
  min-width: 320px;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  padding: 12px clamp(20px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.14em;
}

.brand small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #38515d;
  font-size: 14px;
}

.desktop-nav a,
footer a,
.text-link {
  position: relative;
}

.desktop-nav a::after,
footer a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
footer a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 13px;
  transition: background 180ms ease, transform 180ms ease;
}

.header-cta:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  min-height: calc(100svh - 92px);
  padding: clamp(64px, 8vw, 122px) clamp(24px, 6vw, 112px) clamp(72px, 9vw, 132px);
  background:
    radial-gradient(circle at 8% 82%, rgba(114, 191, 210, 0.18), transparent 22%),
    var(--paper);
}

.hero-copy {
  align-self: center;
  padding-right: clamp(24px, 5vw, 96px);
}

.eyebrow {
  margin: 0 0 24px;
  color: #54717c;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.22em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy-deep);
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(48px, 6.4vw, 94px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 670px;
  margin: 34px 0 0;
  color: #4f646c;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 2;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

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

.button-primary:hover {
  background: var(--navy-deep);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.button-ghost:hover {
  background: white;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
  margin: 64px 0 0;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding: 20px 20px 0 0;
}

.hero-facts div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  margin-bottom: 8px;
  color: #72838a;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hero-facts dd {
  margin: 0;
  font-size: 13px;
}

.hero-visual {
  position: relative;
  align-self: center;
  width: min(100%, 650px);
  justify-self: end;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(18, 61, 91, 0.2);
  border-radius: 50%;
  content: "";
}

.hero-visual::before {
  top: -56px;
  right: -80px;
  width: 190px;
  height: 190px;
}

.hero-visual::after {
  bottom: 42px;
  left: -72px;
  width: 110px;
  height: 110px;
}

.hero-image-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 49% 49% 25% 25% / 36% 36% 22% 22%;
  box-shadow: 0 38px 70px rgba(26, 75, 94, 0.16);
}

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

.hero-stamp {
  position: absolute;
  z-index: 2;
  right: -20px;
  bottom: -34px;
  display: flex;
  flex-direction: column;
  min-width: 210px;
  margin: 0;
  padding: 20px 24px;
  border: 1px solid rgba(18, 61, 91, 0.14);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(26, 57, 72, 0.12);
}

.hero-stamp span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hero-stamp strong {
  margin-top: 4px;
  color: var(--navy);
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 20px;
  font-weight: 600;
}

.marquee {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--navy-deep);
  color: white;
  white-space: nowrap;
}

.marquee div {
  width: max-content;
  min-width: 100%;
  text-align: center;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: 0.12em;
}

.marquee i {
  padding: 0 clamp(18px, 3vw, 52px);
  color: var(--ice);
  font-style: normal;
}

.section {
  padding: clamp(86px, 10vw, 150px) clamp(24px, 6vw, 112px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: 70px;
  margin-bottom: clamp(52px, 7vw, 94px);
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.works-section {
  background: var(--white);
}

.project {
  position: relative;
}

.project-intro {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 34px;
  margin-bottom: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.project-index {
  color: #6f8188;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.project-type {
  margin: 0 0 12px;
  color: #68808a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project h3 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 600;
  line-height: 1.25;
}

.project-intro > div:last-child > p:last-child,
.project-card-copy > p:last-child {
  max-width: 830px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

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

.work-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.41;
  margin: 0;
  background: #eee7db;
}

.work-image-wide {
  grid-column: auto;
  aspect-ratio: 1.41;
}

.work-image-portrait {
  display: block;
}

.work-image img,
.project-card-image img,
.sign-detail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-image:hover img,
.project-card-image:hover img,
.sign-detail:hover img {
  transform: scale(1.025);
}

.work-image figcaption,
.sign-detail figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--navy);
  font-size: 10px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.project-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 100px;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  background: var(--paper);
}

.project-card > .project-index {
  padding: 4px 2px 18px;
}

.project-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.45;
  margin: 0;
  background: white;
}

.project-card-copy {
  padding: 34px 18px 28px;
}

.project-card h3 {
  font-size: clamp(26px, 2.6vw, 38px);
}

.project-chicken {
  background: #e9f0fa;
}

.sign-detail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3.4;
  margin: auto 18px 18px;
  background: white;
}

.sign-detail img {
  object-fit: cover;
  object-position: center 50%;
}

.services-section {
  background: var(--navy-deep);
  color: white;
}

.light-heading h2,
.light-heading .eyebrow,
.light-heading > p {
  color: white;
}

.light-heading .eyebrow,
.light-heading > p {
  opacity: 0.68;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card {
  min-height: 420px;
  padding: 26px 26px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card > span {
  display: block;
  margin-bottom: 72px;
  color: var(--ice);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.service-card h3 {
  margin: 0 0 18px;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 28px;
  font-weight: 500;
}

.service-card > p {
  min-height: 102px;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.85;
}

.service-card ul {
  margin: 34px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.service-card li {
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
}

.service-card li::before {
  margin-right: 9px;
  color: var(--ice);
  content: "—";
}

.process-section {
  background: var(--ice-light);
}

.compact-heading {
  grid-template-columns: 1fr;
  margin-bottom: 56px;
}

.compact-heading h2 {
  max-width: 760px;
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(18, 61, 91, 0.22);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 90px 210px 1fr;
  align-items: center;
  gap: 30px;
  min-height: 126px;
  border-bottom: 1px solid rgba(18, 61, 91, 0.22);
}

.process-list span {
  color: #5c7a86;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.process-list h3 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 27px;
  font-weight: 600;
}

.process-list p {
  margin: 0;
  color: #54707b;
  font-size: 14px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(400px, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 130px);
  background: var(--white);
}

.about-mark {
  position: relative;
  overflow: hidden;
  max-width: 620px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ice);
}

.about-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy .eyebrow {
  margin-bottom: 20px;
}

.about-copy h2 {
  max-width: 760px;
  margin: 0 0 34px;
  color: var(--navy-deep);
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(36px, 4.3vw, 62px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.about-copy > p:not(.eyebrow) {
  max-width: 730px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: clamp(40px, 8vw, 140px);
  padding: clamp(86px, 10vw, 150px) clamp(24px, 6vw, 112px);
  background: var(--ice);
}

.contact-section .eyebrow {
  color: rgba(11, 42, 61, 0.65);
}

.contact-section h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.05em;
}

.contact-content {
  align-self: end;
}

.contact-content > p {
  margin: 0 0 34px;
  color: rgba(11, 42, 61, 0.76);
  font-size: 14px;
  line-height: 2;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.button-light {
  background: var(--white);
  color: var(--navy-deep);
}

.button-light:hover {
  background: var(--navy-deep);
  color: white;
}

.text-link {
  font-size: 14px;
  letter-spacing: 0.06em;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 30px;
  padding: 48px clamp(24px, 6vw, 112px);
  background: var(--navy-deep);
  color: white;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  font-size: 15px;
  letter-spacing: 0.12em;
}

.footer-brand span,
footer p,
footer a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  letter-spacing: 0.1em;
}

footer p {
  margin: 0;
}

footer a {
  justify-self: end;
  color: white;
}

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

  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.82fr;
    padding-right: 54px;
    padding-left: 54px;
  }

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

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

  .about-section {
    gap: 56px;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 82px;
  }

  .site-header {
    min-height: 76px;
  }

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

  .brand small {
    display: none;
  }

  .header-cta {
    padding: 11px 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 72px 24px 96px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-visual {
    width: min(78vw, 570px);
    margin-top: 86px;
    justify-self: center;
  }

  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-pair {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 76px;
  }

  .process-list li {
    grid-template-columns: 56px 130px 1fr;
    gap: 18px;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-mark {
    width: min(82vw, 540px);
    justify-self: center;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 10px 16px;
  }

  .brand strong {
    font-size: 13px;
  }

  .header-cta {
    gap: 8px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 64px);
    letter-spacing: -0.065em;
  }

  .hero-lead br {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .hero-facts div + div {
    margin-top: 18px;
    padding-left: 0;
    border-left: 0;
  }

  .hero-visual {
    width: 88vw;
  }

  .hero-stamp {
    right: -8px;
    bottom: -42px;
    min-width: 190px;
    padding: 16px 18px;
  }

  .hero-visual::before {
    right: -50px;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .section-heading h2 {
    font-size: 42px;
  }

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

  .work-image-wide {
    grid-column: auto;
    aspect-ratio: 1.41;
  }

  .work-image-portrait {
    display: block;
    aspect-ratio: 1.41;
  }

  .project-card {
    padding: 12px;
  }

  .project-card-copy {
    padding: 28px 10px 22px;
  }

  .sign-detail {
    margin-right: 10px;
    margin-left: 10px;
  }

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

  .service-card {
    min-height: auto;
    padding: 26px 24px 34px;
  }

  .service-card > span {
    margin-bottom: 44px;
  }

  .service-card > p {
    min-height: auto;
  }

  .process-list li {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .process-list p {
    grid-column: 2;
  }

  .about-section {
    padding-top: 84px;
  }

  .about-copy h2 {
    font-size: 38px;
  }

  .contact-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .contact-section h2 {
    font-size: 44px;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    align-self: center;
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  footer a {
    justify-self: start;
  }
}

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

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