:root {
    --tm-black: #070707;
    --tm-gold: #c6a15b;
    --tm-gold-bright: #e8d5a3;
    --tm-cream: #f4efe6;
    --tm-red: #6e1418;
    --tm-serif: "Noto Serif TC", "Noto Serif SC", "Songti TC", serif;
}

html { scroll-behavior: smooth; }

body.tianming {
    margin: 0;
    color: var(--tm-cream);
    background: #070707;
    font-family: var(--tm-serif);
}

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

#services,
#knowledge,
#about,
#masters,
#voices,
#flow,
#contact {
    scroll-margin-top: 4.8rem;
}

.tm-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 8, 8, 0.94);
    border-bottom: 1px solid rgba(232, 213, 163, 0.12);
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.tm-header.is-compact {
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(16px);
}

.tm-header-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0.8rem 1.35rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.tm-brand {
    text-decoration: none;
    color: var(--tm-cream);
}

.tm-brand-name {
    font-size: 1.55rem;
    letter-spacing: 0.32em;
    line-height: 1;
}

.tm-brand-sub {
    margin: 0.35rem 0 0;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--tm-gold);
}

.tm-seal {
    display: inline-grid;
    place-items: center;
    width: 0.95rem;
    height: 0.95rem;
    margin-left: 0.18rem;
    border: 1px solid #b4232c;
    color: #f3d0d0;
    background: #8a1c24;
    font-size: 0.52rem;
    letter-spacing: 0;
    vertical-align: 0.18em;
}

.tm-nav {
    display: none;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 1.15rem;
    font-size: 14px;
    letter-spacing: 0.14em;
}

.tm-nav a {
    color: rgba(244, 239, 230, 0.92);
    text-decoration: none;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}

.tm-nav a:hover,
.tm-nav a.is-active {
    color: var(--tm-gold-bright);
    border-bottom-color: var(--tm-gold);
}

.tm-header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.75rem;
}

.tm-auth-link,
.tm-auth-name {
    color: rgba(244, 239, 230, 0.92);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.16em;
    white-space: nowrap;
}

.tm-auth-link:hover,
.tm-auth-link.is-active {
    color: var(--tm-gold-bright);
}

.tm-auth-name {
    color: var(--tm-gold);
}

.tm-consult {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(198, 161, 91, 0.75);
    background: linear-gradient(180deg, #f6ead0, #e7d4a8);
    color: #3d2a12;
    text-decoration: none;
    padding: 0.45rem 1.15rem;
    font-size: 14px;
    letter-spacing: 0.16em;
}

.tm-menu-btn {
    display: inline-flex;
    border: 1px solid rgba(198, 161, 91, 0.5);
    background: transparent;
    color: var(--tm-gold);
    padding: 0.25rem 0.55rem;
    font-size: 1.1rem;
}

.tm-mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.9rem 1.4rem 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
    letter-spacing: 0.16em;
}

.tm-mobile-nav.is-open,
.tm-mobile-nav:not(.hidden) {
    display: flex;
}

.tm-mobile-nav.hidden {
    display: none;
}

.tm-mobile-nav a {
    color: var(--tm-cream);
    text-decoration: none;
}

.tm-mobile-nav a.is-active,
.tm-mobile-nav a:hover {
    color: var(--tm-gold-bright);
}

.tm-hero {
    position: relative;
    min-height: min(68vh, 640px);
    overflow: hidden;
    color: var(--tm-cream);
}

.tm-hero-photo {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    object-fit: cover;
    object-position: 82% center;
    animation: tmKenBurns 32s ease-in-out infinite alternate;
    will-change: transform;
}

.tm-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(8, 6, 4, 0.55) 0%, rgba(8, 6, 4, 0.18) 42%, rgba(8, 6, 4, 0.08) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 18%, transparent 72%, rgba(0, 0, 0, 0.55) 100%);
}

.tm-hero-copy {
    position: relative;
    z-index: 4;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6.2rem 6% 8.2rem;
}

.tm-hero-copy h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #f3e3c0;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.tm-hero-kicker {
    margin: 1.1rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.55rem);
    letter-spacing: 0.22em;
    color: #efe2c4;
}

.tm-hero-lead {
    margin: 1.15rem 0 0;
    max-width: 22rem;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.08em;
    color: rgba(244, 239, 230, 0.92);
}

.tm-calc {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.6rem;
    padding: 0.62rem 1.45rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #8b1d24, #6a1218);
    border: 1px solid rgba(232, 213, 163, 0.35);
    color: #f7ead0;
    text-decoration: none;
    letter-spacing: 0.2em;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(80, 10, 16, 0.35);
    animation: tmBtnPulse 2.8s ease-in-out infinite;
}

