:root {
  --black: #050505;
  --black-2: #0b0b0d;
  --white: #f5f5f7;
  --white-dim: rgba(245, 245, 247, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  color-scheme: dark;
}

html,
body {
  background: var(--black);
  color: var(--white);
  font-family: Inter, "Segoe UI", "PingFang TC", "Noto Sans TC", sans-serif;
  letter-spacing: 0.01em;
  min-height: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html,
body,
*,
*::before,
*::after {
  cursor: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
}

#tide {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.frost-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255, 255, 255, 0.1), transparent 55%),
    radial-gradient(900px 600px at 80% 110%, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.18) 0%, rgba(5, 5, 5, 0.42) 100%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursors {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.cursors.is-on {
  opacity: 1;
}

.cursor-aura,
.cursor-glass,
.cursor-core {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.cursor-aura {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 68%);
  opacity: 0.55;
}

.cursor-glass {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.cursor-core {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: #fff;
  box-shadow: none;
}

.glass,
.glass-card,
.glass-chip,
.glass-strip,
.glass-heavy,
.nav,
.footer,
.btn-glass {
  background: var(--glass);
  backdrop-filter: blur(42px) saturate(180%);
  -webkit-backdrop-filter: blur(42px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.glass-heavy {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(56px) saturate(200%);
  -webkit-backdrop-filter: blur(56px) saturate(200%);
}

.glass-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.22), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.glass-card:hover::after {
  opacity: 1;
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(48px) saturate(160%);
  -webkit-backdrop-filter: blur(48px) saturate(160%);
}

.loader-stage {
  perspective: 1200px;
  text-align: center;
}

.loader-mark {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 28px;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.loader-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loader-word {
  font-size: 13px;
  letter-spacing: 0.52em;
  font-weight: 500;
}

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-140px);
  z-index: 40;
  width: min(1080px, calc(100% - 32px));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 12px;
  border-radius: 28px;
  overflow: visible;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.nav-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
  color: var(--white-dim);
}

.nav-links > li > a {
  position: relative;
  transition: color 0.3s;
}

.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.nav-links > li > a:hover {
  color: #fff;
}

.nav-links > li > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-drop {
  position: relative;
  perspective: 900px;
}

.nav-drop > a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0 2px 7px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  transition: transform 0.4s var(--ease);
}

.nav-drop:hover > a::before,
.nav-drop.is-open > a::before {
  transform: rotate(225deg);
}

.drop-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  right: auto;
  width: min(820px, calc(100vw - 48px));
  padding: 18px 18px 12px;
  border-radius: 22px;
  background: rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(36px) saturate(170%);
  -webkit-backdrop-filter: blur(36px) saturate(170%);
  border: 1px solid var(--line);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px) rotateX(-14deg);
  transform-origin: 50% 0;
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease), visibility 0.45s;
}

.drop-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 16px;
}

.nav-drop:hover .drop-panel,
.nav-drop:focus-within .drop-panel,
.nav-drop.is-open .drop-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) rotateX(0);
}

.drop-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 8px;
  padding: 0 6px;
}

.drop-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.drop-col:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.drop-col:nth-child(n + 3) {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 14px;
}

.drop-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.drop-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 6px;
  font-size: 13px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease), color 0.3s;
}

.drop-grid a i {
  font-style: normal;
  opacity: 0.35;
  font-size: 12px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.drop-grid a:hover {
  transform: translateX(4px);
}

.drop-grid a:hover i {
  opacity: 1;
  transform: translate(3px, -3px);
}

.drop-grid a span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drop-grid a em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--white-dim);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 1.5px;
  background: #fff;
}

.nav-toggle span:first-child {
  top: 17px;
}

.nav-toggle span:last-child {
  top: 24px;
}

main,
footer {
  position: relative;
  z-index: 3;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  padding: 140px clamp(22px, 5vw, 72px) 88px;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.hero-layout {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 5vh, 56px);
}

