/* ============================================================
   清蓝世行 Qinglan Shixing — Design System
   Red-dot grade, international editorial style
   ============================================================ */

:root {
  --ink: #0a1f1c;
  --ink-2: #0e2a26;
  --ink-3: #12332e;
  --paper: #f6f5f0;
  --paper-2: #efeee7;
  --white: #ffffff;
  --eco: #2fbf8f;
  --eco-deep: #0f8a63;
  --aqua: #3ad7c0;
  --gold: #d8b56a;
  --mist: rgba(255, 255, 255, 0.08);
  --mist-2: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(10, 31, 28, 0.18);
  --line-light: rgba(255, 255, 255, 0.22);
  --text-dark: #14211e;
  --text-dark-2: rgba(20, 33, 30, 0.88);
  --text-light: #eef4f1;
  --text-light-2: rgba(238, 244, 241, 0.86);
  --font-display: "Playfair Display", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.65, 0.05, 0, 1);
  --nav-h: 84px;
  --radius: 0px; /* flat design: no rounded corners anywhere */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.7;
  word-wrap: break-word; overflow-wrap: break-word;
}

/* WCAG 2.1 AAA 1.4.8 Visual Presentation */
p, li, .lead, .section-lead, .hero-lead, .card p, .quote-block p, .legal-body p, .article-body p {
  max-width: 75ch;
}
p + p { margin-top: 1.5em; }
ul, ol { margin-top: 0.5em; margin-bottom: 0.5em; }
li + li { margin-top: 0.5em; }

::selection { background: var(--eco); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- film grain ---------- */
.noise::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-4%); } 60% { transform: translate(-2%,-3%); }
  80% { transform: translate(4%,2%); }
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 7px; height: 7px; background: var(--eco); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(47, 191, 143, 0.55);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--gold); }
@media (hover: none), (max-width: 860px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- typography helpers ---------- */
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--eco); font-weight: 600;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--eco); }
.eyebrow.on-light { color: var(--eco-deep); }
.eyebrow.on-light::before { background: var(--eco-deep); }

.h-xl { font-size: clamp(42px, 7.2vw, 108px); line-height: 1.04; }
.h-lg { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.1; }
.h-md { font-size: clamp(26px, 3vw, 40px); line-height: 1.2; }
.lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--text-light-2); max-width: 640px; }
.lead.on-light { color: var(--text-dark-2); }

.num-outline {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 150px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(47, 191, 143, 0.4);
}

/* ---------- layout ---------- */
.container { width: min(1240px, 92vw); margin: 0 auto; }
.section { position: relative; padding: clamp(90px, 11vw, 160px) 0; }
.section.tight { padding: clamp(60px, 7vw, 100px) 0; }
.section.light { background: var(--paper); color: var(--text-dark); }
.section.light .lead { color: var(--text-dark-2); }
.section.deep { background: var(--ink-2); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head .title-wrap { max-width: 720px; }
.section-head h2 { margin-top: 18px; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 34px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  overflow: hidden; isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--eco); border-radius: inherit;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.55s var(--ease-luxe);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arr { transition: transform 0.45s var(--ease-out); }
.btn:hover .arr { transform: translateX(6px); }
.btn-primary { background: var(--eco); color: var(--ink); }
.btn-primary::before { background: var(--white); }
.btn-ghost { border: 1px solid var(--mist-2); color: var(--text-light); }
.btn-ghost:hover { color: var(--ink); border-color: var(--eco); }
.btn-dark { border: 1px solid var(--line-dark); color: var(--text-dark); }
.btn-dark:hover { color: var(--ink); }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.1em; color: var(--eco);
  padding-bottom: 6px;
}
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--eco);
  transform: scaleX(0.35); transform-origin: left;
  transition: transform 0.5s var(--ease-luxe);
}
.link-line:hover::after { transform: scaleX(1); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.5s, backdrop-filter 0.5s, height 0.5s var(--ease-out), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 68px;
  background: rgba(10, 31, 28, 0.86) !important;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(47, 191, 143, 0.28) !important;
}
[data-theme="light"] .nav.scrolled {
  background: rgba(246, 245, 240, 0.9) !important;
  border-bottom-color: rgba(15, 138, 99, 0.32) !important;
}
/* eco gradient hairline that breathes in on scroll */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--eco), transparent);
  opacity: 0; transform: scaleX(0.3); transform-origin: center;
  transition: opacity 0.7s ease, transform 0.9s var(--ease-luxe);
}
.nav.scrolled::after { opacity: 0.75; transform: scaleX(1); }
.nav-inner { width: min(1360px, 94vw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img {
  height: clamp(44px, 5.5vw, 60px); width: auto; max-width: 200px; object-fit: contain;
  filter: drop-shadow(0 0 0.7px #ffffff) drop-shadow(0 0 10px rgba(255, 255, 255, 0.42));
}
.nav-logo .logo-text { line-height: 1.25; }
.nav-logo .logo-text b { display: block; font-size: 15px; letter-spacing: 0.06em; font-weight: 700; }
.nav-logo .logo-text span { display: block; font-size: 10px; letter-spacing: 0.18em; color: var(--text-light-2); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 10px 16px; font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.05em; color: var(--text-light-2);
  transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px;
  background: var(--eco); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-luxe);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-light); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--mist-2); border-radius: 999px;
  font-size: 12.5px; letter-spacing: 0.08em; color: var(--text-light);
  transition: border-color 0.3s, background 0.3s;
}
.lang-btn:hover { border-color: var(--eco); background: var(--mist); }
.lang-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 168px;
  background: rgba(14, 42, 38, 0.96); backdrop-filter: blur(20px);
  border: 1px solid var(--line-light); border-radius: 16px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.35s var(--ease-out);
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 10px 14px; border-radius: 10px; font-size: 13px; color: var(--text-light-2);
  transition: background 0.25s, color 0.25s; text-align: left;
}
.lang-menu button:hover { background: var(--mist); color: var(--text-light); }
.lang-menu button.current { color: var(--eco); }
.lang-menu button.current::after { content: "●"; font-size: 8px; }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.burger { display: none; flex-direction: column; gap: 6px; padding: 10px; }
.burger span { width: 26px; height: 1.5px; background: var(--text-light); transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
    width: 100%; height: 100%; min-height: 100vh; min-height: 100dvh;
    flex-direction: column; justify-content: flex-start; gap: 6px;
    background: #0a1f1c; /* solid: readable on any page section */
    opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0.45s;
    padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 env(safe-area-inset-bottom, 0px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; z-index: 1002;
    background: #0a1f1c;
  }
  .nav-links.open a { opacity: 0; transform: translateY(26px); animation: menu-rise 0.6s var(--ease-luxe) forwards; }
  .nav-links.open a:nth-child(1) { animation-delay: 0.06s; }
  .nav-links.open a:nth-child(2) { animation-delay: 0.12s; }
  .nav-links.open a:nth-child(3) { animation-delay: 0.18s; }
  .nav-links.open a:nth-child(4) { animation-delay: 0.24s; }
  .nav-links.open a:nth-child(5) { animation-delay: 0.30s; }
  .nav-links.open a:nth-child(6) { animation-delay: 0.36s; }
  .nav-links.open a:nth-child(7) { animation-delay: 0.42s; }
  @keyframes menu-rise { to { opacity: 1; transform: none; } }
  .nav-links a { font-size: clamp(22px, 5.8vw, 30px); font-family: var(--font-display); padding: 14px 28px; }
  .burger { display: flex; z-index: 1003; }
  .nav-cta { z-index: 1003; position: relative; }
  /* Keep the header itself readable when the fullscreen menu is open */
  .nav.menu-open { background: #0a1f1c !important; border-bottom-color: transparent !important; }
  [data-theme="light"] .nav.menu-open { background: #f6f5f0 !important; }
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 64px;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(58, 215, 192, 0.16), transparent 60%),
    radial-gradient(900px 600px at 8% 110%, rgba(47, 191, 143, 0.14), transparent 55%),
    linear-gradient(180deg, #0a1f1c 0%, #0d2823 60%, #0a1f1c 100%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; width: min(1240px, 92vw); margin: 0 auto; }
.hero-title { margin: 26px 0 30px; max-width: 1000px; }
.hero-title .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--text-light); }
.hero-title .accent { color: var(--eco); font-style: italic; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between;
  border-top: 1px solid var(--line-light); padding-top: 30px; margin-top: 20px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--mist-2); border-radius: 999px;
  font-size: 12px; letter-spacing: 0.12em; color: var(--text-light-2);
  backdrop-filter: blur(6px);
}
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--eco); }
.tag.on-light { border-color: var(--line-dark); color: var(--text-dark-2); }