.tm-calc:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(198, 161, 91, 0.45), 0 10px 24px rgba(198, 161, 91, 0.22);
}

.tm-hero-verse {
    position: absolute;
    right: 4.8%;
    top: 28%;
    z-index: 4;
    writing-mode: vertical-rl;
    letter-spacing: 0.28em;
    font-size: 13px;
    line-height: 2.1;
    color: rgba(247, 236, 210, 0.92);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.tm-hero-verse b {
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.7rem;
    border: 1px solid #c0392b;
    background: #8a1c24;
    color: #f3d0d0;
    font-size: 0.62rem;
    letter-spacing: 0;
    writing-mode: horizontal-tb;
    text-align: center;
    line-height: 1.1rem;
    font-weight: 400;
}

.tm-services {
    position: relative;
    z-index: 3;
    margin-top: -4.8rem;
    padding: 0 2.2% 0.4rem;
    background: linear-gradient(180deg, transparent 0 12%, #0b0b0b 12%);
}

.tm-services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
}

.tm-services-grid[data-count="1"] { grid-template-columns: 1fr; max-width: 240px; margin-inline: auto; }
.tm-services-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tm-services-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-services-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tm-services-grid[data-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.tm-service {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    min-height: 12.8rem;
    padding: 1.45rem 0.7rem 1.2rem;
    background:
        radial-gradient(circle at 50% 0, rgba(198, 161, 91, 0.08), transparent 46%),
        #0c0c0c;
    border: 1px solid rgba(198, 161, 91, 0.55);
    border-radius: 14px;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.35),
        0 10px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.tm-service::before,
.tm-service::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(232, 213, 163, 0.85);
    pointer-events: none;
}

.tm-service::before {
    top: 7px;
    left: 7px;
    border-right: 0;
    border-bottom: 0;
}

.tm-service::after {
    right: 7px;
    bottom: 7px;
    border-left: 0;
    border-top: 0;
}

.tm-service:hover {
    transform: translateY(-6px);
    border-color: var(--tm-gold-bright);
    box-shadow: 0 14px 28px rgba(198, 161, 91, 0.16);
}

.tm-icon-wrap {
    width: 3.15rem;
    height: 3.15rem;
    margin: 0 auto 0.95rem;
    border: 1px solid rgba(198, 161, 91, 0.7);
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--tm-gold);
    animation: tmIconGlow 4.8s ease-in-out infinite;
}

.tm-icon-wrap svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.35;
}

.tm-service h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #f0e2c4;
}

.tm-service p {
    margin: 0.7rem 0 0;
    font-size: 12px;
    line-height: 1.85;
    letter-spacing: 0.08em;
    color: #d8c8a6;
    white-space: pre-line;
}

.tm-destiny {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #efe6d4;
    color: #2b2218;
}

.tm-destiny-photo {
    position: absolute;
    inset: -6%;
    width: 112%;
    height: 112%;
    object-fit: cover;
    object-position: 70% center;
    animation: tmKenBurnsSoft 40s ease-in-out infinite alternate;
    will-change: transform;
}

.tm-destiny-copy {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 5.2rem 8% 4.6rem;
}

.tm-destiny-copy h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: 0.2em;
    font-weight: 700;
}

.tm-destiny-copy p {
    margin: 1.1rem 0 0;
    max-width: 28rem;
    font-size: 15px;
    line-height: 2.05;
    letter-spacing: 0.06em;
}

.tm-more {
    display: inline-flex;
    margin-top: 1.5rem;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(138, 92, 28, 0.45);
    background: rgba(255, 248, 232, 0.55);
    color: #6a3b12;
    text-decoration: none;
    letter-spacing: 0.18em;
    font-size: 14px;
}

.tm-destiny-verse {
    position: absolute;
    right: 38%;
    top: 28%;
    z-index: 2;
    writing-mode: vertical-rl;
    letter-spacing: 0.32em;
    font-size: 13px;
    line-height: 2;
    color: #4a3724;
}

