:root {
  --black: #030507;
  --black-soft: #060a0e;
  --navy: #091724;
  --navy-light: #10283d;
  --white: #f2f4f5;
  --muted: #96a1aa;
  --line: rgba(255, 255, 255, 0.14);
  --teal: #548c8b;
  --gold: #b9a33d;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

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

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  background:
    radial-gradient(circle at 50% 48%, #071521 0%, #03070b 45%, #020304 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s ease, visibility 0s linear .34s;
}

body.page-leaving::after {
  visibility: visible;
  opacity: 1;
  transition: opacity .34s ease;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  color: var(--black);
  background: var(--white);
  transform: translateY(-150%);
  transition: transform .25s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 clamp(24px, 4vw, 72px);
  border-bottom: 1px solid transparent;
  transition: height .45s var(--ease), background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}

.site-header.is-scrolled {
  height: 72px;
  background: rgba(3, 5, 7, .82);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

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

.header-brand img {
  width: 42px;
  height: 38px;
  object-fit: cover;
  object-position: center 4%;
}

.header-brand span {
  display: grid;
  gap: 2px;
}

.header-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: .2em;
}

.header-brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 46px);
}

.site-nav a,
.site-nav button {
  position: relative;
  padding: 12px 0;
  color: rgba(242, 244, 245, .82);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .08em;
}

.site-nav a::after,
.site-nav button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}

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

.nav-about {
  position: relative;
}

.nav-about-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-about-icon {
  display: block;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .35s var(--ease), margin .35s var(--ease);
}

.nav-about.is-open .nav-about-icon {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.nav-about-panel {
  position: absolute;
  top: calc(100% + 9px);
  left: -20px;
  z-index: 4;
  width: min(224px, calc(100vw - 40px));
  padding: 7px;
  overflow: hidden;
  visibility: hidden;
  background: rgba(7, 16, 24, .97);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-9px) scaleY(.94);
  transform-origin: top center;
  transition: opacity .36s ease, transform .42s var(--ease), visibility .42s;
}

.nav-about-panel::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 15px;
}

.nav-about.is-open .nav-about-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scaleY(1);
  transition-delay: 0s;
}

.site-nav .nav-about-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: color .16s ease, transform .16s ease;
}

.site-nav .nav-about-panel button:last-child {
  border-bottom: 0;
}

.site-nav .nav-about-panel button::after {
  display: none;
}

.nav-about-panel strong {
  font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .07em;
  line-height: 1.25;
}

.nav-about-panel small {
  display: none;
}

.nav-about-panel button:hover,
.nav-about-panel button:focus-visible {
  color: #9fd0cd;
  outline: none;
  transform: translateX(3px);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 45%, rgba(7, 28, 38, .68) 0, rgba(3, 12, 19, .3) 36%, transparent 68%),
    linear-gradient(145deg, #010406 0%, #031018 52%, #010305 100%);
}

.hero-atmosphere,
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-atmosphere {
  z-index: -2;
  overflow: hidden;
  background: #02080d;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(0, 4, 7, .08) 0 20%, rgba(0, 5, 8, .22) 44%, rgba(0, 3, 6, .58) 100%),
    linear-gradient(180deg, rgba(0, 3, 6, .28), rgba(0, 4, 7, .08) 28%, rgba(0, 4, 7, .1) 70%, rgba(0, 3, 5, .4));
}