.scroll-hint {
  position: absolute; right: 4vw; bottom: 40px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.4em; color: var(--text-light-2);
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 60px;
  background: linear-gradient(var(--eco), transparent);
  animation: drip 2s var(--ease-out) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 860px) { .scroll-hint { display: none; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(70px, 9vw, 130px)) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 85% -20%, rgba(58, 215, 192, 0.14), transparent 60%),
    linear-gradient(180deg, #0c2521, #0a1f1c);
}
.page-hero .crumbs { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: 0.16em; color: var(--text-light-2); text-transform: uppercase; margin-bottom: 26px; }
.page-hero .crumbs a:hover { color: var(--eco); }
.page-hero .crumbs .sep { color: var(--eco); }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { margin-top: 24px; }
.page-hero .big-ghost {
  position: absolute; right: -2vw; bottom: -4vw;
  font-family: var(--font-display); font-size: clamp(120px, 22vw, 320px);
  line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  pointer-events: none; user-select: none;
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); padding: 22px 0; background: rgba(255,255,255,0.02); }
.marquee.light { border-color: var(--line-dark); background: transparent; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 32px);
  white-space: nowrap; color: var(--text-light-2); display: flex; align-items: center; gap: 60px;
}
.marquee.light .marquee-track span { color: var(--text-dark-2); }
.marquee-track span::after { content: ""; width: 9px; height: 9px; background: var(--eco); flex: none; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.stats.on-light { background: var(--line-dark); border-color: var(--line-dark); }
.stat { background: var(--ink-2); padding: 40px 32px; transition: background 0.4s; }
.stats.on-light .stat { background: var(--white); }
.stat:hover { background: var(--ink-3); }
.stats.on-light .stat:hover { background: var(--paper-2); }
.stat .num { font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 64px); line-height: 1; color: var(--eco); }
.stat .num small { font-size: 0.5em; color: inherit; }
.stat .lbl { margin-top: 12px; font-size: 13px; letter-spacing: 0.08em; color: var(--text-light-2); }
.stats.on-light .stat .lbl { color: var(--text-dark-2); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards ---------- */
.card {
  position: relative; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 38px 34px; background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s, background 0.5s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), rgba(47,191,143,0.12), transparent 65%);
  opacity: 0; transition: opacity 0.5s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(47,191,143,0.5); }
.card:hover::before { opacity: 1; }
.card .idx { font-family: var(--font-display); font-size: 15px; color: var(--eco); letter-spacing: 0.1em; }
.card h3 { font-size: 22px; margin: 16px 0 12px; font-weight: 600; }
.card p { font-size: 14.5px; color: var(--text-light-2); }

.card.on-light { border-color: var(--line-dark); background: var(--white); }
.card.on-light p { color: var(--text-dark-2); }
.card.on-light:hover { border-color: var(--eco-deep); }

.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(47,191,143,0.12); border: 1px solid rgba(47,191,143,0.3);
  font-size: 24px;
}

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.split h2 { margin: 18px 0 22px; }
.split .body p + p { margin-top: 16px; }
.split .body { color: var(--text-light-2); font-size: 15.5px; }
.split.on-light .body { color: var(--text-dark-2); }

.visual-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-light); min-height: 380px;
  display: grid; place-items: center;
}
.visual-frame.on-light { border-color: var(--line-dark); }
.visual-frame .glyph {
  font-family: var(--font-display); font-size: clamp(90px, 12vw, 180px);
  color: transparent; -webkit-text-stroke: 1px rgba(47,191,143,0.5); line-height: 1;
}
.visual-aurora { position: absolute; inset: 0; background:
  radial-gradient(500px 300px at 30% 30%, rgba(58,215,192,0.18), transparent 60%),
  radial-gradient(400px 300px at 75% 75%, rgba(216,181,106,0.12), transparent 60%); }

