:root {
  --black: #000000;
  --black-2: #050505;
  --white: #f5f5f7;
  --white-dim: rgba(245, 245, 247, 0.58);
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.04);
  --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(900px 500px at 35% -8%, rgba(255, 255, 255, 0.03), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.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,
.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);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}

.loader-stage {
  position: relative;
  width: min(640px, calc(100% - 48px));
  height: 56px;
  perspective: 900px;
}

.loader-since-wrap,
.loader-brand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.loader-since {
  font-size: 14px;
  letter-spacing: 0.48em;
  color: var(--white-dim);
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.loader-since .char,
.loader-name .char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.loader-rule {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 88px;
  height: 1px;
  margin-left: -44px;
  background: rgba(255, 255, 255, 0.55);
  transform: scaleX(0);
  transform-origin: 50% 50%;
}

.loader-rule.brand {
  position: static;
  left: auto;
  bottom: auto;
  width: 20px;
  height: 1px;
  margin-left: 0;
  transform: scaleX(0);
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.loader-brand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  transform-origin: 50% 50%;
}

.loader-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loader-name {
  font-size: 14px;
  line-height: 28px;
  letter-spacing: 0.22em;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
}

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(1120px, calc(100% - 40px));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin-top: 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
  visibility: hidden;
}

.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) 100px;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.hero-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(4.6rem, 16vw, 11rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.055em;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.hero-title .char {
  display: inline-block;
  transform-style: preserve-3d;
  transform-origin: 50% 80%;
}

.hero-sub {
  margin-top: 28px;
  max-width: 16ch;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.hero-copy {
  margin-top: 14px;
  max-width: 28ch;
  color: var(--white-dim);
  line-height: 1.75;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  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: #000;
}

.btn-solid:hover {
  transform: translateY(-2px);
}

.btn-glass {
  color: #fff;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-title {
  max-width: 12ch;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.section-lead {
  margin-top: 18px;
  max-width: 36ch;
  color: var(--white-dim);
  font-size: 16px;
  line-height: 1.8;
}

.word,
.char {
  display: inline-block;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.work-block {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.work-block:last-of-type {
  border-bottom: 1px solid var(--line);
}

.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.work-head h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.work-url,
.work-note {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--white-dim);
}

.work-url {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-grid,
.service-list {
  display: grid;
}

.service-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: opacity 0.3s, transform 0.35s var(--ease);
}

.service-link i {
  font-style: normal;
  font-size: 13px;
  opacity: 0.35;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}

.service-link:hover {
  opacity: 0.75;
}

.service-link:hover i {
  opacity: 1;
  transform: translate(2px, -2px);
}

.contact-plain {
  display: grid;
  gap: 14px;
  max-width: 36ch;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.contact-plain a {
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, opacity 0.3s;
}

.contact-plain a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.35);
  opacity: 0.8;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

@media (max-width: 960px) {
  .service-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% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 18px;
    padding: 18px 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-top: 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) {
  .hero-title {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .loader-stage {
    height: 56px;
  }

  .loader-brand {
    gap: 10px;
  }

  .loader-name {
    letter-spacing: 0.14em;
  }

  .loader-rule.brand {
    width: 12px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

html.bot .loader {
  display: none !important;
}

html.bot .nav {
  visibility: visible !important;
}

html.js .hero [data-hero-title] .char,
html.js .hero-sub,
html.js .hero-copy,
html.js .hero-actions {
  opacity: 0;
}