.hero-index {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.hero-kicker {
  margin-bottom: 0;
}

.hero-kicker i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(4.4rem, 16vw, 12.5rem);
  font-weight: 620;
  line-height: 0.82;
  letter-spacing: -0.055em;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.hero-word {
  display: block;
}

.hero-word-alt {
  align-self: flex-end;
  margin-top: 0.06em;
  margin-right: clamp(0px, 4vw, 72px);
  font-size: 0.38em;
  letter-spacing: 0.14em;
  font-weight: 500;
  opacity: 0.72;
}

.hero-title .char {
  display: inline-block;
  transform-style: preserve-3d;
  transform-origin: 50% 80%;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
  margin-top: clamp(36px, 7vh, 72px);
}

.hero-sub {
  margin-top: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.hero-side {
  max-width: 420px;
  justify-self: end;
}

.hero-copy {
  margin-top: 0;
  max-width: none;
  color: var(--white-dim);
  line-height: 1.85;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform 0.45s var(--ease), background 0.3s, color 0.3s;
}

.btn-solid {
  background: #fff;
  color: #050505;
}

.btn-solid:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-glass {
  color: #fff;
}

.scroll-hint {
  position: relative;
  width: min(1280px, 100%);
  margin: 48px auto 0;
  align-self: center;
  justify-content: flex-start;
  gap: 12px;
}

.scroll-hint b {
  width: 1px;
  height: 28px;
  background: linear-gradient(#fff, transparent);
  animation: drip 1.8s var(--ease) infinite;
}

@keyframes drip {
  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.3;
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.marquee-wrap {
  padding: 0 20px 20px;
}

.glass-strip {
  overflow: hidden;
  border-radius: 24px;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: drift 28s linear infinite;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.18em;
  font-weight: 500;
  opacity: 0.88;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
  perspective: 1400px;
}

.section-head {
  margin-bottom: 42px;
}

.section-title {
  margin-top: 16px;
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 560;
}

.word,
.char {
  display: inline-block;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.about-grid,
.work-stack,
.work-split,
.contact-grid {
  display: grid;
  gap: 16px;
}

.about-grid {
  grid-template-columns: 1fr 1fr;
}

.about-wide {
  grid-column: 1 / -1;
}

.glass-card {
  border-radius: 28px;
  padding: 32px;
}

.card-index {
  display: block;
  margin-bottom: 28px;
  font-size: 12px;
  letter-spacing: 0.24em;
  opacity: 0.55;
}

.glass-card h3 {
  font-size: 1.55rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.glass-card p {
  color: var(--white-dim);
  line-height: 1.8;
  font-size: 15px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stat-row strong {
  display: block;
  font-size: 2.4rem;
  letter-spacing: -0.05em;
}

.stat-row em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.work-stack {
  grid-template-columns: 1fr;
}

.work-split {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}

.work-panel {
  min-height: 100%;
}

.work-panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.work-panel-head .card-index {
  margin-bottom: 8px;
}

.work-panel-head h3 {
  margin-bottom: 6px;
}

.work-panel-head p {
  margin-bottom: 8px;
}

.work-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.work-brand img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  background: #fff;
}

.work-url {
  display: inline-block;
  margin-top: 2px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.service-grid,
.service-list {
  display: grid;
}

.service-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  letter-spacing: 0.02em;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), background 0.4s, padding 0.4s;
}

.service-link i {
  font-style: normal;
  font-size: 15px;
  opacity: 0.45;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}

.service-link span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-link small {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--white-dim);
}

.service-link:hover {
  transform: translateX(8px) translateZ(28px);
  padding-left: 8px;
}

.service-link:hover i {
  opacity: 1;
  transform: translate3d(4px, -4px, 12px);
}

.work-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 36px;
  color: #fff;
}

.vision {
  width: min(900px, calc(100% - 40px));
}

.vision-panel {
  padding: 56px 48px;
}

.vision-panel blockquote {
  margin: 28px 0 36px;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: -0.035em;
  font-weight: 450;
}

.vision-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.contact-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

.contact-mail,
.contact-address {
  display: inline-block;
  margin: 10px 0 16px;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.contact-actions {
  margin-top: 24px;
}

.contact-names {
  display: grid;
  align-content: space-between;
  gap: 24px;
}

.contact-names small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 6px;
}

.contact-names strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.45;
  font-weight: 560;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 28px;
  border-radius: 28px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.footer-brand b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.footer-brand span,
.footer p {
  font-size: 12px;
  color: var(--white-dim);
}

@media (max-width: 960px) {
  .work-split,
  .service-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(8, 8, 8, 0.55);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    border: 1px solid var(--line);
  }

  .drop-panel {
    position: static;
    width: 100%;
    margin-top: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: max-height 0.5s var(--ease), padding 0.4s var(--ease);
  }

  .nav-drop.is-open .drop-panel {
    max-height: 80vh;
    padding: 10px 0 0;
    pointer-events: auto;
    overflow: auto;
  }

  .drop-cols,
  .drop-grid {
    grid-template-columns: 1fr;
  }

  .drop-col:nth-child(even),
  .drop-col:nth-child(n + 3),
  .drop-col + .drop-col {
    border-left: 0;
    padding-left: 0;
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
}

@media (pointer: coarse) {
  .cursors {
    display: none;
  }
}

@media (max-width: 680px) {

  .stat-row {
    grid-template-columns: 1fr;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-side {
    justify-self: start;
    max-width: none;
  }

  .hero-word-alt {
    align-self: flex-start;
    margin-right: 0;
    margin-left: 12vw;
  }

  .hero-actions,
  .footer,
  .vision-meta {
    flex-direction: column;
  }

  .vision-panel {
    padding: 32px 22px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
