/* ============================================================
   The Ethereal Atelier Marketing — Design Tokens & Base
   ============================================================ */
:root {
  /* Brand palette — 橘黃暖色系 */
  --brand-primary: #ea580c;     /* orange-600 */
  --brand-primary-dark: #c2410c; /* orange-700 */
  --brand-primary-light: #fb923c; /* orange-400 */
  --brand-accent: #f59e0b;       /* amber-500 */
  --brand-accent-dark: #d97706;  /* amber-600 */
  --brand-glow: #fef3c7;         /* amber-100 — soft warm */

  /* Neutrals */
  --bg: #ffffff;
  --bg-warm: #fffbeb;            /* amber-50 — warm surface */
  --bg-soft: #f8fafc;            /* slate-50 */
  --text: #1c1917;               /* stone-900 */
  --text-muted: #57534e;         /* stone-600 */
  --text-soft: #78716c;          /* stone-500 */
  --border: #e7e5e4;             /* stone-200 */
  --border-warm: #fed7aa;        /* orange-200 */

  /* System */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow: 0 4px 12px rgb(234 88 12 / 0.08), 0 1px 3px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 20px 40px -10px rgb(234 88 12 / 0.18), 0 8px 16px -8px rgb(0 0 0 / 0.08);
  --container: 1180px;
  --transition: 200ms cubic-bezier(.4,0,.2,1);

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", Roboto, sans-serif;
  --font-display: "PingFang TC", "Noto Serif TC", "Microsoft JhengHei", Georgia, serif;
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-primary-dark); }
button { font: inherit; cursor: pointer; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-primary); color: white; padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 380ms cubic-bezier(.4,0,.2,1),
              opacity 280ms ease,
              background 280ms ease,
              border-color 280ms ease;
}
.site-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}
/* On inner pages (no full-bleed hero) the navbar is visible by default */
body.is-inner-page .site-header {
  position: sticky;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.05rem;
  color: var(--text);
  flex-shrink: 0;
}
.logo:hover { color: var(--brand-primary); }
.logo-mark { width: 32px; height: 32px; }
.logo-text { display: inline-flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.logo-text small { font-weight: 400; font-size: 0.7rem; color: var(--text-soft); letter-spacing: 0.05em; white-space: nowrap; }
.nav { margin-left: auto; }
.nav ul {
  display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0;
}
.nav a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 8px;
  color: var(--text); font-weight: 500; font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover, .nav a.active {
  background: var(--bg-warm);
  color: var(--brand-primary);
}
.nav-cta {
  background: var(--brand-primary) !important;
  color: white !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px !important;
}
.nav-cta:hover { background: var(--brand-primary-dark) !important; }

.lang-toggle, .nav-toggle {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 0.4rem 0.7rem; font-size: 0.85rem; font-weight: 600;
  transition: all var(--transition);
}
.lang-toggle:hover { background: var(--bg-warm); border-color: var(--brand-primary); color: var(--brand-primary); }
.nav-toggle { display: none; padding: 0.45rem; }
.nav-toggle::before {
  content: ""; display: block; width: 22px; height: 16px;
  background: linear-gradient(to bottom, currentColor 0 2px, transparent 2px 7px, currentColor 7px 9px, transparent 9px 14px, currentColor 14px 16px);
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-200%); transition: transform var(--transition);
  }
  .nav.open { transform: translateY(0); }
  .nav ul { flex-direction: column; padding: 1rem; gap: 0.25rem; }
  .nav a { padding: 0.85rem 1rem; min-height: 44px; display: flex; align-items: center; }

  /* On mobile the hamburger MUST be reachable even on the hero — force header visible
     so users can open navigation without scrolling first. Desktop keeps the
     cinematic hide-then-reveal-on-scroll behaviour. */
  .site-header {
    position: sticky;
    top: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: rgb(255 255 255 / 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--border);
  }
  /* Hero no longer needs a negative margin to slide under the header on mobile */
  .hero { margin-top: 0; height: calc(100vh - 72px); height: calc(100svh - 72px); min-height: 480px; }

  /* Larger tap targets on mobile */
  .lang-toggle, .nav-toggle { min-height: 40px; min-width: 40px; }
  .btn { min-height: 44px; }
}