.hero-material-base,
.hero-fiber,
.hero-light-stream,
.hero-floor-reflection,
.hero-particles {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-material-base {
  inset: -3.5%;
  z-index: 1;
  background-image:
    linear-gradient(180deg, rgba(0, 7, 11, .08), rgba(0, 4, 7, .22)),
    url("../images/weitex-material-hero-bg-v1.jpg");
  background-position: center;
  background-size: cover;
  filter: saturate(.76) brightness(.57) contrast(1.05);
  transform: scale(1.045) translate3d(-.8%, .4%, 0);
  animation: material-drift 30s ease-in-out infinite alternate;
}

.hero-fiber {
  z-index: 2;
  opacity: .12;
  background:
    repeating-linear-gradient(104deg, transparent 0 7px, rgba(117, 215, 208, .2) 8px, transparent 9px 18px),
    linear-gradient(102deg, transparent 5%, rgba(53, 151, 151, .5) 45%, rgba(151, 225, 211, .26) 60%, transparent 88%);
  filter: blur(.4px) drop-shadow(0 0 18px rgba(60, 176, 172, .12));
  mix-blend-mode: screen;
}

.hero-fiber-upper {
  top: -25%;
  right: -15%;
  width: 95%;
  height: 63%;
  border-radius: 48% 52% 58% 42%;
  -webkit-mask-image: radial-gradient(ellipse at 55% 45%, #000 0 32%, transparent 73%);
  mask-image: radial-gradient(ellipse at 55% 45%, #000 0 32%, transparent 73%);
  transform: rotate(-8deg) skewX(-12deg) translate3d(0, 0, 0);
  animation: fiber-upper-drift 23s ease-in-out infinite alternate;
}

.hero-fiber-side {
  bottom: -18%;
  left: -24%;
  width: 82%;
  height: 72%;
  border-radius: 58% 42% 45% 55%;
  -webkit-mask-image: radial-gradient(ellipse at 52% 50%, #000 0 27%, transparent 72%);
  mask-image: radial-gradient(ellipse at 52% 50%, #000 0 27%, transparent 72%);
  transform: rotate(18deg) skewX(9deg) translate3d(0, 0, 0);
  animation: fiber-side-drift 19s ease-in-out infinite alternate;
}

.hero-light-stream {
  top: -34%;
  left: -40%;
  z-index: 3;
  width: 72%;
  height: 145%;
  opacity: .075;
  background: linear-gradient(90deg, transparent 18%, rgba(96, 214, 202, .04) 36%, rgba(115, 224, 211, .34) 50%, rgba(61, 151, 154, .08) 62%, transparent 79%);
  filter: blur(24px);
  transform: rotate(37deg) translate3d(-20%, 8%, 0);
  animation: stream-pass 18.5s ease-in-out infinite;
}

.hero-floor-reflection {
  right: -8%;
  bottom: -14%;
  z-index: 4;
  width: 70%;
  height: 42%;
  opacity: .13;
  background: radial-gradient(ellipse at 64% 30%, rgba(204, 167, 71, .46), rgba(150, 105, 31, .1) 28%, transparent 65%);
  filter: blur(30px);
  transform: translate3d(0, 0, 0) scale(1.02);
  animation: floor-shimmer 26s ease-in-out infinite alternate;
}

.hero-particles {
  inset: 0;
  z-index: 5;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
}

.hero-particles-one {
  opacity: .19;
  background-image:
    radial-gradient(circle at 7% 34%, rgba(226, 187, 87, .8) 0 1px, transparent 2px),
    radial-gradient(circle at 13% 65%, rgba(212, 165, 62, .62) 0 1px, transparent 2px),
    radial-gradient(circle at 87% 24%, rgba(229, 189, 88, .7) 0 1px, transparent 2px),
    radial-gradient(circle at 93% 58%, rgba(208, 163, 72, .55) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 78% 73%, rgba(217, 175, 76, .5) 0 1px, transparent 2px);
  animation: particles-drift-one 21s ease-in-out infinite alternate;
}

.hero-particles-two {
  opacity: .12;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(231, 195, 101, .64) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 78%, rgba(204, 159, 65, .5) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 16%, rgba(218, 175, 72, .55) 0 1px, transparent 2px),
    radial-gradient(circle at 96% 42%, rgba(232, 193, 95, .6) 0 1px, transparent 2px);
  animation: particles-drift-two 27s ease-in-out infinite alternate;
}

.hero-glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  z-index: 6;
  filter: blur(100px);
  opacity: .055;
  animation: atmosphere-breathe 13s ease-in-out infinite alternate;
}

.hero-glow-one {
  top: 17%;
  left: 25%;
  width: 42vw;
  height: 42vw;
  background: #1a7777;
}

.hero-glow-two {
  right: 6%;
  bottom: -2%;
  width: 30vw;
  height: 30vw;
  background: #675127;
  animation-duration: 17s;
  animation-delay: -5s;
}

.hero-grain {
  z-index: 8;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.hero-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: clamp(520px, min(46vw, 72vh), 900px);
  max-width: 88vw;
  place-items: center;
  text-align: center;
  transform: translate(-50%, -50%);
}

.hero-brand::before {
  content: "";
  position: absolute;
  top: 34%;
  left: 50%;
  z-index: -1;
  width: min(460px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 144, 145, .12) 0, rgba(24, 88, 98, .055) 38%, transparent 70%);
  filter: blur(22px);
  transform: translate(-50%, -50%) scale(.92);
  animation: logo-aura 10.5s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-logo-wrap {
  position: relative;
  width: clamp(390px, min(33vw, 55vh), 680px);
  max-width: 78vw;
  overflow: hidden;
}

.hero-logo {
  width: 100%;
  color: var(--white);
  filter: drop-shadow(0 20px 55px rgba(0, 0, 0, .55));
}

.symbol-piece {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.symbol-left,
.symbol-right {
  fill: var(--teal);
  filter: drop-shadow(0 0 20px rgba(84, 140, 139, .15));
}

.symbol-left {
  transform: translate(-46px, -10px);
}

.symbol-right {
  transform: translate(46px, -10px);
}

.symbol-diamond {
  fill: var(--gold);
  transform: translateY(-28px) scale(.72);
  filter: drop-shadow(0 0 26px rgba(185, 163, 61, .28));
}

.hero-word {
  fill: currentColor;
  opacity: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
  font-weight: 700;
  letter-spacing: 13px;
}

.logo-light {
  position: absolute;
  top: -14%;
  bottom: 30%;
  left: -45%;
  z-index: 2;
  width: 36%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .14) 34%, rgba(255, 255, 255, .035) 56%, transparent 76%);
  filter: blur(17px);
  opacity: 0;
  transform: skewX(-14deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-company,
.hero-intro {
  margin: 0;
  opacity: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
  transform: translateY(14px);
}

.hero-company {
  margin-top: 8px;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(15px, 1.18vw, 24px);
  letter-spacing: .42em;
  text-indent: .42em;
}

.hero-intro {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(11px, .72vw, 14px);
  letter-spacing: .24em;
  text-indent: .24em;
}

.is-ready .symbol-left,
.is-ready .symbol-right {
  animation: wing-in 1.9s .55s var(--ease) forwards;
}

.is-ready .symbol-diamond {
  animation: diamond-in 1.55s 1.35s var(--ease) forwards;
}

.is-ready .hero-word {
  animation: word-in 1.9s 2.25s var(--ease) forwards;
}

.is-ready .logo-light {
  animation: light-pass 1.35s 2.95s ease-in-out forwards;
}

.is-ready .hero-company {
  animation: text-rise 1.2s 3.5s var(--ease) forwards;
}

.is-ready .hero-intro {
  animation: text-rise 1.2s 3.9s var(--ease) forwards;
}

.intro-complete .symbol-piece,
.intro-complete .hero-word,
.intro-complete .hero-company,
.intro-complete .hero-intro {
  animation: none !important;
  opacity: 1;
  transform: none;
}

.intro-complete .logo-light {
  display: none;
}

.skip-intro {
  position: absolute;
  right: clamp(24px, 4vw, 72px);
  bottom: 34px;
  z-index: 3;
  padding: 8px 0;
  color: rgba(255, 255, 255, .48);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .16em;
  transition: color .25s ease, opacity .35s ease;
}

.skip-intro:hover,
.skip-intro:focus-visible {
  color: var(--white);
}

.intro-complete .skip-intro {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: max(clamp(24px, 4vw, 72px), calc((100% - 1500px) / 2));
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 62px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .18);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  animation: cue-line 2.2s ease-in-out infinite;
}

.business {
  padding: clamp(110px, 14vw, 210px) clamp(20px, 4vw, 72px) clamp(80px, 9vw, 140px);
  background:
    radial-gradient(circle at 15% 30%, rgba(15, 42, 63, .23), transparent 35%),
    var(--black-soft);
}

.business-heading {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  align-items: end;
  max-width: 1500px;
  margin: 0 auto clamp(54px, 7vw, 100px);
}

.business-heading p,
.contact-intro p,
.modal-header p,
.textile-panel > p {
  margin: 0;
  color: var(--teal);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.business-heading h2,
.contact-intro h2 {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .03em;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1500px;
  min-height: min(72vw, 820px);
  margin: 0 auto;
  border: 1px solid var(--line);
}

.business-card {
  position: relative;
  display: block;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
  cursor: pointer;
  text-align: left;
}

.business-card + .business-card {
  border-left: 1px solid var(--line);
}

.business-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.15s var(--ease), filter 1.15s var(--ease);
}

.business-textile img {
  object-position: 44% center;
  filter: brightness(1.14) saturate(.84) contrast(1.02);
}

.business-flooring img {
  object-position: center center;
  filter: brightness(.92) saturate(.88) contrast(1.02);
}

.business-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 3, 5, .02) 8%, rgba(1, 4, 7, .04) 44%, rgba(1, 3, 5, .7) 100%);
  transition: background .8s ease;
}