.tm-footer-band {
    position: relative;
    background: linear-gradient(180deg, #7a181c, #5c1014);
    color: #f4e7c8;
    text-align: center;
    padding: 2.8rem 1rem 3rem;
    overflow: hidden;
}

.tm-footer-band::before,
.tm-footer-band::after {
    content: "";
    position: absolute;
    top: 18%;
    width: 120px;
    height: 64px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 64' fill='none' stroke='%23d7b56a' stroke-width='1.4'><path d='M8 40c10-18 22-18 32-6 10-16 24-18 36-4 8-10 18-10 28 2'/><path d='M18 48c10-14 20-14 30-4 10-12 22-12 32-2'/></svg>") center / contain no-repeat;
    opacity: 0.75;
}

.tm-footer-band::before {
    left: 6%;
    animation: tmCloudDrift 9s ease-in-out infinite alternate;
}
.tm-footer-band::after {
    right: 6%;
    transform: scaleX(-1);
    animation: tmCloudDriftRev 11s ease-in-out infinite alternate;
}

.tm-footer-band h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: 0.38em;
    font-weight: 600;
}

.tm-footer-band p {
    margin: 0.7rem 0 0;
    letter-spacing: 0.18em;
    color: rgba(244, 231, 200, 0.82);
}

.tm-lower-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.tm-sec-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    color: #3d2a12;
}

.tm-sec-title h2 {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    letter-spacing: 0.28em;
    font-weight: 700;
}

.tm-sec-title i {
    width: 3.2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c6a15b, transparent);
}

.tm-sec-title-light {
    color: #f3e3c0;
}

.tm-sec-sub {
    margin: 0.55rem 0 0;
    text-align: center;
    letter-spacing: 0.16em;
    color: #7a684c;
    font-size: 14px;
}

.tm-sec-sub-light {
    color: rgba(243, 227, 192, 0.82);
}

.tm-flow {
    position: relative;
    overflow: hidden;
    padding: 3.4rem 0 3.6rem;
    color: #f4efe6;
    background: #120c08;
}

.tm-flow-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: saturate(0.7) brightness(0.38);
}

.tm-flow-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 4, 2, 0.72) 0%, rgba(8, 4, 2, 0.28) 18%, rgba(8, 4, 2, 0.28) 82%, rgba(8, 4, 2, 0.72) 100%),
        linear-gradient(180deg, rgba(8, 4, 2, 0.35), transparent 28%, transparent 72%, rgba(8, 4, 2, 0.5));
}

.tm-lantern {
    position: absolute;
    top: 12%;
    z-index: 2;
    width: 58px;
    opacity: 0.92;
}

.tm-lantern svg {
    width: 100%;
    height: auto;
    display: block;
}

.tm-lantern-l { left: 3%; }
.tm-lantern-r { right: 3%; transform: scaleX(-1); }

.tm-flow-steps {
    list-style: none;
    margin: 2.2rem auto 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    max-width: 52rem;
}