/* ============================================================
   HERO — bare HyperFrames video, no chrome, dark cinematic
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;          /* fallback for older browsers */
  height: 100svh;         /* iOS Safari & modern: respects dynamic viewport */
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: #05060a; /* deep ink — matches video first frame */
  margin-top: -72px; /* pull under sticky header so video is truly edge-to-edge */
}

/* Dark cinematic fallback if video can't load */
.hero__animated-bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 65%, #1a0e05 0%, #07080c 55%, #03040a 100%),
    radial-gradient(circle at 50% 62%, rgba(255,174,58,0.22) 0%, transparent 28%);
  animation: hero-pulse 8s ease-in-out infinite alternate;
}
@keyframes hero-pulse {
  0%   { filter: brightness(0.9) saturate(1.0); }
  100% { filter: brightness(1.05) saturate(1.1); }
}

/* The <video> element — full-bleed */
.hero__video {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: opacity 700ms ease;
}
/* Fade-out applied by JS once the film has played through once. */
.hero__video.is-finished {
  opacity: 0;
  pointer-events: none;
}

/* After the film completes, JS adds .is-collapsed to the hero — the whole
   section shrinks to 0 height and fades out, taking the dark background with
   it. Scroll anchoring keeps the intro section visually pinned. */
.hero {
  transition: height 800ms cubic-bezier(.4,0,.2,1),
              min-height 800ms cubic-bezier(.4,0,.2,1),
              margin 800ms cubic-bezier(.4,0,.2,1),
              opacity 600ms ease;
  will-change: height, opacity;
}
.hero.is-collapsed {
  height: 0 !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Scroll cue — sits at the bottom of the hero, minimal */
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 32px;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  color: rgba(255, 213, 122, 0.85);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  font-weight: 600;
  text-transform: uppercase;
  transition: color var(--transition), transform var(--transition);
  animation: hero-cue-pulse 2.4s ease-in-out infinite;
}
.hero__scroll:hover { color: #ffd57a; transform: translate(-50%, -2px); }
.hero__scroll-label { line-height: 1; }
.hero__scroll-arrow {
  display: block;
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, rgba(255,213,122,0.1), rgba(255,213,122,0.9));
  position: relative;
}
.hero__scroll-arrow::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 7px; height: 7px;
  border-right: 1px solid rgba(255,213,122,0.9);
  border-bottom: 1px solid rgba(255,213,122,0.9);
  transform: translateX(-50%) rotate(45deg);
}
@keyframes hero-cue-pulse {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 0.35; }
}

/* Centered content */
.hero__content {
  position: relative;
  z-index: 4;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 16px rgb(28 25 23 / 0.35);
}
.hero__eyebrow {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgb(255 255 255 / 0.15);
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 720px;
  color: rgb(255 255 255 / 0.92);
}
.hero__cta-row { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-primary);
  color: white;
  box-shadow: 0 10px 30px -10px rgb(234 88 12 / 0.5);
}
.btn--primary:hover { background: var(--brand-primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgb(234 88 12 / 0.6); }
.btn--ghost {
  background: rgb(255 255 255 / 0.1);
  color: white;
  border-color: rgb(255 255 255 / 0.35);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.2); color: white; border-color: rgb(255 255 255 / 0.5); }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  z-index: 4;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll::after {
  content: ""; display: block; width: 1px; height: 30px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.7), transparent);
  margin: 0.5rem auto 0;
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ============================================================
   Sections / Pages
   ============================================================ */
section { padding: 5rem 0; }
.section--warm { background: var(--bg-warm); }
.section__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.section__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section__head { text-align: center; margin-bottom: 3rem; }

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  position: relative;
  display: block;
  padding: 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  opacity: 0; transition: opacity var(--transition);
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-glow), #fff);
  border: 1px solid var(--border-warm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--brand-primary);
  transition: all var(--transition);
}
.service-card:hover .service-card__icon { background: white; transform: scale(1.06); }
.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.service-card__title small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--text-soft); margin-top: 0.2rem; }
.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}
.service-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
}
.service-card__link::after { content: " →"; transition: transform var(--transition); display: inline-block; }
.service-card:hover .service-card__link::after { transform: translateX(4px); }