.business-copy {
  position: absolute;
  right: clamp(28px, 4vw, 62px);
  bottom: clamp(38px, 5vw, 70px);
  left: clamp(28px, 4vw, 62px);
  display: grid;
  gap: 14px;
}

.business-copy small {
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.business-copy strong {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(30px, 3.8vw, 60px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .04em;
}

.business-copy > span {
  max-width: 390px;
  color: rgba(255, 255, 255, .63);
  font-size: 13px;
  letter-spacing: .07em;
}

.business-action {
  position: absolute;
  top: 34px;
  right: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  letter-spacing: .14em;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.business-action i {
  font-size: 18px;
  font-style: normal;
}

.business-card:hover img,
.business-card:focus-visible img {
  transform: scale(1.045);
  filter: brightness(1.05) saturate(.94) contrast(1.02);
}

.business-card:hover .business-action,
.business-card:focus-visible .business-action {
  opacity: 1;
  transform: translateY(0);
}

.contact {
  padding: clamp(110px, 13vw, 190px) clamp(24px, 7vw, 110px) 72px;
  background:
    linear-gradient(140deg, transparent 0 60%, rgba(12, 34, 51, .22) 100%),
    #030507;
}

.contact-intro {
  max-width: 1280px;
  margin: 0 auto 80px;
}

.contact-intro h2 {
  margin-top: 18px;
}

.contact-intro > span {
  display: block;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .06em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 50px;
  border-top: 1px solid var(--line);
}

.contact-primary {
  display: grid;
  align-content: start;
  gap: 16px;
}

.contact-primary a {
  width: fit-content;
  font-family: "Songti TC", STSong, "Noto Serif TC", serif;
  font-size: clamp(20px, 2.45vw, 34px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: .025em;
  transition: color .25s ease;
}

.contact-primary a:hover,
.contact-primary a:focus-visible {
  color: var(--teal);
}

.contact address {
  display: grid;
  align-content: start;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
  letter-spacing: .05em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(24px, 4vw, 72px);
  color: rgba(255, 255, 255, .42);
  background: #020304;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .12em;
}

.site-footer > span {
  color: rgba(255, 255, 255, .75);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: .25em;
}

.site-footer a {
  justify-self: end;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 3, 5, .86);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 40px));
  max-height: calc(100svh - 40px);
  overflow: hidden;
  color: var(--white);
  background: #071018;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
}

.modal-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 36px 42px 28px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 8px 0 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 34px;
  font-weight: 400;
}

