/*
 * Desktop homepage refresh (2026-11-19); the former homepage-heading-watermark.css is appended at the end.
 * Loaded last and only by themes/pc/index/index/index.html; every rule is scoped to .st-home-pc,
 * so the mobile template, business pages and legacy pages are unaffected.
 * Keeps the brand palette (盛廷酒红 / 暖纸白), section order, links and content; changes presentation only.
 * Scope: header through the consult band. 盛廷公告 (#announcements) and every section below it,
 * apart from the contact section and footer, keep their original styling, so section-level rules here list the upper sections
 * inside :where() (zero specificity, so the cascade against the older stylesheets is unchanged).
 */
/* Desktop refresh tokens. */
.st-home-pc {
    --st-wine: #5e1015;
    --st-cream: #fbf8f4;
    --st-gold: #b8895a;
    --st-shadow-sm: 0 1px 2px rgb(40 22 18 / 5%), 0 4px 14px rgb(40 22 18 / 5%);
    --st-shadow-md: 0 2px 4px rgb(40 22 18 / 5%), 0 14px 34px rgb(40 22 18 / 10%);
    --st-ease: cubic-bezier(.22, .61, .36, 1);
}
/* Retuned shared colours and text rendering, for the refreshed sections only. */
.st-home-pc .st-header { --st-ink: #1f2329; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.st-home-pc :where(.st-intro, .st-business, #cases, #team, #honours, .st-consult-band) {
    --st-ink: #1f2329;
    --st-muted: #646b73;
    --st-line: #e7e2dd;
    --st-paper: #f7f5f1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
.st-home-pc :where(.st-header, .st-intro, .st-business, #cases, #team, #honours, .st-consult-band) ::selection { background: #f0d7d5; color: #1f2329; }

/* One content width for every section, so edges line up down the page. */
.st-home-pc .st-business .st-container,
.st-home-pc .st-intro .st-container { width: min(1280px, calc(100% - 96px)); }
@media (max-width: 1100px) {
    .st-home-pc .st-business .st-container,
    .st-home-pc .st-intro .st-container { width: calc(100% - 64px); }
}

/* ---------- Header: a quieter masthead edge and a refined menu bar ---------- */
.st-home-pc .st-header .st-navigation { background: linear-gradient(180deg, #a92128 0%, #9a1b22 100%); box-shadow: inset 0 -1px 0 rgb(0 0 0 / 12%); }
.st-home-pc .st-site-row > a { letter-spacing: .5px; transition: background-color .2s var(--st-ease); }

/* ---------- Section rhythm ---------- */
/* Every section heading keeps the original style from homepage.css (label, title with short underline, intro line).
   One tighter rhythm for the whole page: 24px above and below each module (48px between modules, original was 64px), 16px between a heading and its content (original 20px). */
.st-home-pc .st-section { --st-heading-gap: 16px; padding: 24px 0; }
/* Keep the upper headings identical to 盛廷公告: original grey intro line, and the same label spacing in 精选案例. */
.st-home-pc .st-section-heading p { color: #697078; }
.st-home-pc #cases .st-section-heading .st-eyebrow { letter-spacing: 4px; }
.st-home-pc :where(.st-business, #cases, #team, #honours) .st-text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .5px; }
.st-home-pc :where(.st-business, #cases, #team, #honours) .st-text-link span { margin-left: 0; transition: transform .25s var(--st-ease); }
.st-home-pc :where(.st-business, #cases, #team, #honours) .st-text-link:hover span { transform: translateX(4px); }
.st-home-pc #cases,
.st-home-pc #honours.st-recognition { background: var(--st-paper); }

/* ---------- Buttons ---------- */
.st-home-pc .st-button { gap: 14px; min-height: 50px; padding: 13px 30px; border-radius: 2px; letter-spacing: 1px; transition: background-color .2s var(--st-ease), border-color .2s var(--st-ease), box-shadow .25s var(--st-ease), transform .25s var(--st-ease); }
.st-home-pc .st-button:hover { box-shadow: 0 10px 22px -10px rgb(125 22 28 / 55%); transform: translateY(-1px); }
.st-home-pc .st-button-light:hover,
.st-home-pc .st-button-white:hover { box-shadow: none; }
.st-home-pc .st-section-actions { margin-top: 44px; }
.st-home-pc :where(.st-business, #cases, #team, #honours) .st-more-link svg { transition: transform .25s var(--st-ease); }
.st-home-pc :where(.st-business, #cases, #team, #honours) .st-more-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Intro: brochure cover ---------- */
.st-home-pc .st-intro { position: relative; overflow: hidden; padding: 48px 0 46px; background: linear-gradient(115deg, #fbf8f4 0%, #f5f0ea 55%, #efe7df 100%); }
.st-home-pc .st-intro::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 46%; background: repeating-linear-gradient(135deg, rgb(165 30 37 / 3.5%) 0 1px, transparent 1px 14px); -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); pointer-events: none; }
.st-home-pc .st-intro-layout { position: relative; grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr); gap: 64px; }
.st-home-pc .st-intro-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--st-red); font-size: 14px; font-weight: 600; letter-spacing: 4px; }
.st-home-pc .st-intro-kicker::before { content: ""; flex: 0 0 28px; height: 2px; background: currentColor; }
.st-home-pc .st-intro-copy h1 { font-size: clamp(38px, 3.6vw, 54px); font-weight: 700; line-height: 1.28; letter-spacing: 2px; color: var(--st-ink); }
.st-home-pc .st-intro-copy h1 em { font-style: normal; color: var(--st-red); }
.st-home-pc .st-intro-copy p { position: relative; margin: 26px 0 36px; padding-left: 18px; max-width: 22em; font-size: 16px; line-height: 1.85; color: var(--st-muted); }
.st-home-pc .st-intro-copy p::before { content: ""; position: absolute; left: 0; top: .45em; bottom: .45em; width: 2px; background: var(--st-gold); }
.st-home-pc .st-intro-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.st-home-pc .st-intro .st-button { font-size: 15px; }
.st-home-pc .st-intro .st-button-light { border: 1px solid rgb(165 30 37 / 45%); }
.st-home-pc .st-intro .st-hero { position: relative; isolation: isolate; }
.st-home-pc .st-intro .st-hero::before { content: ""; position: absolute; z-index: -1; top: 22px; right: -22px; bottom: -22px; left: 22px; border: 1px solid rgb(165 30 37 / 28%); }
.st-home-pc .st-intro .st-hero::after { content: ""; position: absolute; z-index: -1; right: -22px; bottom: -22px; width: 38%; height: 46%; background: linear-gradient(135deg, var(--st-red) 0%, var(--st-wine) 100%); }
.st-home-pc .st-intro .st-hero-slide { background: #fff; box-shadow: 0 30px 60px -28px rgb(60 20 18 / 45%); }
.st-home-pc .st-hero-controls button { width: 46px; height: 46px; background: rgb(20 23 28 / 38%); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s var(--st-ease), background-color .2s; }
.st-home-pc .st-hero:hover .st-hero-controls button,
.st-home-pc .st-hero-controls button:focus-visible { opacity: 1; }
.st-home-pc .st-hero-count { right: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; letter-spacing: 1px; background: rgb(20 23 28 / 50%); }
@media (hover: none) { .st-home-pc .st-hero-controls button { opacity: 1; } }
@media (max-width: 1100px) {
    .st-home-pc .st-intro { padding: 40px 0 38px; }
    .st-home-pc .st-intro-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
    .st-home-pc .st-intro .st-hero::before { top: 14px; right: -14px; bottom: -14px; left: 14px; }
    .st-home-pc .st-intro .st-hero::after { right: -14px; bottom: -14px; }
}

/* ---------- Core business ---------- */
.st-home-pc .st-business-eight { gap: 16px; border: 0; overflow: visible; }
.st-home-pc .st-business-eight .st-business-entry { position: relative; gap: 18px; padding: 34px 16px 30px; border: 1px solid var(--st-line); background: #fff; transition: border-color .25s var(--st-ease), box-shadow .3s var(--st-ease), transform .3s var(--st-ease); }
.st-home-pc .st-business-eight .st-business-entry::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--st-red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--st-ease); }
.st-home-pc .st-business-eight .st-business-entry svg { box-sizing: content-box; width: 40px; height: 40px; padding: 16px; border-radius: 50%; background: #f8eeec; transition: background-color .25s var(--st-ease), color .25s var(--st-ease); }
.st-home-pc .st-business-eight .st-business-entry span { font-size: 16px; font-weight: 400; letter-spacing: .5px; }
.st-home-pc .st-business-eight .st-business-entry:hover { border-color: transparent; background: #fff; box-shadow: var(--st-shadow-md); transform: translateY(-4px); }
.st-home-pc .st-business-eight .st-business-entry:hover::before { transform: scaleX(1); }
.st-home-pc .st-business-eight .st-business-entry:hover svg { background: var(--st-red); color: #fff; }
.st-home-pc .st-business-group + .st-business-group { margin-top: 28px; }
.st-home-pc .st-business-secondary { padding: 24px 28px 28px; border: 0; border-radius: 2px; background: var(--st-paper); }
.st-home-pc .st-business-secondary .st-subheading { padding-left: 14px; }
.st-home-pc .st-business-secondary .st-subheading h2,
.st-home-pc .st-business-secondary .st-subheading h2 a { font-size: 19px; }
.st-home-pc .st-business-secondary .st-subheading p { font-size: 13px; letter-spacing: .5px; }
.st-home-pc .st-business-specialties .st-business-entry { border-color: transparent; border-radius: 2px; background: #fff; transition: color .2s var(--st-ease), box-shadow .25s var(--st-ease), transform .25s var(--st-ease); }
.st-home-pc .st-business-specialties .st-business-entry span { font-size: 13px; }
.st-home-pc .st-business-specialties .st-business-entry:hover { border-color: transparent; background: #fff; box-shadow: var(--st-shadow-sm); transform: translateY(-2px); }
.st-home-pc .st-hot-tags { align-items: center; gap: 20px; padding-top: 28px; font-size: 13px; }
.st-home-pc .st-hot-tags strong { font-size: 14px; letter-spacing: 2px; }
.st-home-pc .st-hot-tags > div { gap: 10px; }
.st-home-pc .st-hot-tags > div a { padding: 5px 14px; border: 1px solid var(--st-line); border-radius: 999px; color: #50565d; background: #fff; transition: color .2s, border-color .2s, background-color .2s; }
.st-home-pc .st-hot-tags > div a:hover { color: var(--st-red); border-color: rgb(165 30 37 / 40%); background: #fdf6f5; }

/* ---------- Featured cases ---------- */
.st-home-pc .st-case-tabs { gap: 6px 24px; }
.st-home-pc .st-case-tabs a { padding: 8px 0 10px; font-size: 15px; transition: color .2s, border-color .2s; }
.st-home-pc .st-case-region select { min-height: 40px; padding: 6px 34px 6px 12px; border-radius: 2px; }
.st-home-pc .st-case-grid { gap: 28px; }
.st-home-pc .st-case-card { border: 0; box-shadow: var(--st-shadow-sm); transition: box-shadow .3s var(--st-ease), transform .3s var(--st-ease); }
.st-home-pc .st-case-card:hover { box-shadow: var(--st-shadow-md); transform: translateY(-4px); }
.st-home-pc .st-case-image { background: #f3eee8; }
.st-home-pc .st-case-image img { transition: transform .5s var(--st-ease); }
.st-home-pc .st-case-card:hover .st-case-image img { transform: scale(1.04); }
.st-home-pc .st-case-body { padding: 24px 26px 22px; }
.st-home-pc .st-cases .st-case-body h3 { font-size: 18px; line-height: 1.7; }
.st-home-pc .st-case-card:hover h3 a { color: var(--st-red); }
.st-home-pc .st-tags a { padding: 3px 9px; border-radius: 2px; }
.st-home-pc .st-cases .st-card-bottom { padding-top: 16px; }
.st-home-pc .st-card-bottom > a span { display: inline-block; transition: transform .25s var(--st-ease); }
.st-home-pc .st-case-card:hover .st-card-bottom > a span { transform: translateX(4px); }

/* ---------- Team ---------- */
.st-home-pc #team .st-team-photo { margin-bottom: 40px; border-radius: 2px; box-shadow: var(--st-shadow-md); }
.st-home-pc #team .st-team-photo-caption { padding: 8px 12px; background: linear-gradient(90deg, var(--st-wine), var(--st-red) 50%, var(--st-wine)); font-size: 15px; letter-spacing: 6px; }
.st-home-pc #team .st-team-photo img { transition: transform .8s var(--st-ease); }
.st-home-pc #team .st-team-photo:hover img { transform: scale(1.015); }
.st-home-pc #team .st-team-list { gap: 22px; padding: 10px 2px 12px; }
.st-home-pc #team .st-lawyer { flex-basis: calc((100% - 88px) / 5); padding: 14px 14px 20px; border-radius: 2px; box-shadow: var(--st-shadow-sm); transition: box-shadow .3s var(--st-ease), transform .3s var(--st-ease); }
.st-home-pc #team .st-lawyer:hover { box-shadow: var(--st-shadow-md); transform: translateY(-4px); }
.st-home-pc #team .st-lawyer-image { border-radius: 2px; }
.st-home-pc #team .st-lawyer-image img { transition: transform .5s var(--st-ease); }
.st-home-pc #team .st-lawyer:hover .st-lawyer-image img { transform: scale(1.03); }
.st-home-pc #team .st-lawyer-hover { background: linear-gradient(180deg, rgb(94 16 21 / 82%), rgb(20 18 22 / 92%)); }
.st-home-pc #team .st-lawyer h3 { position: relative; padding-bottom: 12px; font-size: 20px; letter-spacing: 2px; }
.st-home-pc #team .st-lawyer h3::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 20px; height: 2px; background: var(--st-red); transform: translateX(-50%); }
.st-home-pc #team .st-lawyer-position { margin-top: 12px !important; }
.st-home-pc #team .st-team-scroll-controls button { width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--st-red); box-shadow: var(--st-shadow-md); }
.st-home-pc #team .st-team-scroll-controls button:hover:not(:disabled) { background: var(--st-red); color: #fff; }
.st-home-pc #team .st-team-scroll-controls [data-rail-prev] { left: -18px; }
.st-home-pc #team .st-team-scroll-controls [data-rail-next] { right: -18px; }
.st-home-pc #team .st-team-scroll-controls button:disabled { opacity: 0; pointer-events: none; }

/* ---------- Recognition ---------- */
.st-home-pc .st-recognition-layout { gap: 56px; }
.st-home-pc .st-recognition-group-heading h3 { font-size: 21px; }
.st-home-pc #honours .st-pennant-stage { box-shadow: var(--st-shadow-sm); }
.st-home-pc .st-pennant-arrow { width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--st-red); box-shadow: var(--st-shadow-sm); transition: background-color .2s, color .2s; }
.st-home-pc .st-pennant-arrow:hover { background: var(--st-red); color: #fff; }
.st-home-pc .st-pennant-thumbnails > a, .st-home-pc .st-pennant-thumbnails > button { transition: border-color .2s, opacity .2s; }
.st-home-pc #honours .st-pennant-thumbnails > :not([aria-pressed="true"]) { opacity: .78; }
.st-home-pc #honours .st-pennant-thumbnails > :hover { opacity: 1; }
.st-home-pc .st-recognition-award-image { box-shadow: var(--st-shadow-sm); transition: box-shadow .3s var(--st-ease), transform .3s var(--st-ease); }
.st-home-pc .st-recognition-award:hover .st-recognition-award-image { box-shadow: var(--st-shadow-md); transform: translateY(-3px); }
.st-home-pc .st-recognition a:hover { text-decoration: none; }

/* ---------- Consult band ---------- */
.st-home-pc .st-consult-band { position: relative; overflow: hidden; padding: 48px 0; background: linear-gradient(110deg, var(--st-wine) 0%, var(--st-red) 55%, #b4262d 100%); }
.st-home-pc .st-consult-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgb(255 255 255 / 4%) 0 1px, transparent 1px 16px); -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); mask-image: linear-gradient(90deg, transparent 35%, #000); pointer-events: none; }
.st-home-pc .st-consult-band::after { content: ""; position: absolute; top: -120px; right: 18%; width: 340px; height: 340px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; box-shadow: 0 0 0 60px rgb(255 255 255 / 3%); pointer-events: none; }
.st-home-pc .st-consult-band .st-container { position: relative; z-index: 1; gap: 48px; }
.st-home-pc .st-consult-band span { font-size: 14px; letter-spacing: 2px; color: #f2cdc9; }
.st-home-pc .st-consult-band h2 { margin-top: 8px; font-size: 28px; font-weight: 600; letter-spacing: 1px; }
.st-home-pc .st-band-phone { position: relative; padding-left: 52px; font-size: 34px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.st-home-pc .st-band-phone::before { content: ""; position: absolute; left: 0; top: 50%; width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / 55%); border-radius: 50%; transform: translateY(-50%); background: center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.st-home-pc .st-band-phone:hover { color: #fff !important; opacity: .88; }
.st-home-pc .st-consult-band .st-button-white { padding: 13px 34px; }
.st-home-pc .st-consult-band .st-button-white:hover { box-shadow: 0 10px 24px -10px rgb(0 0 0 / 40%); }

/* ---------- Entrance motion (js/homepage.js, desktop motion section, adds data-reveal; content stays visible without JS) ---------- */
.st-home-pc.st-motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--st-ease), transform .8s var(--st-ease); transition-delay: calc(var(--st-reveal-index, 0) * 70ms); }
.st-home-pc.st-motion [data-reveal].is-revealed { opacity: 1; transform: none; }
.st-home-pc.st-motion .st-section-heading[data-reveal] h2 { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--st-ease) .15s; }
.st-home-pc.st-motion .st-section-heading[data-reveal].is-revealed h2 { clip-path: inset(0 -10px 0 0); }
@media (prefers-reduced-motion: reduce) {
    .st-home-pc.st-motion [data-reveal], .st-home-pc.st-motion .st-section-heading[data-reveal] h2 { opacity: 1; transform: none; clip-path: none; transition: none; }
    .st-home-pc .st-button:hover, .st-home-pc .st-case-card:hover, .st-home-pc #team .st-lawyer:hover,
    .st-home-pc .st-business-eight .st-business-entry:hover { transform: none; }
}

/* ===== Section heading watermarks (was homepage-heading-watermark.css) ===== */
/*
 * Section heading watermarks (2026-11-19).
 * Loaded only by the PC homepage template, after its other stylesheets; every rule is scoped to .st-home-pc.
 * A large outlined English word sits behind each section heading, on the right-hand side, clear of the
 * Chinese title, label and description. It is decorative CSS text with an empty alternative, so screen
 * readers skip it. Headings, links and content are unchanged.
 * Mobile has none: its headings span the full width, so there is no spot that would not cover text.
 */
.st-home-pc .st-section-heading { position: relative; isolation: isolate; }
.st-home-pc .st-section-heading::before {
    position: absolute;
    z-index: -1;
    top: -.08em;
    right: 0;
    color: transparent;
    font: 700 clamp(48px, 6.5vw, 84px)/1 Georgia, "Times New Roman", serif;
    letter-spacing: .04em;
    white-space: nowrap;
    -webkit-text-stroke: 1px rgb(165 30 37 / 16%);
    pointer-events: none;
}
.st-home-pc #business .st-section-heading::before { content: "PRACTICE"; content: "PRACTICE" / ""; }
.st-home-pc #team .st-section-heading::before { content: "OUR TEAM"; content: "OUR TEAM" / ""; }
.st-home-pc #honours .st-section-heading::before { content: "HONOURS"; content: "HONOURS" / ""; }
.st-home-pc #announcements .st-section-heading::before { content: "NOTICES"; content: "NOTICES" / ""; }
.st-home-pc #cctv .st-section-heading::before { content: "ON SCREEN"; content: "ON SCREEN" / ""; }
.st-home-pc #guides .st-section-heading::before { content: "GUIDES"; content: "GUIDES" / ""; }
.st-home-pc #news .st-section-heading::before { content: "NEWS"; content: "NEWS" / ""; }
.st-home-pc #case-map .st-section-heading::before { content: "FOOTPRINT"; content: "FOOTPRINT" / ""; }
/* #cases has no word: its filters fill the right of the heading. */