.tm-flow-steps li {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.tm-flow-arrow {
    flex: 0 0 1.4rem !important;
    width: 1.4rem !important;
    padding-top: 2.15rem;
    color: #c6a15b;
    font-size: 1.15rem;
    opacity: 0.9;
}

.tm-flow-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 5.6rem;
    height: 5.6rem;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    border: 1px solid rgba(232, 213, 163, 0.7);
    background: radial-gradient(circle at 50% 30%, rgba(80, 40, 16, 0.35), rgba(10, 6, 4, 0.72));
    box-shadow: 0 0 0 6px rgba(198, 161, 91, 0.08), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tm-flow-ring svg {
    width: 2.6rem;
    height: 2.6rem;
}

.tm-flow-ring b {
    position: absolute;
    left: 50%;
    bottom: -0.15rem;
    transform: translateX(-50%);
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #c6a15b;
    color: #3d2410;
    font-size: 0.72rem;
    line-height: 1.15rem;
    font-weight: 700;
}

.tm-flow-steps h3 {
    margin: 0;
    font-size: 1.02rem;
    letter-spacing: 0.16em;
    color: #f3e3c0;
}

.tm-flow-steps p {
    margin: 0.4rem 0 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    line-height: 1.7;
    color: rgba(244, 239, 230, 0.72);
}

.tm-voices,
.tm-knowledge {
    position: relative;
    overflow: hidden;
    padding: 3.2rem 0 3.4rem;
    background: #f4efe6;
    color: #3d2a12;
}

.tm-voices-art {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(22vw, 220px);
    overflow: hidden;
    opacity: 0.55;
    pointer-events: none;
}

.tm-voices-art img {
    width: 220%;
    height: 100%;
    object-fit: cover;
}

.tm-voices-art-l {
    left: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent);
    mask-image: linear-gradient(90deg, #000 20%, transparent);
}

.tm-voices-art-l img { object-position: 8% center; }

.tm-voices-art-r {
    right: 0;
    -webkit-mask-image: linear-gradient(270deg, #000 20%, transparent);
    mask-image: linear-gradient(270deg, #000 20%, transparent);
}

.tm-voices-art-r img { object-position: 92% center; }

.tm-side-verse {
    position: absolute;
    top: 22%;
    z-index: 2;
    writing-mode: vertical-rl;
    letter-spacing: 0.28em;
    font-size: 13px;
    line-height: 2;
    color: #5a4630;
}

.tm-side-verse-l { left: 1.6%; }
.tm-side-verse-r { right: 1.6%; }

.tm-side-verse b {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.55rem;
    border: 1px solid #b4232c;
    background: #8a1c24;
    color: #f3d0d0;
    font-size: 0.55rem;
    letter-spacing: 0;
    writing-mode: horizontal-tb;
    text-align: center;
    line-height: 1.05rem;
    font-weight: 400;
}

.tm-side-verse-dark {
    color: #f3e3c0;
}

.tm-voice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-top: 1.8rem;
}

.tm-voice {
    padding: 1.15rem 1.1rem 1.2rem;
    background: rgba(255, 252, 246, 0.88);
    border: 1px solid rgba(198, 161, 91, 0.28);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(80, 50, 20, 0.06);
}

.tm-voice-top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.tm-voice-ava {
    width: 3rem;
    height: 3rem;
    flex: none;
}

.tm-voice-ava svg { width: 100%; height: 100%; }

.tm-voice h3 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.tm-stars {
    margin: 0.15rem 0 0;
    color: #c6a15b;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.tm-voice > p {
    margin: 0.85rem 0 0;
    font-size: 13.5px;
    line-height: 1.85;
    letter-spacing: 0.04em;
    color: #5a4630;
}

.tm-knowledge {
    background:
        linear-gradient(90deg, #5c1014 0, #5c1014 4.5%, #f1e8d6 4.5%, #f1e8d6 95.5%, #5c1014 95.5%);
}

.tm-more-articles {
    position: absolute;
    right: 0.35%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    writing-mode: vertical-rl;
    letter-spacing: 0.28em;
    color: #f3e3c0;
    text-decoration: none;
    font-size: 13px;
    padding: 0.6rem 0.15rem;
}

.tm-know-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    margin-top: 1.8rem;
}

.tm-know {
    overflow: hidden;
    background: #fffdf8;
    border: 1px solid rgba(198, 161, 91, 0.28);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(80, 40, 16, 0.08);
}

.tm-know a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.tm-know a:hover span {
    color: #6e1418;
}

.tm-know img {
    display: block;
    width: 100%;
    height: 11.2rem;
    object-fit: cover;
}

.tm-know-body {
    padding: 0.95rem 1rem 1.1rem;
}

.tm-know h3 {
    margin: 0;
    font-size: 1.02rem;
    letter-spacing: 0.08em;
}

.tm-know p {
    margin: 0.45rem 0 0;
    font-size: 13px;
    line-height: 1.75;
    color: #6a5840;
}

.tm-know span {
    display: inline-block;
    margin-top: 0.7rem;
    color: #8a1c24;
    letter-spacing: 0.12em;
    font-size: 13px;
}

.tm-cta {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    display: grid;
    place-items: center;
    text-align: center;
    color: #f6efe2;
}

.tm-cta-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
}

.tm-cta-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 8, 4, 0.18), rgba(20, 8, 4, 0.42)),
        radial-gradient(circle at 50% 55%, transparent 0%, rgba(8, 4, 2, 0.45) 100%);
}

.tm-cta-copy {
    position: relative;
    z-index: 2;
    padding: 3.4rem 1rem;
}

.tm-cta-copy h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: 0.28em;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.tm-cta-copy p {
    margin: 0.7rem 0 0;
    letter-spacing: 0.16em;
    color: rgba(246, 239, 226, 0.92);
}

.tm-cta-copy .tm-calc {
    margin-top: 1.25rem;
}

.tm-sitefoot {
    background: linear-gradient(180deg, #7a181c, #541014);
    color: #f4e7c8;
}

.tm-sitefoot-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.6rem 1.3rem 1.3rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem 1.4rem;
    align-items: center;
}

.tm-foot-brand .tm-brand-name {
    font-size: 1.35rem;
}

.tm-foot-nav {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    letter-spacing: 0.14em;
    font-size: 14px;
}

.tm-foot-nav a,
.tm-sitefoot-bar a {
    color: #f4e7c8;
    text-decoration: none;
}

.tm-foot-nav a:hover,
.tm-sitefoot-bar a:hover {
    color: #e8d5a3;
}