.modal-close {
  position: relative;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.modal-close span::before,
.modal-close span::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 12px;
  width: 17px;
  height: 1px;
  background: var(--white);
}

.modal-close span::before {
  transform: rotate(45deg);
}

.modal-close span::after {
  transform: rotate(-45deg);
}

.about-tabs {
  display: flex;
  gap: 26px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
}

.about-tabs button {
  position: relative;
  padding: 20px 0 17px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .08em;
}

.about-tabs button[aria-selected="true"] {
  color: var(--white);
}

.about-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--teal);
}

.about-content {
  max-height: calc(100svh - 220px);
  padding: 32px;
  overflow: auto;
  overscroll-behavior: contain;
}

.about-content img {
  width: min(760px, 100%);
  height: auto;
  margin: 0 auto 22px;
}

.textile-panel {
  display: grid;
  width: min(620px, calc(100vw - 40px));
  min-height: 540px;
  padding: 62px;
  place-items: center;
  align-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(20, 59, 80, .4), transparent 42%),
    #050a0f;
}

.textile-panel .modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
}

.textile-panel svg {
  width: 134px;
  height: 112px;
  margin: 28px 0 8px;
}

.textile-panel h2 {
  margin: 0;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .06em;
}

.textile-panel > span {
  margin: 18px 0 34px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .07em;
}