/* ---------- comparison table ---------- */
.vs-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .vs-wrap { grid-template-columns: 1fr; } }
.vs-card { border-radius: var(--radius); padding: 44px 40px; position: relative; overflow: hidden; }
.vs-card.wePO { background: linear-gradient(160deg, #0e2a26, #12332e); border: 1px solid var(--line-light); }
.vs-card.qlsh { background: var(--paper); color: var(--text-dark); border: 1px solid var(--line-dark); }
.vs-card h3 { font-family: var(--font-display); font-size: 30px; margin: 14px 0 6px; }
.vs-card .sub { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eco); }
.vs-card.qlsh .sub { color: var(--eco-deep); }
.vs-list { margin-top: 28px; display: grid; gap: 0; }
.vs-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px dashed var(--line-light); font-size: 14.5px; }
.vs-card.qlsh .vs-list li { border-top-color: var(--line-dark); }
.vs-list li b { font-weight: 600; color: var(--eco); font-size: 13px; letter-spacing: 0.06em; }
.vs-card.qlsh .vs-list li b { color: var(--eco-deep); }
.vs-list li span { color: var(--text-light-2); }
.vs-card.qlsh .vs-list li span { color: var(--text-dark-2); }

/* ---------- people ---------- */
.people-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-light); min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px; isolation: isolate; transition: transform 0.55s var(--ease-out), border-color 0.5s; }
.people-card:hover { transform: translateY(-10px); border-color: rgba(47,191,143,0.55); }
.people-card .avatar-bg {
  position: absolute; inset: 0; z-index: -1;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 200px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(47,191,143,0.28);
  background: radial-gradient(500px 400px at 50% 0%, rgba(58,215,192,0.12), transparent 65%), var(--ink-2);
  transition: transform 0.8s var(--ease-out);
}
.people-card:hover .avatar-bg { transform: scale(1.08); }
.people-card .role-emoji { position: absolute; top: 28px; left: 32px; font-size: 34px; }
.people-card .pc-meta { position: relative; }
.people-card .pc-role { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--eco); }
.people-card h3 { font-family: var(--font-display); font-size: 34px; margin: 10px 0 8px; }
.people-card p { font-size: 14px; color: var(--text-light-2); max-width: 320px; }
.people-card .pc-more { margin-top: 18px; }

/* ---------- founder profile ---------- */
.profile-hero { position: relative; padding: calc(var(--nav-h) + 70px) 0 80px; overflow: hidden; background:
  radial-gradient(900px 500px at 80% -10%, rgba(58,215,192,0.16), transparent 60%),
  linear-gradient(180deg, #0c2521, #0a1f1c); }
.profile-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-mono {
  aspect-ratio: 4/5; border-radius: var(--radius); border: 1px solid var(--line-light);
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(500px 400px at 50% 20%, rgba(58,215,192,0.14), transparent 65%), var(--ink-2);
}
.profile-mono .glyph { font-family: var(--font-display); font-size: clamp(120px, 16vw, 240px); color: transparent; -webkit-text-stroke: 1.5px rgba(47,191,143,0.55); line-height: 1; }
.profile-mono .float-badge { position: absolute; padding: 10px 18px; border-radius: 999px; background: rgba(10,31,28,0.75); border: 1px solid rgba(47,191,143,0.4); backdrop-filter: blur(8px); font-size: 12.5px; letter-spacing: 0.08em; animation: floaty 5s ease-in-out infinite; }
.profile-mono .float-badge.b1 { top: 24px; left: 24px; }
.profile-mono .float-badge.b2 { bottom: 28px; right: 24px; animation-delay: -2.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.profile-info h1 { font-size: clamp(44px, 6vw, 84px); }
.profile-info .p-role { margin: 14px 0 26px; color: var(--eco); letter-spacing: 0.14em; font-size: 14px; text-transform: uppercase; }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: 16px; overflow: hidden; margin-top: 30px; }
.fact-grid .fact { background: var(--ink-2); padding: 18px 20px; }
.fact-grid .fact b { display: block; font-size: 11.5px; letter-spacing: 0.16em; color: var(--eco); text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }
.fact-grid .fact span { font-size: 14px; color: var(--text-light-2); }
@media (max-width: 560px) { .fact-grid { grid-template-columns: 1fr; } }

.quote-block {
  position: relative; padding: clamp(50px, 7vw, 90px); border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(47,191,143,0.12), rgba(47,191,143,0.03));
  border: 1px solid rgba(47,191,143,0.3); overflow: hidden;
}
.quote-block::before { content: "\201C"; position: absolute; top: -30px; left: 24px; font-family: var(--font-display); font-size: 200px; color: rgba(47,191,143,0.22); }
.quote-block p { font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 34px); line-height: 1.5; position: relative; }
.quote-block footer { margin-top: 22px; font-size: 13px; letter-spacing: 0.16em; color: var(--eco); text-transform: uppercase; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--eco), rgba(47,191,143,0.1)); }
.timeline li { position: relative; padding: 0 0 38px 26px; }
.timeline li::before { content: ""; position: absolute; left: -40px; top: 8px; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--eco); background: var(--ink); }
.timeline li::after { content: ""; position: absolute; left: -35px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--eco); }
.timeline .t-year { font-family: var(--font-display); font-size: 22px; color: var(--eco); }
.timeline .t-body { margin-top: 8px; font-size: 14.5px; color: var(--text-light-2); max-width: 560px; }
.timeline.on-light .t-body { color: var(--text-dark-2); }
.timeline.on-light li::before { background: var(--paper); }