.tm-foot-aside {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.tm-social {
    display: flex;
    gap: 0.4rem;
}

.tm-social a {
    width: 1.7rem;
    height: 1.7rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(232, 213, 163, 0.45);
    border-radius: 50%;
    color: #e8d5a3;
    text-decoration: none;
}

.tm-social a svg {
    width: 0.85rem;
    height: 0.85rem;
    display: block;
}

.tm-foot-mail {
    display: inline-flex;
    padding: 0.32rem 0.85rem;
    border: 1px solid rgba(232, 213, 163, 0.55);
    border-radius: 999px;
    color: #e8d5a3;
    text-decoration: none;
    letter-spacing: 0.14em;
    font-size: 13px;
}

.tm-sitefoot-bar {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.7rem 1.3rem 1.1rem;
    border-top: 1px solid rgba(232, 213, 163, 0.18);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(244, 231, 200, 0.78);
}

.tm-sitefoot-bar p { margin: 0; }

.tm-btn-glow {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.8s ease, transform 0.8s ease;
}

.tm-btn-glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(198, 161, 91, 0.45), 0 8px 24px rgba(198, 161, 91, 0.25);
}

.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;
}

@media (max-width: 1023px) {
    .tm-header-inner { grid-template-columns: 1fr auto; }
    .tm-nav { display: none; }
    .tm-header-actions .tm-auth-link,
    .tm-header-actions .tm-auth-name {
        display: none;
    }
    .tm-hero-verse,
    .tm-destiny-verse { display: none; }
    .tm-hero-copy { padding: 4.4rem 1.2rem 7.5rem; }
    .tm-services {
        margin-top: 0;
        padding: 1rem 3% 0.2rem;
        background: #111;
    }
    .tm-services-grid,
    .tm-services-grid[data-count] {
        grid-template-columns: 1fr 1fr;
        max-width: none;
        gap: 0.75rem;
    }
    .tm-destiny-copy { padding: 3.4rem 1.2rem 3rem; }
    .tm-symbol {
        top: 8%;
        left: auto;
        right: 5%;
        width: 72px;
        height: 72px;
    }
    .tm-lantern,
    .tm-side-verse,
    .tm-voices-art,
    .tm-more-articles {
        display: none;
    }
    .tm-flow-arrow { display: none; }
    .tm-flow-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem 0.6rem;
        max-width: none;
    }
    .tm-flow-steps li { flex: 0 0 42%; width: 42%; }
    .tm-voice-grid,
    .tm-know-grid {
        grid-template-columns: 1fr;
        max-width: 28rem;
        margin-left: auto;
        margin-right: auto;
    }
    .tm-knowledge {
        background: #f1e8d6;
    }
    .tm-sitefoot-main {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .tm-foot-aside { justify-content: center; }
    .tm-sitefoot-bar { justify-content: center; text-align: center; }
}

@media (min-width: 1024px) {
    .tm-nav { display: flex; }
    .tm-menu-btn { display: none; }
    .tm-mobile-nav { display: none !important; }
}

@media (min-width: 1024px) and (max-width: 1319px) {
    .tm-header-inner {
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 0.65rem;
    }
    .tm-nav {
        gap: 0.62rem;
        font-size: 12.5px;
        letter-spacing: 0.07em;
    }
    .tm-auth-name {
        display: none;
    }
    .tm-auth-link {
        font-size: 13px;
        letter-spacing: 0.08em;
    }
    .tm-consult {
        padding: 0.4rem 0.85rem;
        font-size: 13px;
        letter-spacing: 0.1em;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    .tm-auth-receipt {
        display: none;
    }
}

.tm-sun-glow,
.tm-hero-mist,
.tm-hero-dust,
.tm-destiny-mist,
.tm-symbol {
    pointer-events: none;
}

.tm-sun-glow {
    position: absolute;
    right: 16%;
    top: 10%;
    z-index: 1;
    width: min(42vw, 420px);
    height: min(42vw, 420px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 140, 0.38) 0%, rgba(255, 180, 80, 0.12) 42%, transparent 70%);
    animation: tmSunPulse 8s ease-in-out infinite;
}

.tm-hero-mist {
    position: absolute;
    inset: -10% -20% auto;
    height: 70%;
    z-index: 1;
    background: linear-gradient(90deg, rgba(244, 239, 230, 0.08), rgba(244, 239, 230, 0) 40%, rgba(244, 239, 230, 0.16) 72%, transparent);
    filter: blur(22px);
    animation: tmMistDrift 18s ease-in-out infinite alternate;
}

.tm-hero-mist-2 {
    top: auto;
    bottom: -18%;
    height: 55%;
    opacity: 0.7;
    animation-duration: 24s;
    animation-direction: alternate-reverse;
}

.tm-hero-dust {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
}