.textile-confirm {
  padding: 13px 24px;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .12em;
  transition: background .25s ease, color .25s ease;
}

.textile-confirm:hover,
.textile-confirm:focus-visible {
  color: var(--black);
  background: var(--white);
}

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  color: #edf2f2;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.chat-launcher {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #edf2f2;
  background: linear-gradient(135deg, rgba(9, 25, 33, .94), rgba(3, 9, 14, .96));
  border: 1px solid rgba(84, 140, 139, .5);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 16px 42px rgba(0, 0, 0, .46),
    0 0 24px rgba(84, 140, 139, .08);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}

.chat-launcher:hover,
.chat-launcher:focus-visible {
  border-color: rgba(185, 163, 61, .7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 46px rgba(0, 0, 0, .5),
    0 0 28px rgba(84, 140, 139, .15);
  outline: none;
  transform: translateY(-2px);
}

.chat-launcher-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 5px rgba(185, 163, 61, .1),
    0 0 14px rgba(185, 163, 61, .3);
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  height: min(640px, calc(100svh - 110px));
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 0, rgba(84, 140, 139, .13), transparent 32%),
    linear-gradient(160deg, #091721 0%, #050b10 58%, #03070a 100%);
  border: 1px solid rgba(84, 140, 139, .42);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 30px 90px rgba(0, 0, 0, .62),
    0 0 38px rgba(24, 88, 98, .12);
  grid-template-rows: auto 1fr auto auto auto;
  animation: chat-panel-in .36s var(--ease) both;
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, rgba(16, 40, 54, .76), rgba(5, 13, 19, .54));
  border-bottom: 1px solid rgba(84, 140, 139, .24);
}

.chat-header p,
.chat-header h2,
.chat-message p,
.chat-notice {
  margin: 0;
}