/* ---------- data table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-light); border-radius: var(--radius); }
.table-wrap.on-light { border-color: var(--line-dark); }
table.data { width: 100%; border-collapse: collapse; min-width: 620px; }
table.data th, table.data td { padding: 18px 24px; text-align: left; font-size: 14.5px; }
table.data thead th { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--eco); border-bottom: 1px solid var(--line-light); font-weight: 600; }
table.data tbody tr { border-bottom: 1px solid var(--line-light); transition: background 0.3s; }
table.data tbody tr:last-child { border-bottom: none; }
table.data tbody tr:hover { background: rgba(47,191,143,0.06); }
table.data td { color: var(--text-light-2); }
table.data td:first-child { color: var(--text-light); font-weight: 600; }
.table-wrap.on-light table.data thead th { color: var(--eco-deep); border-bottom-color: var(--line-dark); }
.table-wrap.on-light table.data tbody tr { border-bottom-color: var(--line-dark); }
.table-wrap.on-light table.data td { color: var(--text-dark-2); }
.table-wrap.on-light table.data td:first-child { color: var(--text-dark); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(47,191,143,0.4); color: var(--eco); font-size: 12.5px; letter-spacing: 0.1em; transition: background 0.3s, color 0.3s; }
.chip:hover { background: var(--eco); color: var(--ink); }
.chip.on-light { border-color: var(--line-dark); color: var(--eco-deep); }
.chip.on-light:hover { background: var(--eco-deep); color: var(--white); }

/* ---------- news ---------- */
.news-item { display: grid; grid-template-columns: 130px 1fr auto; gap: 28px; align-items: center; padding: 30px 10px; border-bottom: 1px solid var(--line-light); transition: padding 0.4s var(--ease-out), background 0.4s; }
.news-item:hover { padding-left: 24px; background: linear-gradient(90deg, rgba(47,191,143,0.07), transparent); }
.news-item .n-date { font-family: var(--font-display); font-size: 15px; color: var(--eco); }
.news-item h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.news-item p { font-size: 13.5px; color: var(--text-light-2); }
.news-item .n-arrow { width: 46px; height: 46px; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; transition: all 0.4s var(--ease-out); }
.news-item:hover .n-arrow { background: var(--eco); border-color: var(--eco); color: var(--ink); transform: rotate(-45deg); }
.news-item.on-light { border-bottom-color: var(--line-dark); }
.news-item.on-light p { color: var(--text-dark-2); }
.news-item.on-light .n-arrow { border-color: var(--line-dark); }
.news-item.on-light:hover .n-arrow { background: var(--eco-deep); border-color: var(--eco-deep); color: #fff; }
@media (max-width: 720px) { .news-item { grid-template-columns: 1fr; gap: 12px; } .news-item .n-arrow { display: none; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; padding: clamp(60px, 8vw, 110px) clamp(30px, 6vw, 90px); background:
  radial-gradient(700px 400px at 85% 0%, rgba(58,215,192,0.25), transparent 60%),
  linear-gradient(140deg, #0f8a63, #0a5b42 60%, #083f2f);
  text-align: left; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); }
.cta-band::before { content: ""; position: absolute; right: 20px; bottom: 20px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); }
.cta-band h2 { max-width: 700px; }
.cta-band p { margin: 18px 0 34px; color: rgba(255,255,255,0.78); max-width: 520px; }
.cta-band .btn-primary { background: var(--white); color: var(--ink); }
.cta-band .btn-primary::before { background: var(--ink); }
.cta-band .btn-primary:hover { color: var(--white); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line-light); align-items: flex-start; }
.info-row.on-light { border-bottom-color: var(--line-dark); }
.info-row .ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(47,191,143,0.12); border: 1px solid rgba(47,191,143,0.3); font-size: 20px; }
.info-row b { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--eco); margin-bottom: 6px; }
.info-row span { font-size: 16px; }
.info-row.on-light b { color: var(--eco-deep); }

.form-field { position: relative; margin-bottom: 26px; }
.form-field input, .form-field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-light);
  padding: 14px 2px; color: var(--text-light); font-size: 15px; font-family: inherit;
  transition: border-color 0.3s; resize: vertical;
}
.form-field.on-light input, .form-field.on-light textarea { border-bottom-color: var(--line-dark); color: var(--text-dark); }
.form-field label { position: absolute; left: 2px; top: 14px; font-size: 14px; color: var(--text-light-2); pointer-events: none; transition: all 0.3s var(--ease-out); }
.form-field.on-light label { color: var(--text-dark-2); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-bottom-color: var(--eco); }
.form-field input:focus + label, .form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label, .form-field textarea:not(:placeholder-shown) + label {
  top: -12px; font-size: 11px; letter-spacing: 0.14em; color: var(--eco); text-transform: uppercase;
}
.form-note { font-size: 13px; color: var(--text-light-2); margin-top: 8px; }
.form-note.on-light { color: var(--text-dark-2); }
.field-hint {
  display: block; font-size: 12px; line-height: 1.5;
  color: var(--text-light-2); margin-top: 8px; max-width: 60ch;
}
[data-theme="light"] .field-hint { color: var(--text-dark-2); }

/* ---------- footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line-light); background: #081a17; padding: clamp(60px, 8vw, 100px) 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img {
  height: clamp(52px, 6vw, 72px); max-width: 220px; object-fit: contain; margin-bottom: 20px;
  filter: drop-shadow(0 0 0.7px #ffffff) drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}
.footer-brand p { font-size: 13.5px; color: var(--text-light-2); max-width: 300px; }
.footer h3 { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--eco); margin-bottom: 22px; }
.footer-col a { display: block; padding: 7px 0; font-size: 14px; color: var(--text-light-2); transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--text-light); padding-left: 8px; }
.footer-word {
  font-family: var(--font-display); font-size: clamp(60px, 11vw, 170px); line-height: 0.9;
  text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.09);
  user-select: none; padding: 20px 0 0; white-space: nowrap;
}
.footer-bottom { border-top: 1px solid var(--line-light); padding: 26px 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 12.5px; color: var(--text-light-2); }

/* ---------- reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(46px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); will-change: opacity, transform; }
[data-reveal="left"] { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track, .noise::after, .profile-mono .float-badge { animation: none !important; }
}

/* ---------- misc ---------- */
.divider-leaf { display: flex; align-items: center; gap: 18px; color: var(--eco); }
.divider-leaf::before, .divider-leaf::after { content: ""; flex: 1; height: 1px; background: var(--line-light); }
.divider-leaf.on-light::before, .divider-leaf.on-light::after { background: var(--line-dark); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }
.trio-card { text-align: center; padding: 46px 30px; border: 1px solid var(--line-light); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent); transition: transform 0.5s var(--ease-out), border-color 0.5s; }
.trio-card:hover { transform: translateY(-8px); border-color: rgba(47,191,143,0.5); }
.trio-card .t-emoji { font-size: 44px; }
.trio-card .t-role { margin-top: 14px; font-size: 12px; letter-spacing: 0.28em; color: var(--eco); text-transform: uppercase; }
.trio-card h3 { font-family: var(--font-display); font-size: 28px; margin: 12px 0 4px; }
.trio-card .t-dim { font-size: 13px; color: var(--text-light-2); }
.trio-card .t-desc { margin-top: 16px; font-size: 13.5px; color: var(--text-light-2); }

