/* Stargo Growth layer on top of the Valtero template (valtero.css). Keep it small: brand fonts,
   Chinese typography, accessibility helpers and the few blocks the template does not have. */

/* Chinese text: Latin keeps the template fonts, CJK falls back to Noto Sans SC (self-hosted slices). */
:root {
  --font--primary-font: Inter, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font--second-font: "Coolvetica Rg Cond", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}
body { background-color: #000; }
.lang-zh .h1, .lang-zh .hero-title, .lang-zh .text-rotator-big, .lang-zh .work-text, .lang-zh .about-title { font-feature-settings: normal; }
/* Condensed Latin display type has no CJK; give Chinese headings a tighter, heavier fallback so they hold up next to it. */
.lang-zh .h1, .lang-zh .text-rotator-big, .lang-zh .hero-title { font-weight: 600; letter-spacing: -0.02em; }
/* The template's 9rem display size suits one condensed Latin word; Chinese needs a calmer size or it breaks one glyph per line. */
.lang-zh .h1 { font-size: clamp(2.6rem, 4.8vw, 5.6rem); line-height: 1.08; }
.lang-zh .h1.third { font-size: clamp(2.2rem, 3.6vw, 4.2rem); }
.lang-zh .testimonials-section .h1 { font-size: clamp(3.4rem, 9vw, 9rem); }
.lang-zh .text-rotator-big { line-height: 1.15; }
.lang-zh .about-title { letter-spacing: 0; line-height: 1.35; }
.lang-zh p, .lang-zh .paragraph { line-height: 1.7; letter-spacing: 0; }
.lang-zh .top-text { letter-spacing: 0.04em; }

/* Accessibility */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100000; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.sg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [role="button"]:focus-visible { outline: 2px solid #3ddc84; outline-offset: 3px; }
.sg-plain-list { list-style: none; margin: 0; padding: 0; }
.sg-plain-a { color: inherit; text-decoration: none; }
.sg-plain-a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.sg-h1 { margin: 0; text-align: center; }
.lang-zh .sg-h1 { font-size: 1.35rem; line-height: 1.5; }
.lang-zh .right-studio-text .max-w-center._300 { max-width: 520px; }
.logo-main { height: auto; }

/* Nav: language switch in the mobile menu */
.sg-lang-m { display: inline-block; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 8px 18px; font-size: 14px; letter-spacing: .08em; }

/* Featured work: client-site screenshots fill the frame from the top (their hero), not the centre. */
.sg-shot-cover { object-position: 50% 0; }
.sg-shot-top { object-position: 50% 0; }
.sg-circle { display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; }
.sg-circle span { font-family: var(--font--second-font); font-size: 30px; line-height: 1; letter-spacing: .02em; color: #fff; text-transform: uppercase; }

/* Rotator words are decorative; keep them on one line */
.text-rotator-big { white-space: nowrap; margin: 0; }

/* Tech cards (home marquee + services grid) */
.sg-tech-no { font-family: var(--font--second-font); font-size: 1.4rem; opacity: .5; }
.sg-tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sg-tech-card { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 280px; }
.sg-tech-card h3 { margin: 10px 0 0; }
.sg-tech-p { margin: 16px 0 0; opacity: .75; }
@media (max-width: 991px) { .sg-tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sg-tech-grid { grid-template-columns: 1fr; } .sg-tech-card { min-height: 0; } }

/* Service rows: long paragraphs and facts on the services page */
.sg-detail { opacity: .72; }
.sg-svc-facts { margin: 20px 0 0; display: grid; gap: 12px; }
.sg-svc-facts div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; }
.sg-svc-facts dt { opacity: .55; margin: 0; }
.sg-svc-facts dd { margin: 0; opacity: .85; line-height: 1.6; }
.sg-svc-facts b { font-family: var(--font--second-font); font-size: 1.6rem; font-weight: 400; margin-right: 6px; }

/* Clients hover list links */
.sg-thumb-link { color: inherit; text-decoration: none; }

/* Headings that replaced template divs keep template sizing */
.sg-q { font-size: inherit; line-height: inherit; font-weight: inherit; margin: 0; }
.sg-card-title { font-size: inherit; font-weight: inherit; line-height: 1.4; margin: 0; }
.work-text-wrapper h3.work-text { margin: 0; }
.thumb-title { margin: 0; }

/* Case pages */
.sg-shot-link { display: block; color: inherit; }
.sg-fig { margin: 0; }
.sg-cap { display: block; margin-top: 12px; opacity: .55; }
.sg-case-result { padding: 32px 0 8px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; }
.sg-case-result .h1 { margin: 0 0 8px; }
.sg-case-story { margin-top: 40px; display: grid; gap: 36px; }
.sg-case-sec h2 { margin: 0 0 14px; }
.sg-case-sec p { margin: 0 0 12px; }
.sg-facts { margin-top: 40px; }
.project-bottom-line dt, .project-bottom-line dd { margin: 0; }
.sg-result b { font-family: var(--font--second-font); font-size: 1.8rem; font-weight: 400; margin-right: 8px; opacity: 1; }
.sg-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .sg-work-grid { grid-template-columns: 1fr; } }

/* Answer pages */
.sg-intro { max-width: 900px; }
.sg-answer-lead { border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 24px 28px; background: #111; }
.sg-answer-lead .top-text { opacity: .6; margin-bottom: 10px; }
.sg-answer-lead .about-title { margin: 0; }
.sg-rt-h { font-size: 1.5rem; margin: 36px 0 12px; }
.w-richtext p { opacity: .8; }

/* About */
.sg-award-p { opacity: .7; font-size: .95em; line-height: 1.5; }
.award-wrapper { list-style: none; }

/* Contact */
.sg-steps { display: grid; gap: 22px; }
.sg-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: baseline; }
.sg-steps .about-title { margin: 0; }
.sg-lab { display: block; }
.sg-form-note[data-state="sent"] { color: #ffd166; opacity: 1; }
.sg-contact-lines a { color: inherit; }

/* Footer */
.sg-foot-lead { margin: 0; max-width: 420px; }
.sg-foot-link { color: inherit; text-decoration: none; }
.sg-foot-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sg-foot-tag { opacity: .55; }
.sg-wordmark { width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* About hero on phones: keep the floating images clear of the title */
@media (max-width: 767px) { .hero.for-about .hero-center { top: 9vh; } .hero.for-about .inner-flex { position: relative; z-index: 2; } }

/* Brand row (template logo strip): consented client names set as type, not fake logos. */
.sg-brand-row { grid-template-columns: repeat(3, 1fr); }
.sg-logo-text { font-family: "Coolvetica Rg Cond", Inter, sans-serif; font-size: 2.4rem; letter-spacing: .02em; text-transform: uppercase; color: #fff; opacity: .7; }
@media (max-width: 767px) { .sg-brand-row { grid-template-columns: 1fr; } .sg-logo-text { font-size: 1.5rem; } }
.sg-logo-text.small { font-size: 1.6rem; }
.cta .add-logo { grid-template-columns: repeat(3, 1fr); }

/* Home hero wordmark: the scene scales with its box width, so on wide, short screens it grew taller than the
   viewport and covered the tagline. Cap the box at 16:9 of the viewport height and centre it. */
@media (min-width: 992px) {
  .hero > .absolute-effect { left: 50%; right: auto; width: min(100%, 177.78vh); transform: translateX(-50%); }
}