.chat-header p {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.chat-header h2 {
  margin-top: 3px;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: .04em;
}

.chat-close {
  width: 38px;
  height: 38px;
  padding: 0;
  color: rgba(242, 244, 245, .76);
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.chat-close:hover,
.chat-close:focus-visible {
  color: var(--white);
  background: rgba(84, 140, 139, .15);
  border-color: rgba(84, 140, 139, .46);
  outline: none;
}

.chat-messages {
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(84, 140, 139, .42) transparent;
}

.chat-message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 12px;
  padding: 11px 13px;
  color: #c7d0d3;
  background: rgba(16, 36, 47, .8);
  border: 1px solid rgba(84, 140, 139, .16);
  border-radius: 14px 14px 14px 3px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.chat-message.is-user {
  margin-left: auto;
  color: #f4f7f7;
  background: linear-gradient(135deg, rgba(69, 124, 125, .92), rgba(33, 76, 85, .94));
  border-color: rgba(124, 184, 180, .24);
  border-radius: 14px 14px 3px 14px;
}

.chat-message.is-status {
  color: #7f999f;
  background: transparent;
  border-color: transparent;
  font-size: 12px;
}

.chat-suggestions {
  display: flex;
  gap: 7px;
  padding: 0 16px 12px;
  overflow-x: auto;
}

.chat-suggestions button {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: #9fb4b8;
  background: rgba(5, 14, 20, .62);
  border: 1px solid rgba(84, 140, 139, .28);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
}

.chat-suggestions button:hover,
.chat-suggestions button:focus-visible {
  color: #e4efef;
  background: rgba(84, 140, 139, .13);
  border-color: rgba(84, 140, 139, .68);
  outline: none;
}

.chat-form {
  display: grid;
  padding: 12px;
  background: rgba(2, 7, 11, .58);
  border-top: 1px solid rgba(84, 140, 139, .2);
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.chat-form textarea {
  width: 100%;
  max-height: 112px;
  padding: 10px 12px;
  resize: none;
  color: #e7eeee;
  background: rgba(11, 26, 35, .86);
  border: 1px solid rgba(84, 140, 139, .3);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.chat-form textarea::placeholder {
  color: #6f858b;
}

.chat-form textarea:focus {
  border-color: rgba(185, 163, 61, .58);
  box-shadow: 0 0 0 3px rgba(185, 163, 61, .07);
  outline: none;
}

.chat-form button {
  align-self: stretch;
  padding: 0 15px;
  color: #081014;
  background: linear-gradient(145deg, #d0bc55, #a88e2e);
  border: 1px solid rgba(232, 211, 107, .36);
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: filter .2s ease, transform .2s var(--ease);
}

.chat-form button:hover,
.chat-form button:focus-visible {
  filter: brightness(1.08);
  outline: none;
  transform: translateY(-1px);
}

.chat-form button:disabled,
.chat-form textarea:disabled {
  cursor: wait;
  opacity: .55;
}

.chat-notice {
  padding: 0 16px 12px;
  color: #657a80;
  font-size: 10px;
  line-height: 1.5;
}

@keyframes chat-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes wing-in {
  0% { opacity: 0; }
  100% { opacity: 1; transform: none; }
}

@keyframes diamond-in {
  0% { opacity: 0; }
  100% { opacity: 1; transform: none; }
}

@keyframes word-in {
  0% { opacity: 0; letter-spacing: 13px; }
  100% { opacity: 1; letter-spacing: 5px; }
}

@keyframes light-pass {
  0% { left: -45%; opacity: 0; }
  28% { opacity: .42; }
  72% { opacity: .22; }
  100% { left: 112%; opacity: 0; }
}

@keyframes text-rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  to { opacity: .2; transform: scale(1.08) translate3d(2%, -2%, 0); }
}

@keyframes material-drift {
  0% { transform: scale(1.045) translate3d(-.8%, .4%, 0); }
  50% { transform: scale(1.055) translate3d(.5%, -.45%, 0); }
  100% { transform: scale(1.048) translate3d(.9%, .25%, 0); }
}

@keyframes fiber-upper-drift {
  0% { opacity: .07; transform: rotate(-8deg) skewX(-12deg) translate3d(-1.5%, 1%, 0) scaleX(.98); }
  52% { opacity: .13; transform: rotate(-6.5deg) skewX(-10deg) translate3d(1.5%, 2.2%, 0) scaleX(1.025); }
  100% { opacity: .09; transform: rotate(-8.5deg) skewX(-13deg) translate3d(2.2%, -.6%, 0) scaleX(1.01); }
}

@keyframes fiber-side-drift {
  0% { opacity: .07; transform: rotate(18deg) skewX(9deg) translate3d(-1%, 1.8%, 0) scale(.98); }
  48% { opacity: .12; transform: rotate(16.5deg) skewX(8deg) translate3d(1.8%, -.6%, 0) scale(1.02); }
  100% { opacity: .09; transform: rotate(18.8deg) skewX(10deg) translate3d(2.8%, 1%, 0) scale(1); }
}

@keyframes stream-pass {
  0%, 8% { opacity: .02; transform: rotate(37deg) translate3d(-23%, 9%, 0); }
  44% { opacity: .075; }
  72% { opacity: .05; }
  92%, 100% { opacity: .02; transform: rotate(37deg) translate3d(135%, -7%, 0); }
}

@keyframes floor-shimmer {
  0% { opacity: .08; transform: translate3d(-2%, 1%, 0) scale(1); }
  55% { opacity: .14; transform: translate3d(1.5%, -1%, 0) scale(1.045); }
  100% { opacity: .1; transform: translate3d(3%, 0, 0) scale(1.02); }
}

@keyframes particles-drift-one {
  0% { opacity: .08; transform: translate3d(0, 8px, 0); }
  45% { opacity: .18; }
  100% { opacity: .11; transform: translate3d(11px, -15px, 0); }
}

@keyframes particles-drift-two {
  0% { opacity: .09; transform: translate3d(4px, -5px, 0); }
  58% { opacity: .15; }
  100% { opacity: .06; transform: translate3d(-12px, 17px, 0); }
}

@keyframes atmosphere-breathe {
  to { opacity: .085; transform: scale(1.05) translate3d(1.2%, -1%, 0); }
}

@keyframes logo-aura {
  0% { opacity: .4; transform: translate(-50%, -50%) scale(.92); }
  55% { opacity: .72; }
  100% { opacity: .48; transform: translate(-50%, -50%) scale(1.045); }
}

@keyframes cue-line {
  0% { transform: translateX(-100%); }
  45%, 100% { transform: translateX(100%); }
}

/* Keep the centered identity restrained on wide, full-screen displays. */
@media (min-width: 1200px) {
  .hero-brand {
    width: clamp(460px, min(40vw, 62vh), 760px);
  }

  .hero-logo-wrap {
    width: clamp(360px, min(28vw, 46vh), 560px);
  }

  .hero-company {
    font-size: clamp(15px, 1vw, 20px);
  }

  .hero-intro {
    font-size: clamp(11px, .66vw, 13px);
  }
}

@media (min-width: 901px) {
  .business-heading {
    position: relative;
    grid-template-columns: 1fr;
  }

  .business-heading p,
  .business-heading h2 {
    grid-area: 1 / 1;
  }

  .business-heading p {
    align-self: end;
    justify-self: start;
  }

  .business-heading h2 {
    position: relative;
    left: 50%;
    width: max-content;
    max-width: 100%;
    justify-self: start;
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 74px;
    padding: 0 22px;
  }

  .site-header.is-scrolled {
    height: 66px;
  }

  .header-brand {
    min-width: auto;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-content: center;
    gap: 7px;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle i {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: transform .35s var(--ease);
  }

  .menu-open .menu-toggle i:first-of-type {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-open .menu-toggle i:last-of-type {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 0;
    right: -22px;
    left: -22px;
    display: grid;
    min-height: 100svh;
    align-content: center;
    gap: 5px;
    padding: 94px 28px 40px;
    background: rgba(3, 5, 7, .98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .35s ease, transform .35s var(--ease);
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-family: "Noto Serif TC", "Songti TC", serif;
    font-size: 22px;
    text-align: left;
  }

  .site-nav a::after,
  .site-nav button::after {
    display: none;
  }

  .nav-about {
    width: 100%;
  }

  .site-nav .nav-about-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-about-panel {
    position: static;
    width: 100%;
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;
    visibility: hidden;
    background: rgba(10, 23, 34, .72);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: max-height .4s var(--ease), padding .4s var(--ease), visibility 0s linear .4s;
  }

  .nav-about.is-open .nav-about-panel {
    max-height: 150px;
    padding: 4px 14px 10px;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav-about-panel::before {
    display: none;
  }

  .site-nav .nav-about-panel button {
    display: grid;
    gap: 4px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-family: "Noto Sans TC", "PingFang TC", sans-serif;
  }

  .nav-about-panel strong {
    font-size: 15px;
  }

  .nav-about-panel small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: .06em;
  }

  .business-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .business-heading h2 {
    justify-self: center;
    text-align: center;
  }

  .business-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .business-card {
    min-height: min(112vw, 680px);
  }

  .business-card + .business-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .business-action {
    opacity: 1;
    transform: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 620px) {
  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-panel {
    position: fixed;
    inset: 12px;
    width: auto;
    height: auto;
    max-height: none;
  }

  .chat-launcher {
    min-height: 46px;
    padding: 10px 16px;
  }

  .header-brand img {
    width: 36px;
    height: 33px;
  }

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

  .header-brand small {
    font-size: 9px;
  }

  .hero-brand {
    width: 86vw;
  }

  .hero-material-base {
    inset: -2.5%;
    background-position: 50% center;
    filter: saturate(.72) brightness(.5) contrast(1.03);
  }

  .hero-fiber-upper {
    top: -13%;
    right: -38%;
    width: 142%;
    height: 48%;
    opacity: .09;
  }

  .hero-fiber-side {
    bottom: -8%;
    left: -56%;
    width: 138%;
    height: 58%;
    opacity: .08;
  }

  .hero-light-stream {
    left: -76%;
    width: 108%;
    opacity: .055;
    filter: blur(30px);
  }

  .hero-floor-reflection {
    right: -25%;
    width: 112%;
    opacity: .1;
  }

  .hero-particles-one {
    opacity: .11;
    background-image:
      radial-gradient(circle at 9% 31%, rgba(226, 187, 87, .7) 0 1px, transparent 2px),
      radial-gradient(circle at 90% 56%, rgba(208, 163, 72, .5) 0 1px, transparent 2px),
      radial-gradient(circle at 78% 76%, rgba(217, 175, 76, .45) 0 1px, transparent 2px);
  }

  .hero-particles-two {
    display: none;
  }

  .hero-glow {
    filter: blur(72px);
  }

  .hero-logo-wrap {
    width: 78vw;
  }

  .hero-company {
    font-size: 14px;
    letter-spacing: .28em;
    text-indent: .28em;
  }

  .hero-intro {
    max-width: 280px;
    font-size: 10px;
    line-height: 1.8;
  }

  .skip-intro {
    right: 20px;
    bottom: 24px;
  }

  .scroll-cue {
    bottom: 28px;
    left: 16px;
  }

  .scroll-cue i {
    width: 42px;
  }

  .business {
    padding-right: 16px;
    padding-left: 16px;
  }

  .business-heading h2,
  .contact-intro h2 {
    font-size: 36px;
  }

  .business-card {
    min-height: 132vw;
  }

  .business-copy {
    right: 25px;
    bottom: 32px;
    left: 25px;
  }

  .business-copy strong {
    font-size: 34px;
  }

  .business-action {
    top: 23px;
    right: 23px;
  }

  .contact {
    padding-right: 22px;
    padding-left: 22px;
  }

  .contact-primary a {
    font-size: 20px;
  }

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

  .site-footer small {
    grid-row: 2;
  }

  .site-footer a {
    grid-row: 1;
    grid-column: 2;
  }

  .modal-panel {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
  }

  .modal-header {
    padding: 25px 22px 20px;
  }

  .modal-header h2 {
    font-size: 28px;
  }

  .about-tabs {
    padding: 0 22px;
  }

  .about-content {
    max-height: calc(100svh - 190px);
    padding: 18px 12px;
  }

  .textile-panel {
    width: calc(100vw - 20px);
    min-height: min(560px, calc(100svh - 20px));
    padding: 46px 24px;
  }
}

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

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

  .symbol-piece,
  .hero-word,
  .hero-company,
  .hero-intro,
  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .skip-intro {
    display: none;
  }

  .hero-material-base,
  .hero-fiber,
  .hero-light-stream,
  .hero-floor-reflection,
  .hero-particles,
  .hero-glow,
  .hero-brand::before {
    animation: none !important;
    will-change: auto;
  }

  .hero-material-base {
    transform: scale(1.045);
  }

  .hero-fiber-upper {
    opacity: .09;
    transform: rotate(-8deg) skewX(-12deg);
  }

  .hero-fiber-side {
    opacity: .08;
    transform: rotate(18deg) skewX(9deg);
  }

  .hero-light-stream {
    opacity: .04;
    transform: rotate(37deg) translate3d(38%, 0, 0);
  }

  .hero-floor-reflection {
    opacity: .1;
    transform: none;
  }

  .hero-brand::before {
    opacity: .48;
    transform: translate(-50%, -50%) scale(1);
  }

  body::after {
    transition-duration: .01ms !important;
  }
}