.tm-dust {
    position: absolute;
    bottom: -8%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(232, 213, 163, 0.85);
    box-shadow: 0 0 8px rgba(232, 213, 163, 0.8);
    animation: tmDustRise linear infinite;
}

.tm-hero-copy h1 { animation: tmFadeUp 1.35s ease both; }
.tm-hero-kicker { animation: tmFadeUp 1.35s ease 0.18s both; }
.tm-hero-lead { animation: tmFadeUp 1.35s ease 0.36s both; }
.tm-calc { animation: tmFadeUp 1.2s ease 0.5s both, tmBtnPulse 2.8s ease-in-out 1.8s infinite; }
.tm-hero-verse { animation: tmFadeIn 1.8s ease 0.8s both; }

.tm-seal {
    animation: tmSealPulse 3.6s ease-in-out infinite;
}

.tm-service {
    animation: tmCardFloat 6.4s ease-in-out infinite;
}
.tm-service:nth-child(1) { animation-delay: 0s; }
.tm-service:nth-child(2) { animation-delay: 0.35s; }
.tm-service:nth-child(3) { animation-delay: 0.7s; }
.tm-service:nth-child(4) { animation-delay: 1.05s; }
.tm-service:nth-child(5) { animation-delay: 1.4s; }
.tm-service:nth-child(6) { animation-delay: 1.75s; }
.tm-service:hover {
    animation-play-state: paused;
}

.tm-destiny-mist {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255, 250, 240, 0.08), transparent 45%, rgba(255, 250, 240, 0.18));
    animation: tmMistDrift 22s ease-in-out infinite alternate;
}

.tm-symbol {
    position: absolute;
    z-index: 2;
    width: 108px;
    height: 108px;
    top: 18%;
    left: 46%;
    right: auto;
    filter: drop-shadow(0 8px 14px rgba(70, 50, 20, 0.28));
    animation: tmSymbolFloat 8s ease-in-out infinite;
}

.tm-symbol-spin {
    width: 100%;
    height: 100%;
    display: block;
    animation: tmSymbolSpin 22s linear infinite;
}

.tm-consult {
    animation: tmConsultShine 4.5s ease-in-out infinite;
}

@keyframes tmKenBurns {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.08) translate(-2.4%, -1.6%); }
}

@keyframes tmKenBurnsSoft {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.06) translate(2%, 1.2%); }
}

@keyframes tmMistDrift {
    from { transform: translateX(-6%); }
    to { transform: translateX(8%); }
}

@keyframes tmSunPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.12); }
}

@keyframes tmDustRise {
    0% { transform: translate3d(0, 0, 0) scale(0.4); opacity: 0; }
    12% { opacity: 0.9; }
    100% { transform: translate3d(var(--dx, 20px), -110vh, 0) scale(1); opacity: 0; }
}

@keyframes tmFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tmBtnPulse {
    0%, 100% { box-shadow: 0 10px 24px rgba(80, 10, 16, 0.35); }
    50% { box-shadow: 0 0 0 1px rgba(232, 213, 163, 0.45), 0 12px 28px rgba(198, 161, 91, 0.38); }
}

@keyframes tmIconGlow {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 16px rgba(198, 161, 91, 0.35); }
}

@keyframes tmCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes tmSealPulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 10px rgba(180, 35, 44, 0.55); }
}

@keyframes tmSymbolFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-22px, -16px); }
}

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

@keyframes tmCloudDrift {
    from { transform: translateX(0); }
    to { transform: translateX(14px); }
}

@keyframes tmCloudDriftRev {
    from { transform: scaleX(-1) translateX(0); }
    to { transform: scaleX(-1) translateX(-16px); }
}

@keyframes tmConsultShine {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 0 1px rgba(198, 161, 91, 0.35), 0 8px 18px rgba(198, 161, 91, 0.22); }
}

.tm-about-hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    color: #3d2a12;
    background: #efe4cc;
}

.tm-about-hero-photo {
    position: absolute;
    inset: 6% 11% 0;
    width: 78%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    opacity: 0.52;
}

.tm-about-hero-wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(239, 228, 204, 0.72) 0%, rgba(239, 228, 204, 0.18) 42%, rgba(239, 228, 204, 0.82) 100%),
        radial-gradient(ellipse at 50% 58%, transparent 0%, rgba(70, 42, 18, 0.18) 100%);
}