.lang-html-note { display: none; }

/* ============================================================
   FLAT OVERRIDE — zero radius, zero shadow everywhere
   ============================================================ */
*, *::before, *::after { border-radius: 0 !important; box-shadow: none !important; }

/* ============================================================
   SIGNATURE ANIMATIONS
   ============================================================ */

/* ---------- 1. Preloader curtain ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: grid; place-items: center;
  transition: transform 0.85s var(--ease-luxe);
}
.preloader.done { transform: translateY(-100%); }
.preloader .pl-inner { text-align: center; }
.preloader .pl-logo {
  width: 110px; height: 110px; margin: 0 auto 26px;
  display: grid; place-items: center;
  animation: pl-pop 0.7s var(--ease-luxe) both;
}
.preloader .pl-logo img {
  width: 100px; height: 100px; object-fit: contain;
  filter: drop-shadow(0 0 0.8px #ffffff) drop-shadow(0 0 16px rgba(255, 255, 255, 0.5));
}
@keyframes pl-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.preloader .pl-name {
  font-family: var(--font-display); font-size: 26px; letter-spacing: 0.14em;
  color: var(--text-light); overflow: hidden;
}
.preloader .pl-name span { display: inline-block; animation: pl-rise 0.8s var(--ease-luxe) 0.25s both; }
@keyframes pl-rise { from { transform: translateY(120%); } to { transform: translateY(0); } }
.preloader .pl-bar {
  width: 220px; height: 2px; margin: 24px auto 0;
  background: var(--mist); position: relative; overflow: hidden;
}
.preloader .pl-bar i {
  position: absolute; inset: 0; background: var(--eco);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s linear;
}
.preloader .pl-sub { margin-top: 14px; font-size: 10px; letter-spacing: 0.5em; color: var(--text-light-2); text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .preloader { display: none; } }

/* ---------- 2. Char-split 3D title reveal ---------- */
.ch {
  display: inline-block; opacity: 0;
  transform: translateY(115%) rotate(6deg);
  transform-origin: left bottom;
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-luxe);
  transition-delay: calc(var(--ci, 0) * 32ms);
  will-change: transform, opacity;
}
.ch-space { display: inline-block; width: 0.28em; }
body.hero-in .ch { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ch { opacity: 1; transform: none; transition: none; } }

/* ---------- 3. Leaf-circuit emblem (index hero) ---------- */
.emblem {
  position: absolute; z-index: 1;
  right: 5vw; top: 50%;
  width: clamp(260px, 30vw, 460px); aspect-ratio: 1;
  transform: translateY(-58%);
  pointer-events: none;
}
@media (max-width: 1060px) {
  .emblem {
    right: 50%; top: calc(var(--nav-h) + 8px);
    transform: translateX(50%);
    width: clamp(130px, 38vw, 190px);
    opacity: 0.9; z-index: 2;
  }
}
.emblem svg { width: 100%; height: 100%; overflow: visible; }
.emblem .orbit { transform-box: view-box; transform-origin: center; animation: orbit-spin 26s linear infinite; }
.emblem .orbit.rev { animation: orbit-spin-rev 38s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-spin-rev { to { transform: rotate(-360deg); } }
.emblem .leaf-path {
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
}
body.hero-in .emblem .leaf-path { animation: leaf-draw 2.6s var(--ease-luxe) 0.5s forwards; }
@keyframes leaf-draw { to { stroke-dashoffset: 0; } }
.emblem .vein {
  stroke-dasharray: 300; stroke-dashoffset: 300;
}
body.hero-in .emblem .vein { animation: leaf-draw 1.8s var(--ease-luxe) forwards; }
body.hero-in .emblem .vein.v1 { animation-delay: 1.5s; }
body.hero-in .emblem .vein.v2 { animation-delay: 1.8s; }
body.hero-in .emblem .vein.v3 { animation-delay: 2.1s; }
.emblem .pulse-node { transform-box: fill-box; transform-origin: center; animation: node-pulse 2.4s ease-in-out infinite; }
.emblem .pulse-node.p2 { animation-delay: -0.8s; }
.emblem .pulse-node.p3 { animation-delay: -1.6s; }
@keyframes node-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.9); opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .emblem .orbit, .emblem .orbit.rev, .emblem .pulse-node { animation: none; }
  .emblem .leaf-path, .emblem .vein { stroke-dashoffset: 0; }
}

/* ---------- 4. Scroll velocity skew on marquee ---------- */
.marquee-track { will-change: transform; }

/* ---------- 5. Profile / people photos ---------- */
.profile-mono .profile-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 1s var(--ease-out), filter 0.6s;
}
.profile-mono:hover .profile-photo { transform: scale(1.045); filter: saturate(1.05) contrast(1.05); }
.profile-mono::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,31,28,0.05) 55%, rgba(10,31,28,0.55));
}
.profile-mono .float-badge { z-index: 2; }

.people-card .avatar-bg.pc-has-photo { display: block; -webkit-text-stroke: 0; background: var(--ink-2); }
.people-card .avatar-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.9s var(--ease-out), filter 0.5s;
  filter: saturate(0.9);
}
.people-card .avatar-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,28,0.18) 30%, rgba(10,31,28,0.9) 88%);
}
.people-card:hover .avatar-bg img { transform: scale(1.07); filter: saturate(1.08); }

/* ---------- 6. Magnetic elements base ---------- */
.magnetic { transition: transform 0.35s var(--ease-out); will-change: transform; }

/* ---------- 7. Parallax targets ---------- */
.big-ghost, .footer-word { will-change: transform; }