/* Stat / value row */
.value-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.value-row__item {
  text-align: center;
  padding: 1.5rem;
}
.value-row__number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.value-row__label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Why us — alt layout list */
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.why-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; background: white; border: 1px solid var(--border);
  border-radius: var(--radius); transition: all var(--transition);
}
.why-list li:hover { border-color: var(--border-warm); box-shadow: var(--shadow); }
.why-list__num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.why-list__title { font-weight: 700; margin: 0 0 0.3rem; font-size: 1.05rem; }
.why-list__desc { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 3rem 0;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 0.8rem;
}
.cta-banner p { font-size: 1.05rem; margin: 0 0 1.6rem; opacity: 0.95; }
.cta-banner .btn--primary { background: white; color: var(--brand-primary); }
.cta-banner .btn--primary:hover { background: var(--bg-warm); color: var(--brand-primary-dark); }
.cta-banner .btn--ghost { color: white; border-color: rgb(255 255 255 / 0.5); }
.cta-banner .btn--ghost:hover { background: rgb(255 255 255 / 0.15); }

/* Article / generic page */
.page-header {
  background: linear-gradient(135deg, var(--bg-warm), white 50%);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}
.page-header p { color: var(--text-muted); font-size: 1.15rem; max-width: 720px; margin: 0 auto; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 2rem 0 0.8rem; }
.prose p { margin: 0 0 1.2rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }
.prose li { margin: 0.5rem 0; }
.prose strong { color: var(--brand-primary-dark); }

