﻿:root {
  --font-geist-sans: "GeistSans";
  --font-geist-mono: "GeistMono";
}

@font-face {
  font-family: "GeistSans";
  src: url("./assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistSans";
  src: url("./assets/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistMono";
  src: url("./assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistMono";
  src: url("./assets/fonts/geist-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f3f5f8;
  --foreground: #0f172a;
  --surface: #ffffff;
  --muted: #64748b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #eef2f7;
    --foreground: #0f172a;
    --surface: #ffffff;
    --muted: #475569;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 14% 12%, rgba(148, 163, 184, 0.16), transparent 32%),
    radial-gradient(circle at 86% 10%, rgba(203, 213, 225, 0.2), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, var(--background) 40%, #eef2f7 100%);
  color: var(--foreground);
  font-family: var(--font-geist-sans), "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-logo {
  height: 68px;
  width: auto;
  display: block;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
}

.hero-text { flex: 1; }

.hero-tag {
  display: inline-block;
  font-family: "Noto Sans SC", sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: #f97316;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 16px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero-name {
  font-family: "AaJiaoTangTi", "JiaoTangTi", "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 3px 16px rgba(15, 23, 42, 0.45);
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-name span {
  color: #f97316;
  text-shadow: 0 0 30px rgba(120, 245, 255, 0.45);
}

.hero-title {
  font-size: 18px;
  color: #e2e8f0;
  margin: 16px 0 28px;
  letter-spacing: 3px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-bio {
  font-size: 15px;
  line-height: 1.85;
  color: #f3f4f6;
  max-width: 480px;
  border-left: 2px solid #f97316;
  padding-left: 20px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  animation: fadeUp 0.8s 0.4s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #ffffff;
  border: none;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: "Noto Sans SC", sans-serif;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(120, 245, 255, 0.45);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 14px 36px;
  font-size: 14px;
  letter-spacing: 2px;
  font-family: "Noto Sans SC", sans-serif;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: #f97316;
  color: #f97316;
}

.hero-avatar-wrap {
  flex-shrink: 0;
  position: relative;
  animation: fadeUp 0.8s 0.2s ease both;
}

.avatar-frame {
  width: 260px;
  height: 260px;
  position: relative;
  border-radius: 50%;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: #fb923c;
  border-right-color: #f97316;
  animation: spin 8s linear infinite;
}

.avatar-ring-2 {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(249, 115, 22, 0.45);
  animation: spin 12s linear infinite reverse;
}

.avatar-img {
  width: 240px;
  height: 240px;
  margin: 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(249, 115, 22, 0.45);
  display: block;
}

.avatar-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #f97316;
  border-style: solid;
}

.avatar-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.avatar-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.avatar-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.avatar-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.stat-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 16px;
  font-size: 12px;
  color: #ffffff;
  backdrop-filter: blur(8px);
  border-radius: 999px;
}

.stat-badge .num {
  font-family: "DM Serif Display", serif;
  font-size: 18px;
  color: #f97316;
  display: block;
}

.stat-badge.left { left: -80px; top: 40%; }
.stat-badge.bottom { bottom: -20px; right: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* card effect calibration to match yara-agency sections */
#services article,
#cases article,
#process article {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

#services article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.45);
}

.service-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: auto;
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 0;
  border: 1px solid #d4d4d8;
  background: #f5f5f5;
  color: #52525b;
  font-size: clamp(11px, 0.85vw, 13px) !important;
  font-weight: 500;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
}

main .service-tag {
  font-size: 13px !important;
}

.service-card-title {
  letter-spacing: 0.01em;
}

.service-card-desc {
  color: #52525b;
}

.cap-bubbles {
  position: absolute;
  right: -190px;
  top: 94px;
  width: min(270px, 28vw);
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  z-index: 4;
}

.bubble-side-trigger {
  position: absolute;
  right: 235px;
  top: 102px;
  z-index: 5;
  border: 0;
  background: transparent;
  padding: 0;
  color: #f97316;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.bubble-side-trigger:hover {
  opacity: 0.85;
}

.cap-bubble {
  position: relative;
  border-radius: 28px;
  padding: 16px 16px;
  min-height: 84px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.88) 0 16%, rgba(255, 255, 255, 0.15) 32%, rgba(255, 247, 237, 0.7) 62%, rgba(255, 229, 204, 0.82) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 16px 30px -24px rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  animation: bubbleFloat 5.2s ease-in-out infinite;
  animation-play-state: paused;
}

.cap-bubble::before {
  content: none;
}

.cap-bubble::after {
  content: none;
}

.cap-bubble-1 { border-radius: 30px; }
.cap-bubble-2 { border-radius: 26px; }
.cap-bubble-3 { border-radius: 32px; }

.cap-bubbles-active .cap-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: var(--bubble-delay, 0s);
  animation-play-state: running;
}

.cap-bubble-title {
  color: #c2410c;
  font-weight: 600;
  font-size: 9px;
  line-height: 1.4;
  font-family: "Noto Sans SC", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.cap-bubble-body {
  margin-top: 8px;
  color: #475569;
  font-size: 9px;
  line-height: 1.45;
  font-family: "Noto Sans SC", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  word-break: break-word;
  overflow-wrap: anywhere;
}

main .cap-bubble-title,
main .cap-bubble-body {
  font-size: 9px !important;
  text-align: center !important;
}

.bubble-trigger {
  cursor: pointer;
  user-select: none;
}

.bubble-trigger::after {
  content: "";
}

#services {
  position: relative;
  overflow: visible !important;
}

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


/* section and card visual lock for screenshots */
#services,
#process {
  border-color: rgba(251, 146, 60, 0.22) !important;
  background-color: rgba(255, 247, 237, 0.62) !important;
}

#cases,
main section:first-of-type {
  background: #ffffff !important;
}

main section:first-of-type article,
#cases article,
#process article {
  background: #f8fafc !important;
  border-color: #d5deea !important;
  border-radius: 20px !important;
}