.tm-about-col {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(12vw, 138px);
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(180deg, #4a1414 0%, #2a0c0c 40%, #5a1818 100%);
    box-shadow: inset 0 0 0 1px rgba(198, 161, 91, 0.28);
}

.tm-about-col-l {
    left: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent);
    mask-image: linear-gradient(90deg, #000 55%, transparent);
}

.tm-about-col-r {
    right: 0;
    -webkit-mask-image: linear-gradient(270deg, #000 55%, transparent);
    mask-image: linear-gradient(270deg, #000 55%, transparent);
}

.tm-about-hero-frame {
    position: absolute;
    inset: 14px 16px;
    z-index: 4;
    pointer-events: none;
    border: 1px solid rgba(198, 161, 91, 0.55);
    box-shadow:
        inset 0 0 0 8px rgba(92, 16, 20, 0.08),
        0 0 0 10px rgba(42, 12, 12, 0.28);
}

.tm-about-hero-frame::before,
.tm-about-hero-frame::after {
    content: "";
    position: absolute;
    top: -18px;
    width: 140px;
    height: 54px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 54' fill='none' stroke='%23c6a15b' stroke-width='1.4'><path d='M8 38c12-18 26-18 38-6 12-16 28-18 42-4 10-10 22-10 34 4'/><path d='M18 46c12-14 24-14 36-4 12-12 26-12 38-2'/></svg>") center / contain no-repeat;
    opacity: 0.85;
}

.tm-about-hero-frame::before { left: 8%; }
.tm-about-hero-frame::after { right: 8%; transform: scaleX(-1); }

.tm-about-hero-copy {
    position: relative;
    z-index: 5;
    max-width: 720px;
    margin: 0 auto;
    padding: 5.4rem 1.2rem 4.8rem;
    text-align: center;
}

.tm-about-hero-copy h1 {
    margin: 0 -0.42em 0 0;
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    letter-spacing: 0.42em;
    font-weight: 700;
}

.tm-about-hero-sub {
    margin: 0.85rem 0 0;
    letter-spacing: 0.22em;
    font-size: 1.02rem;
    color: #5a4630;
}

.tm-about-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.15rem 0 0;
    letter-spacing: 0.22em;
    font-size: 13px;
    color: #7a684c;
}

.tm-about-kicker::before,
.tm-about-kicker::after {
    content: "";
    width: 7px;
    height: 7px;
    border: 1px solid #c6a15b;
    transform: rotate(45deg);
}

.tm-about-verse {
    position: absolute;
    top: 24%;
    z-index: 5;
    writing-mode: vertical-rl;
    letter-spacing: 0.28em;
    font-size: 13px;
    line-height: 2;
    color: #5a4630;
}

.tm-about-hero .tm-lantern,
.tm-about-values .tm-lantern {
    z-index: 6;
}

.tm-about-verse-l { left: min(13vw, 148px); }
.tm-about-verse-r { right: min(13vw, 148px); }


.tm-about-verse b {
    display: inline-grid;
    place-items: center;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.7em;
    border: 1px solid #b4232c;
    background: #8a1c24;
    color: #f3d0d0;
    font-size: 0.55rem;
    letter-spacing: 0;
    writing-mode: horizontal-tb;
    text-align: center;
    line-height: 1.05rem;
    font-weight: 400;
}

.tm-about-verse-ink { color: #5a4630; }

.tm-about-values {
    position: relative;
    overflow: hidden;
    padding: 3.4rem 0 3.6rem;
    color: #f4efe6;
    background: #120c08;
}

.tm-about-value-grid,
.tm-about-promise-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 2rem;
}

.tm-about-value {
    text-align: center;
}

.tm-about-ring {
    display: grid;
    place-items: center;
    width: 5.4rem;
    height: 5.4rem;
    margin: 0 auto 0.95rem;
    border-radius: 50%;
    border: 1px solid rgba(232, 213, 163, 0.72);
    background: radial-gradient(circle at 50% 30%, rgba(80, 40, 16, 0.28), rgba(10, 6, 4, 0.55));
    box-shadow: 0 0 0 6px rgba(198, 161, 91, 0.08);
}

.tm-about-ring svg {
    width: 2.5rem;
    height: 2.5rem;
}

.tm-about-ring-light {
    background: radial-gradient(circle at 50% 30%, #3a2414, #1a100c);
    box-shadow: 0 0 0 6px rgba(198, 161, 91, 0.1);
}

.tm-about-value h3,
.tm-about-card h3 {
    margin: 0;
    font-size: 1.02rem;
    letter-spacing: 0.16em;
}

.tm-about-value p,
.tm-about-card p {
    margin: 0.45rem 0 0;
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.06em;
    color: rgba(244, 239, 230, 0.72);
    overflow-wrap: break-word;
}

.tm-about-story,
.tm-about-promise {
    position: relative;
    overflow: hidden;
    padding: 3.2rem 0 3.4rem;
    background: #f4efe6;
    color: #3d2a12;
}

.tm-about-story-copy {
    max-width: 42rem;
    margin: 1.8rem auto 0;
    text-align: left;
}

.tm-about-story-copy p {
    margin: 0 0 1rem;
    font-size: 15px;
    line-height: 2.05;
    letter-spacing: 0.05em;
    color: #4a3724;
}

.tm-about-story-copy p:last-child {
    margin-bottom: 0;
}

.tm-about-card {
    text-align: center;
    padding: 1.35rem 1rem 1.4rem;
    background: rgba(255, 252, 246, 0.92);
    border: 1px solid rgba(198, 161, 91, 0.32);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(80, 50, 20, 0.06);
}

.tm-about-card p {
    color: #6a5840;
}

.tm-about-cta .tm-cta-copy h2 {
    letter-spacing: 0.14em;
    font-size: clamp(1.35rem, 2.6vw, 1.95rem);
}

@media (max-width: 1180px) {
    .tm-about-value-grid,
    .tm-about-promise-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 42rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1023px) {
    .tm-about-col,
    .tm-about-verse,
    .tm-about-hero-frame {
        display: none;
    }
    .tm-about-hero-photo {
        inset: 0;
        width: 100%;
        opacity: 0.38;
    }
    .tm-about-hero-copy { padding: 3.6rem 1.1rem 3.2rem; }
    .tm-about-value-grid,
    .tm-about-promise-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .tm-about-value-grid,
    .tm-about-promise-grid {
        grid-template-columns: 1fr;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tm-service,
    .tm-calc,
    .tm-consult,
    .tm-hero-photo,
    .tm-destiny-photo,
    .tm-sun-glow,
    .tm-hero-mist,
    .tm-destiny-mist,
    .tm-symbol,
    .tm-symbol-spin,
    .tm-icon-wrap,
    .tm-seal,
    .tm-wa,
    .tm-wa-ring,
    .tm-hero-copy h1,
    .tm-hero-kicker,
    .tm-hero-lead,
    .tm-hero-verse,
    .tm-footer-band::before,
    .tm-footer-band::after,
    .tm-lantern {
        animation: none !important;
        transform: none !important;
    }
    .tm-dust { display: none; }
}

body.tianming.ln-origin-body,
body.tianming.ln-poster-body {
    background: #d4b896;
    color: #2a241c;
    -webkit-text-fill-color: #2a241c;
}

body.tianming.ln-origin-body > .tm-header,
body.tianming.ln-origin-body > footer,
body.tianming.ln-poster-body > .tm-header,
body.tianming.ln-poster-body > footer {
    display: none !important;
}

body.tianming.ln-origin-body .site-main,
body.tianming.ln-poster-body .site-main {
    background: #d4b896;
}

.tm-wa {
    position: fixed;
    right: 1.05rem;
    bottom: 1.35rem;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.55rem;
    height: 3.55rem;
    overflow: visible;
    background: #25d366;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(18, 140, 70, 0.38);
    text-decoration: none;
    animation: tm-wa-bob 2.6s ease-in-out infinite;
}

.tm-wa svg {
    width: 1.85rem;
    height: 1.85rem;
    display: block;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.tm-wa-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(37, 211, 102, 0.55);
    border-radius: 999px;
    animation: tm-wa-pulse 2.6s ease-out infinite;
    pointer-events: none;
}

.tm-wa-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    font-family: "Noto Serif TC", "Noto Serif SC", serif;
    transition: max-width 0.28s ease, opacity 0.22s ease, margin 0.22s ease;
}

.tm-wa:hover,
.tm-wa:focus-visible {
    width: auto;
    padding: 0 1.05rem 0 0.85rem;
    gap: 0.45rem;
    color: #fff;
}

.tm-wa:hover .tm-wa-label,
.tm-wa:focus-visible .tm-wa-label {
    max-width: 10rem;
    opacity: 1;
    margin-left: 0.15rem;
}

@keyframes tm-wa-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes tm-wa-pulse {
    0% { transform: scale(0.92); opacity: 0.7; }
    70% { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1.18); opacity: 0; }
}

body.tianming.ln-origin-body .tm-wa,
body.tianming.ln-poster-body .tm-wa {
    display: none !important;
}

@media (max-width: 720px) {
    .tm-wa {
        right: 0.85rem;
        bottom: 1.1rem;
        width: 3.2rem;
        height: 3.2rem;
    }
    .tm-wa svg {
        width: 1.7rem;
        height: 1.7rem;
    }
}

@media print {
    .tm-wa { display: none !important; }
}