/* Contact form */
.contact-form {
  max-width: 560px; margin: 0 auto;
  display: grid; gap: 1.2rem;
}
.contact-form label {
  display: block;
  font-weight: 600; font-size: 0.9rem;
  margin-bottom: 0.4rem; color: var(--text);
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgb(234 88 12 / 0.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  padding: 1rem; font-weight: 700; border-radius: 999px;
  background: var(--brand-primary); color: white; border: none;
  font-size: 1rem;
  transition: all var(--transition);
}
.contact-form button:hover { background: var(--brand-primary-dark); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-brand { font-size: 1.15rem; font-weight: 700; color: white; margin: 0 0 0.4rem; }
.footer-info { font-size: 0.9rem; color: #a8a29e; margin: 0 0 0.5rem; }
.footer-info a { color: #fed7aa; }
.footer-info a:hover { color: var(--brand-primary-light); }
.footer-address { font-size: 0.85rem; color: #a8a29e; margin: 0 0 1.5rem; }
.footer-address a { color: #d6d3d1; text-decoration: none; }
.footer-address a:hover { color: var(--brand-primary-light); text-decoration: underline; }
.footer-sep { margin: 0 0.5rem; color: #57534e; }
.footer-social {
  display: flex; justify-content: center; gap: 0.6rem;
  margin: 1rem 0 1.6rem;
}
.footer-social__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.05);
  color: #d6d3d1;
  transition: all var(--transition);
}
.footer-social__link:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
}
.footer-copy { font-size: 0.85rem; color: #78716c; margin: 0 0 0.4rem; }
.footer-ai-note { font-size: 0.78rem; color: #57534e; margin: 0; font-style: italic; }

/* ============================================================
   Inner-page hero (services / about / contact)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 8rem 0 4rem;
  background: linear-gradient(180deg, #fff7ed 0%, #fffbf5 60%, #ffffff 100%);
  border-bottom: 1px solid #fde6c8;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.7) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  margin: 0.6rem 0 1rem;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.page-hero__lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   Service detail blocks (services.html anchor sections)
   ============================================================ */
.service-detail { padding: 5rem 0; }
.service-detail--alt { background: #fffaf3; }
.service-detail__grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.service-detail__icon-block {
  position: sticky;
  top: 96px;
}
.service-detail__icon-block .service-card__icon { margin-bottom: 1rem; }
.service-detail__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.25rem;
  line-height: 1.25;
}
.service-detail__sub {
  font-size: 0.92rem;
  color: var(--brand-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
}
.service-detail__body { max-width: 720px; }
.service-detail__lead {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.7;
  margin: 0 0 1.8rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--brand-primary);
}
.service-detail__h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 2rem 0 0.9rem;
  font-weight: 700;
}
.service-detail__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}
.service-detail__list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.6rem;
  color: var(--text);
  line-height: 1.7;
  border-bottom: 1px dashed #f5e0c1;
}
.service-detail__list li:last-child { border-bottom: 0; }
.service-detail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}
@media (max-width: 820px) {
  .service-detail__grid { grid-template-columns: 1fr; gap: 24px; }
  .service-detail__icon-block { position: static; }
}

/* ============================================================
   Embedded Google Maps on contact page — 16:9 responsive
   ============================================================ */
.contact-map {
  position: relative;
  width: 100%;
  margin: 2rem 0 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #fde6c8;
  box-shadow: 0 12px 32px -16px rgba(234, 88, 12, 0.18);
  background: var(--bg-warm);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.92);
  transition: filter var(--transition);
}
.contact-map:hover iframe { filter: saturate(1.0); }
@media (max-width: 640px) {
  .contact-map { aspect-ratio: 4 / 3; }
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-card {
  background: #ffffff;
  border: 1px solid #fde6c8;
  border-radius: var(--radius-lg);
  padding: 2.6rem 2.4rem;
  box-shadow: 0 24px 60px -28px rgba(234, 88, 12, 0.22);
}
.contact-card h2 {
  font-size: 1.4rem;
  margin: 0 0 1.2rem;
  color: var(--text);
}
.contact-card__h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.8rem;
}
.contact-card__list {
  margin: 0 0 0.8rem;
  padding-left: 1.3rem;
}
.contact-card__list li {
  padding: 0.35rem 0;
  color: var(--text);
  line-height: 1.65;
}
.contact-card__note {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: italic;
  margin: 0;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed #f5e0c1;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list__label {
  flex: 0 0 100px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.contact-list__value {
  color: var(--text);
  font-weight: 500;
}
a.contact-list__value { color: var(--brand-primary); }
a.contact-list__value:hover { text-decoration: underline; }

/* ============================================================
   Prose (about page long-form copy)
   ============================================================ */
.prose h2 {
  font-size: 1.45rem;
  margin: 2.2rem 0 0.8rem;
  color: var(--text);
  font-weight: 700;
}
.prose p, .prose li {
  color: var(--text);
  line-height: 1.85;
  font-size: 1.02rem;
}
.prose ol { padding-left: 1.4rem; }
.prose ol li { padding: 0.4rem 0; }
.prose a { color: var(--brand-primary); }
.prose a:hover { text-decoration: underline; }

/* ============================================================
   Process row — "萃取四步驟" (Distill / Encode / Amplify / Refine)
   ============================================================ */
.process-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.process-row__item {
  position: relative;
  padding: 2rem 1.6rem 1.8rem;
  background: #ffffff;
  border: 1px solid #fde6c8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.process-row__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.process-row__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-primary);
  margin-bottom: 0.6rem;
}
.process-row__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--text);
  letter-spacing: -0.005em;
}
.process-row__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 980px) {
  .process-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Industries served — pill grid
   ============================================================ */
.industry-grid {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 0;
  max-width: 880px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 0.9rem;
}
.industry-tag {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.industry-tag:hover {
  background: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
}

/* ============================================================
   Section intro — first text block after the hero video
   (Dark-to-light transition: opens dark, fades into the warm cards below)
   ============================================================ */
.section-intro {
  position: relative;
  padding: 7rem 0 6rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 174, 58, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #05060a 0%, #0a0b14 55%, #1a0e05 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.section-intro::before {
  /* Top edge merges with the hero video's last frame (dark) */
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, #05060a 0%, transparent 100%);
  pointer-events: none;
}
.section-intro .container { position: relative; max-width: 920px; z-index: 1; }
.section-intro .section__eyebrow {
  color: #ffd57a;
  background: rgba(255, 213, 122, 0.08);
  border: 1px solid rgba(255, 213, 122, 0.3);
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.section-intro__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 1.4rem 0 1.6rem;
  color: #ffffff;
}
.section-intro__title em {
  font-style: normal;
  background: linear-gradient(135deg, #ffd57a 0%, #ffae3a 45%, #ff5e2d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-intro__lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  max-width: 740px;
  margin: 0 auto 2.2rem;
}
.section-intro .hero__cta-row {
  justify-content: center;
}
.section-intro .btn--ghost {
  color: #ffd57a;
  border-color: rgba(255, 213, 122, 0.55);
}
.section-intro .btn--ghost:hover {
  background: rgba(255, 213, 122, 0.12);
  color: #fff;
  border-color: #ffd57a;
}
/* Bottom edge softens into the warm section below */
.section-intro::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 140px;
  background: linear-gradient(to bottom, transparent 0%, #1a0e05 0%, #fffaf3 100%);
  pointer-events: none;
}

/* ============================================================
   Responsive — mobile-first cascade
   ============================================================ */

/* ≤640px (most phones in portrait) */
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
  .hero__cta-row { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .btn { width: 100%; justify-content: center; min-height: 48px; }
  .cta-banner { padding: 3rem 1.25rem; }
  .cta-banner h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
  .page-hero { padding: 5rem 0 2.5rem; }
  .contact-card { padding: 1.8rem 1.4rem; }
  .contact-list li { flex-direction: column; gap: 0.2rem; }
  .contact-list__label { flex: none; }

  /* Header shrink — kicks in at 640 instead of 480 so the hamburger never
     overflows on phones/small tablets in portrait. */
  .header-inner { gap: 0.8rem; height: 64px; }
  .logo { font-size: 0.95rem; gap: 0.45rem; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-text small { display: none; }     /* hide secondary brand label below 640 */
  .lang-toggle { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
  .nav { top: 64px; }
  .hero { height: calc(100vh - 64px); height: calc(100svh - 64px); min-height: 460px; }

  /* Section spacing & headings */
  .section__head { margin-bottom: 2rem; }
  .section__title { font-size: clamp(1.5rem, 6vw, 2.1rem); }
  .section-intro { padding: 5rem 0 4rem; }
  .section-intro__title { line-height: 1.15; }

  /* Why list — keep number + body horizontal but tighten */
  .why-list li { padding: 1rem; gap: 0.8rem; }
  .why-list__num { flex: 0 0 36px; height: 36px; width: 36px; font-size: 1rem; }
  .why-list__title { font-size: 1.05rem; }

  /* Process row already drops to 1 column ≤560px — leave it */

  /* Industry tags — slightly smaller for mobile */
  .industry-tag { font-size: 0.95rem; padding: 0.55rem 1rem; }

  /* Service detail body padding */
  .service-detail { padding: 3.5rem 0; }
  .service-detail__title { font-size: 1.5rem; }

  /* Page hero title — already clamped, but tighten lead */
  .page-hero__lead { font-size: 1.02rem; line-height: 1.65; }

  /* Footer reflow */
  .footer-info { display: flex; flex-direction: column; gap: 0.3rem; }
  .footer-sep { display: none; }
  .footer-brand { font-size: 1.05rem; }
}

/* ≤480px (small phones — iPhone SE etc.) — extra refinements only */
@media (max-width: 480px) {
  .header-inner { gap: 0.5rem; }
  .lang-toggle { padding: 0.4rem 0.5rem; }
  /* Hero scroll cue smaller */
  .hero__scroll { bottom: 18px; font-size: 0.65rem; letter-spacing: 0.32em; }
  .hero__scroll-arrow { height: 28px; }
}

/* ≤380px (older / smaller Android phones) */
@media (max-width: 380px) {
  .container { padding: 0 1rem; }
  section { padding: 3rem 0; }
  .page-hero { padding: 4.5rem 0 2rem; }
  .section-intro { padding: 4rem 0 3.5rem; }
  .cta-banner { padding: 2.4rem 1rem; }
  .contact-card { padding: 1.4rem 1.1rem; }
  .why-list li { flex-direction: column; gap: 0.5rem; }
  .why-list__num { margin-bottom: 0.2rem; }
}

/* Landscape phones — the hero shouldn't dominate the whole short viewport */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 360px; height: 100svh; }
  .section-intro { padding: 4rem 0 3rem; }
  .hero__scroll { display: none; }
}

/* Prevent horizontal overflow from any rogue child */
html, body { overflow-x: hidden; max-width: 100%; }

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