main section:first-of-type article h3,
#cases article h3,
#process article h3 {
  letter-spacing: 0.01em;
}

#cases img {
  border-radius: 14px !important;
}

#process article p {
  line-height: 1.85;
}

/* enforce content font size */
main p,
main li {
  font-size: 16px !important;
}

@media (max-width: 768px) {
  #desktopNav {
    display: flex !important;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
    padding: 4px;
  }

  #desktopNav a {
    flex: 0 0 auto;
  }

  #menuBtn,
  #mobileNav {
    display: none !important;
  }

  footer .max-w-6xl {
    padding-top: 32px !important;
    padding-bottom: 20px !important;
  }

  #footerLinks {
    flex-direction: row !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
  }

  main section {
    margin-top: 20px !important;
    border-radius: 20px !important;
    padding: 20px !important;
  }

  #hero {
    height: 86vh !important;
    min-height: 760px !important;
    overflow: hidden !important;
  }

  #hero > .absolute.inset-0 {
    position: absolute !important;
    inset: 0 !important;
    display: flex;
    align-items: flex-start;
    padding-top: 26px;
  }

  #hero h1 {
    font-size: 34px !important;
    line-height: 1.12 !important;
  }

  #hero p {
    max-width: 100% !important;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 18px;
    text-align: center;
  }

  .hero-avatar-wrap {
    margin-top: 4px;
  }

  .avatar-frame {
    width: 210px;
    height: 210px;
  }

  .avatar-img {
    width: 194px;
    height: 194px;
    margin: 8px;
  }

  .hero-bio {
    margin: 0 auto;
    border-left: none;
    border-top: 2px solid #f97316;
    padding-left: 0;
    padding-top: 14px;
  }

  .hero-actions {
    justify-content: center;
  }

  .stat-badge {
    display: none;
  }

  #hero .mt-5.flex a {
    width: 100%;
    justify-content: center;
  }

  #services .md\:grid-cols-3,
  #cases .md\:grid-cols-3,
  #process .md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .cap-bubbles {
    display: none !important;
  }

  .bubble-side-trigger {
    display: none !important;
  }

  #services article,
  #cases article,
  #process article {
    padding: 18px !important;
  }

  #cases img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  main h2 {
    font-size: 34px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 30px !important;
  }

  main h2 {
    font-size: 30px !important;
  }
}