/* ---------- 8. SVG vector icons (no emoji anywhere) ---------- */
.svg-ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; flex: none; }
.card-icon .svg-ic { width: 27px; height: 27px; color: var(--eco); }
.card.on-light .card-icon .svg-ic { color: var(--eco-deep); }
.t-emoji { display: grid; place-items: center; }
.t-emoji .svg-ic { width: 48px; height: 48px; color: var(--eco); }
.role-emoji .svg-ic { width: 34px; height: 34px; color: #ffffff; }
.info-row .ic .svg-ic { width: 21px; height: 21px; color: var(--eco); }
.info-row.on-light .ic .svg-ic { color: var(--eco-deep); }
.float-badge { display: inline-flex; align-items: center; gap: 9px; }
.float-badge .svg-ic { width: 14px; height: 14px; color: var(--eco); }

/* ---------- 9. Hero 3D globe ---------- */
#globe-canvas {
  position: absolute; z-index: 0;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: min(135vw, 1250px); height: min(135vw, 1250px);
  opacity: 0.85; pointer-events: none;
}
#hero-canvas { z-index: 1; }
.hero-inner { z-index: 2; }
@media (max-width: 1060px) { #globe-canvas { opacity: 0.8; width: 175vw; height: 175vw; top: 38%; } }

/* ---------- 10. Mobile deep optimization ---------- */
@media (max-width: 860px) {
  :root { --nav-h: 66px; }
  .nav-logo img { height: 46px; }
  .nav-logo .logo-text span { display: none; }
  .nav-logo .logo-text b { font-size: 14px; }
  .hero { padding: calc(var(--nav-h) + 190px) 0 48px; align-items: center; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-tags { gap: 8px; }
  .tag { padding: 6px 12px; font-size: 11px; }
  .btn { padding: 14px 26px; font-size: 13px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 20px; }
  .card { padding: 28px 22px; }
  .vs-card { padding: 30px 24px; }
  .vs-list li { grid-template-columns: 88px 1fr; gap: 12px; }
  .people-card { min-height: 420px; padding: 26px; }
  .trio-card { padding: 34px 22px; }
  .profile-mono { aspect-ratio: 3 / 3.4; }
  .quote-block { padding: 42px 24px; }
  .quote-block::before { font-size: 120px; top: -16px; left: 10px; }
  .cta-band::before, .cta-band::after { display: none; }
  .timeline { padding-left: 32px; }
  .section-head { gap: 16px; }
  .contact-grid { gap: 36px; }
  .footer-grid { gap: 30px; }
  .info-row { padding: 18px 0; }
  .form-field input, .form-field textarea { font-size: 16px; }
  .split { gap: 34px; }
  .visual-frame { min-height: 260px; }
  .page-hero .big-ghost { opacity: 0.6; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .news-item { padding: 22px 4px; }
  .news-item h3 { font-size: 17px; }
  .hero-title { margin: 20px 0 22px; }
  .footer-word { font-size: 18vw; }
  .marquee-track { gap: 34px; }
  .marquee-track span { gap: 34px; }
}

/* ============================================================
   WIDGETS — skip link / theme toggle / cookie bar / chat
   ============================================================ */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 10005;
  padding: 12px 22px; background: var(--eco); color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

:focus-visible { outline: 2px solid var(--eco); outline-offset: 3px; }

.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--mist-2); color: var(--text-light);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.theme-toggle:hover { border-color: var(--eco); background: var(--mist); }
.theme-toggle .svg-ic { width: 17px; height: 17px; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: none; }
[data-theme="light"] .theme-toggle { border-color: var(--line-dark); color: var(--text-dark); }

/* ---------- cookie consent ---------- */
.cookie-bar {
  position: fixed; left: 50%; bottom: 24px; z-index: 9995;
  transform: translate(-50%, 140%);
  width: min(720px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: rgba(14, 42, 38, 0.97); border: 1px solid var(--line-light);
  padding: 20px 26px;
  transition: transform 0.6s var(--ease-luxe);
}
.cookie-bar.show { transform: translate(-50%, 0); }
.cookie-bar p { flex: 1 1 320px; font-size: 13px; color: var(--text-light-2); line-height: 1.7; }
.cookie-actions { display: flex; align-items: center; gap: 12px; }
.cookie-more { font-size: 12.5px; color: var(--eco); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn { padding: 10px 22px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.cookie-btn.solid { background: var(--eco); color: var(--ink); }
.cookie-btn.solid:hover { background: var(--white); }
.cookie-btn.ghost { border: 1px solid var(--mist-2); color: var(--text-light); }
.cookie-btn.ghost:hover { border-color: var(--eco); }
[data-theme="light"] .cookie-bar { background: rgba(255,255,255,0.97); border-color: var(--line-dark); }
[data-theme="light"] .cookie-bar p { color: var(--text-dark-2); }
[data-theme="light"] .cookie-btn.ghost { border-color: var(--line-dark); color: var(--text-dark); }

/* ---------- live chat widget ---------- */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 9996; }
.chat-fab {
  position: relative; width: 58px; height: 58px;
  display: grid; place-items: center;
  background: var(--eco); color: var(--ink);
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.chat-fab:hover { background: var(--aqua); transform: translateY(-3px); }
.chat-fab .svg-ic { width: 24px; height: 24px; }
.chat-fab .ic-close { display: none; }
.chat-widget.open .ic-chat { display: none; }
.chat-widget.open .ic-close { display: block; }
.chat-dot { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; background: var(--gold); border: 2px solid var(--ink); }
.chat-panel {
  position: absolute; right: 0; bottom: 72px;
  width: min(360px, calc(100vw - 40px));
  display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line-light);
  animation: chat-in 0.45s var(--ease-luxe);
}
@keyframes chat-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.chat-head { padding: 16px 20px; border-bottom: 1px solid var(--line-light); background: var(--ink-3); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-head b { display: block; font-size: 15px; letter-spacing: 0.04em; }
.chat-head span { display: block; font-size: 11.5px; color: var(--text-light-2); margin-top: 2px; }
.chat-close {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: transparent; color: var(--text-light-2); font-size: 22px; line-height: 1;
  border: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.chat-close:hover, .chat-close:focus { color: var(--text-light); border-color: var(--line-light); }
.chat-body { height: 300px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 82%; padding: 10px 14px; font-size: 13.5px; line-height: 1.6; animation: chat-in 0.3s var(--ease-out); word-break: break-word; }
.chat-msg.admin { align-self: flex-start; background: var(--mist); border: 1px solid var(--line-light); color: var(--text-light); }
.chat-msg.visitor { align-self: flex-end; background: var(--eco); color: var(--ink); }
.chat-foot { border-top: 1px solid var(--line-light); padding: 12px; display: grid; gap: 8px; }
.chat-name, .chat-input {
  width: 100%; background: var(--mist); border: 1px solid var(--line-light);
  padding: 10px 12px; color: var(--text-light); font-size: 13.5px; font-family: inherit;
}
.chat-name:focus, .chat-input:focus { outline: none; border-color: var(--eco); }
.chat-row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.chat-send { display: grid; place-items: center; background: var(--eco); color: var(--ink); transition: background 0.3s; }
.chat-send:hover { background: var(--aqua); }
.chat-send .svg-ic { width: 18px; height: 18px; }
[data-theme="light"] .chat-panel { background: #ffffff; border-color: var(--line-dark); }
[data-theme="light"] .chat-head { background: var(--paper-2); border-bottom-color: var(--line-dark); }
[data-theme="light"] .chat-head span { color: var(--text-dark-2); }
[data-theme="light"] .chat-msg.admin { background: var(--paper); border-color: var(--line-dark); color: var(--text-dark); }
[data-theme="light"] .chat-name, [data-theme="light"] .chat-input { background: var(--paper); border-color: var(--line-dark); color: var(--text-dark); }
[data-theme="light"] .chat-foot { border-top-color: var(--line-dark); }
@media (max-width: 560px) {
  .chat-widget { right: 16px; bottom: 16px; }
  .cookie-bar { bottom: 12px; padding: 16px 18px; gap: 14px; }
  .chat-body { height: 260px; }
}

/* ============================================================
   LIGHT THEME overrides
   ============================================================ */
[data-theme="light"] {
  --ink: #f6f5f0;
  --ink-2: #ffffff;
  --ink-3: #efeee7;
  --mist: rgba(10, 31, 28, 0.05);
  --mist-2: rgba(10, 31, 28, 0.16);
  --line-light: rgba(10, 31, 28, 0.14);
  --text-light: #14211e;
  --text-light-2: rgba(20, 33, 30, 0.66);
}
[data-theme="light"] body { background: var(--paper); color: var(--text-dark); }
[data-theme="light"] .lead { color: var(--text-dark-2); }
[data-theme="light"] .nav.scrolled { background: rgba(246, 245, 240, 0.88); }
[data-theme="light"] .nav-links a { color: var(--text-dark-2); }
[data-theme="light"] .nav-links a:hover, [data-theme="light"] .nav-links a.active { color: var(--text-dark); }
[data-theme="light"] .nav-logo .logo-text b { color: var(--text-dark); }
[data-theme="light"] .nav-logo .logo-text span { color: var(--text-dark-2); }
[data-theme="light"] .lang-btn { border-color: var(--line-dark); color: var(--text-dark); }
[data-theme="light"] .lang-menu { background: #ffffff; border-color: var(--line-dark); }
[data-theme="light"] .lang-menu button { color: var(--text-dark-2); }
[data-theme="light"] .lang-menu button:hover { background: var(--paper-2); color: var(--text-dark); }
[data-theme="light"] .burger span { background: var(--text-dark); }
@media (max-width: 1060px) { [data-theme="light"] .nav-links { background: #f6f5f0; } }
[data-theme="light"] .hero {
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(47, 191, 143, 0.14), transparent 60%),
    radial-gradient(900px 600px at 8% 110%, rgba(15, 138, 99, 0.1), transparent 55%),
    linear-gradient(180deg, #f6f5f0 0%, #eef2ec 60%, #f6f5f0 100%);
}
[data-theme="light"] .page-hero, [data-theme="light"] .profile-hero {
  background:
    radial-gradient(1000px 520px at 85% -20%, rgba(47, 191, 143, 0.12), transparent 60%),
    linear-gradient(180deg, #eef2ec, #f6f5f0);
}
[data-theme="light"] .hero-title .stroke { -webkit-text-stroke: 1.5px var(--text-dark); }
[data-theme="light"] .big-ghost { -webkit-text-stroke: 1px rgba(10, 31, 28, 0.08); }
[data-theme="light"] .scroll-hint { color: var(--text-dark-2); }
[data-theme="light"] .tag { border-color: var(--line-dark); color: var(--text-dark-2); }
[data-theme="light"] .hero-meta { border-top-color: var(--line-dark); }
[data-theme="light"] .card { background: #ffffff; border-color: var(--line-dark); }
[data-theme="light"] .card p { color: var(--text-dark-2); }
[data-theme="light"] .trio-card { background: #ffffff; border-color: var(--line-dark); }
[data-theme="light"] .trio-card .t-dim, [data-theme="light"] .trio-card .t-desc { color: var(--text-dark-2); }
[data-theme="light"] .people-card { border-color: var(--line-dark); }
[data-theme="light"] .people-card .avatar-bg { background: var(--paper-2); }
[data-theme="light"] .marquee { border-color: var(--line-dark); background: transparent; }
[data-theme="light"] .marquee-track span { color: var(--text-dark-2); }
[data-theme="light"] .section.deep { background: var(--paper-2); }
[data-theme="light"] .stat { background: #ffffff; }
[data-theme="light"] .stat:hover { background: var(--paper-2); }
[data-theme="light"] .stat .lbl { color: var(--text-dark-2); }
[data-theme="light"] .btn-ghost { border-color: var(--line-dark); color: var(--text-dark); }
[data-theme="light"] .btn-ghost:hover { color: var(--ink); }
[data-theme="light"] .fact-grid .fact { background: #ffffff; }
[data-theme="light"] .fact-grid .fact span { color: var(--text-dark-2); }
[data-theme="light"] .profile-mono { background: var(--paper-2); border-color: var(--line-dark); }
[data-theme="light"] .visual-frame { border-color: var(--line-dark); }
[data-theme="light"] .visual-frame .glyph { -webkit-text-stroke-color: rgba(15, 138, 99, 0.45); }
[data-theme="light"] .timeline .t-body { color: var(--text-dark-2); }
[data-theme="light"] .timeline li::before { background: var(--paper); }
[data-theme="light"] table.data thead th { color: var(--eco-deep); border-bottom-color: var(--line-dark); }
[data-theme="light"] table.data tbody tr { border-bottom-color: var(--line-dark); }
[data-theme="light"] table.data td { color: var(--text-dark-2); }
[data-theme="light"] table.data td:first-child { color: var(--text-dark); }
[data-theme="light"] .table-wrap { border-color: var(--line-dark); }
[data-theme="light"] .news-item { border-bottom-color: var(--line-dark); }
[data-theme="light"] .news-item p { color: var(--text-dark-2); }
[data-theme="light"] .news-item .n-arrow { border-color: var(--line-dark); }
[data-theme="light"] .news-item:hover .n-arrow { background: var(--eco-deep); border-color: var(--eco-deep); color: #fff; }
[data-theme="light"] .chip { color: var(--eco-deep); border-color: rgba(15, 138, 99, 0.4); }
[data-theme="light"] .chip:hover { background: var(--eco-deep); color: #fff; }
[data-theme="light"] .info-row { border-bottom-color: var(--line-dark); }
[data-theme="light"] .info-row b { color: var(--eco-deep); }
[data-theme="light"] .form-field input, [data-theme="light"] .form-field textarea { border-bottom-color: var(--line-dark); color: var(--text-dark); }
[data-theme="light"] .form-field label { color: var(--text-dark-2); }
[data-theme="light"] .footer { background: #ecebe4; border-top-color: var(--line-dark); }
[data-theme="light"] .footer-brand p, [data-theme="light"] .footer-col a, [data-theme="light"] .footer-bottom { color: var(--text-dark-2); }
[data-theme="light"] .footer-col a:hover { color: var(--text-dark); }
[data-theme="light"] .footer-word { -webkit-text-stroke: 1px rgba(10, 31, 28, 0.1); }
[data-theme="light"] .footer-bottom { border-top-color: var(--line-dark); }
[data-theme="light"] .preloader { background: var(--paper); }
[data-theme="light"] .preloader .pl-name { color: var(--text-dark); }
[data-theme="light"] .preloader .pl-sub { color: var(--text-dark-2); }
[data-theme="light"] .preloader .pl-bar { background: var(--line-dark); }
[data-theme="light"] .cursor-ring { border-color: rgba(15, 138, 99, 0.6); }
[data-theme="light"] .quote-block { background: rgba(47, 191, 143, 0.08); }
[data-theme="light"] .divider-leaf::before, [data-theme="light"] .divider-leaf::after { background: var(--line-dark); }
[data-theme="light"] .num-outline { -webkit-text-stroke-color: rgba(15, 138, 99, 0.45); }

/* ---------- legal pages ---------- */
.legal-body { color: var(--text-dark); font-size: 15.5px; line-height: 1.85; }
.legal-body h2 { font-size: 20px; margin: 28px 0 14px; font-weight: 600; color: var(--text-dark); }

/* ---------- footer legal links & certification badges ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 22px 0 0; font-size: 13px; }
.footer-legal a { color: var(--text-light-2); transition: color 0.3s; }
.footer-legal a:hover { color: var(--eco); }
.footer-legal .sep { color: var(--eco); }
[data-theme="light"] .footer-legal a { color: var(--text-dark-2); }
[data-theme="light"] .footer-legal a:hover { color: var(--eco-deep); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0 8px; border-top: 1px solid var(--line-light); margin-top: 22px; }
.fbadge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--line-light);
  font-size: 11.5px; letter-spacing: 0.08em; color: var(--text-light-2);
  transition: border-color 0.3s, color 0.3s;
}
.fbadge:hover { border-color: var(--eco); color: var(--text-light); }
.fbadge .svg-ic { width: 14px; height: 14px; color: var(--eco); }
[data-theme="light"] .footer-badges { border-top-color: var(--line-dark); }
[data-theme="light"] .fbadge { border-color: var(--line-dark); color: var(--text-dark-2); }
[data-theme="light"] .fbadge:hover { border-color: var(--eco-deep); color: var(--text-dark); }

/* hidden must beat display:flex/block on widgets */
.chat-panel[hidden], .chat-dot[hidden] { display: none !important; }

/* ---------- mobile: elegant transparent -> frosted scroll navbar ---------- */
@media (max-width: 1060px) {
  .lang-btn {
    width: 38px; height: 38px; padding: 0;
    justify-content: center;
  }
  .lang-btn .cur-lang { display: none; }
  .lang-btn .svg-ic { width: 17px; height: 17px; }
  .lang-menu { right: 0; }
}


/* language button: icon-only, universal switcher */
.lang-btn { width: 38px; height: 38px; padding: 0; justify-content: center; }
.lang-btn .cur-lang { display: none; }
.lang-btn .svg-ic { width: 17px; height: 17px; }

/* ============================================================
   Accessibility (WCAG 2.1 AA)
   ============================================================ */

/* skip link */
.skip-link {
  position: fixed; top: 0; left: 0; z-index: 10000;
  padding: 12px 18px; background: var(--eco); color: var(--ink);
  font-weight: 600; font-size: 13px; letter-spacing: 0.06em;
  transform: translateY(-120%); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); outline: 4px solid var(--ink); outline-offset: 2px; }
[data-theme="light"] .skip-link:focus { outline-color: var(--text-dark); }

/* screen-reader-only live region */
.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;
}

/* visible focus indicators (WCAG 2.1 AAA 2.4.13 Focus Appearance) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--eco); outline-offset: 4px;
  border-radius: 0;
}
[data-theme="light"] a:focus-visible, [data-theme="light"] button:focus-visible, [data-theme="light"] input:focus-visible, [data-theme="light"] textarea:focus-visible, [data-theme="light"] select:focus-visible, [data-theme="light"] [tabindex]:not([tabindex="-1"]):focus-visible {
  outline-color: var(--eco-deep);
}

/* ensure interactive targets are at least 44x44px */
.burger, .lang-btn, .chat-dot, .cookie-close, .theme-toggle {
  min-width: 44px; min-height: 44px;
}

/* reduce motion for users who prefer it (WCAG 2.1 AAA 2.3.3 Animation from Interactions) */
@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;
  }
  .cursor-dot, .cursor-ring, .noise::after, .marquee-track, .scroll-hint::after,
  .hero-canvas, #globe-canvas, .chat-dot-pulse { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* 320px reflow (WCAG 2.1 AA/AAA 1.4.10 Reflow) */
@media (max-width: 360px) {
  html { font-size: 14px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .display.h-xl { font-size: clamp(28px, 9vw, 48px); }
  .display.h-lg { font-size: clamp(24px, 8vw, 40px); }
}

/* high contrast / forced colors fallback */
@media (prefers-contrast: more) {
  .nav.scrolled, .nav.menu-open, .nav-links.open, .card, .btn, .lang-menu, .chat-panel {
    border: 1px solid currentColor;
  }
}
