/* =========================================================
   Elite Future — renewal (LIG-inspired dark tech layout)
   ========================================================= */
:root {
  --bg: #0b0d12;
  --bg-2: #10131a;
  --surface: #141821;
  --surface-2: #1a1f2b;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --text: #f3f5f9;
  --muted: #9aa3b4;
  --dim: #6b7385;

  --accent: #4d8dff;
  --accent-2: #3fd5c6;

  /* service colours — muted, one per business line */
  --c1: #2b58c8;
  --c2: #167a74;
  --c3: #5344b0;
  --c4: #a96a22;
  --c5: #a13f66;

  --en: 'Inter Tight', 'Noto Sans JP', system-ui, sans-serif;
  --jp: 'Noto Sans JP', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.muted { color: var(--muted); }
.sp { display: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: #fff; }

/* film grain like the reference */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.site-header::after {
  content: ''; position: absolute; left: var(--pad); right: var(--pad); bottom: 0;
  height: 1px; background: rgba(255, 255, 255, .32);
}
.site-header.is-scrolled { background: rgba(11, 13, 18, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; justify-self: start; height: 44px; }
.menu-btn em { font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.menu-lines { position: relative; width: 26px; height: 12px; }
.menu-lines i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-lines i:first-child { top: 0; }
.menu-lines i:last-child { top: 10px; }
body.menu-open .menu-lines i:first-child { top: 5px; transform: rotate(45deg); }
body.menu-open .menu-lines i:last-child { top: 5px; transform: rotate(-45deg); }

.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--en); font-size: 25px; letter-spacing: .04em; line-height: 1; }
.logo b { font-weight: 800; }
.logo span:last-child { font-weight: 500; opacity: .85; }
.logo-mark {
  width: 16px; height: 16px; border-radius: 3px; transform: rotate(45deg); margin-right: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(77, 141, 255, .55);
}
.header-links { justify-self: end; display: flex; align-items: center; gap: 28px; font-size: 13.5px; font-weight: 500; }
.header-links a:not(.pill) { position: relative; }
.header-links a:not(.pill)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.header-links a:not(.pill):hover::after { transform: scaleX(1); transform-origin: left; }
.pill { padding: 9px 20px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.pill:hover { background: #fff; color: var(--bg); border-color: #fff; }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px;
  padding: calc(var(--header-h) + 40px) var(--pad) 48px;
  background: rgba(11, 13, 18, .985);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-out);
  visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
body.menu-open { overflow: hidden; }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  display: grid; grid-template-columns: 56px auto 1fr; align-items: baseline; gap: 16px;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out), color .3s;
}
body.menu-open .menu-nav a { opacity: 1; transform: none; }
body.menu-open .menu-nav a:nth-child(2) { transition-delay: .04s; }
body.menu-open .menu-nav a:nth-child(3) { transition-delay: .08s; }
body.menu-open .menu-nav a:nth-child(4) { transition-delay: .12s; }
body.menu-open .menu-nav a:nth-child(5) { transition-delay: .16s; }
body.menu-open .menu-nav a:nth-child(6) { transition-delay: .2s; }
body.menu-open .menu-nav a:nth-child(7) { transition-delay: .24s; }
.menu-nav .mono { font-size: 12px; color: var(--accent); }
.menu-nav b { font-family: var(--en); font-weight: 800; font-size: clamp(32px, 4.6vw, 64px); letter-spacing: -.035em; line-height: 1.15; }
.menu-nav small { font-size: 13px; color: var(--muted); }
.menu-nav a:hover b { color: var(--accent); }
.menu-side { color: var(--muted); font-size: 14px; display: grid; gap: 18px; }
.menu-side-label { color: var(--text); font-size: 12px; letter-spacing: .16em; }
.menu-side a:hover { color: var(--text); }
.menu-svc { display: grid; gap: 2px; margin-bottom: 18px; }
.menu-svc a { display: flex; gap: 14px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 500; }
.menu-svc .mono { font-size: 11px; color: var(--accent); }
.menu-svc a:hover, .menu-svc a[aria-current] { color: var(--accent-2); }

/* ---------- Circle button ---------- */
.circle-btn {
  --size: 124px;
  width: var(--size); height: var(--size); border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; font-weight: 500; letter-spacing: .1em;
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease-out), border-color .45s;
}
.circle-btn svg { width: 26px; height: 26px; stroke-width: 1.3; transition: transform .45s var(--ease-out); }
.circle-btn:hover { background: #fff; color: var(--bg); border-color: #fff; transform: scale(1.06); }
.circle-btn:hover svg { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 72% 52%, rgba(35, 70, 150, .35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(63, 213, 198, .07) 0%, transparent 70%),
    var(--bg);
}
#globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 25% 50%, #000 0%, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header-h) var(--pad) 40px;
  pointer-events: none;
}
.eyebrow { font-size: 12px; letter-spacing: .2em; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--accent); }
.hero-title {
  font-family: var(--en); font-weight: 800;
  font-size: clamp(58px, 10vw, 172px); line-height: .9; letter-spacing: -.05em;
  margin: 22px 0 34px;
  text-shadow: 0 10px 60px rgba(11, 13, 18, .6);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-title i { font-style: normal; color: var(--accent); }
body.is-loaded .hero-title .line > span { transform: none; }
.hero-lead {
  font-size: clamp(16px, 1.45vw, 20px); font-weight: 500; letter-spacing: .08em; line-height: 1.9;
  opacity: 0; transform: translateY(16px); transition: opacity 1s .5s, transform 1s .5s var(--ease-out);
}
.hero-lead strong { font-weight: 700; background: linear-gradient(90deg, #fff, #b9d0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.is-loaded .hero-lead, body.is-loaded .eyebrow { opacity: 1; transform: none; }
.eyebrow { opacity: 0; transform: translateY(10px); transition: opacity 1s .2s, transform 1s .2s var(--ease-out); }
.hero-cta { position: absolute; z-index: 3; right: var(--pad); bottom: clamp(48px, 10vh, 110px); }
.hero-meta {
  position: absolute; z-index: 3; left: var(--pad); bottom: 30px;
  font-size: 11px; color: var(--muted); letter-spacing: .14em; display: flex; align-items: center; gap: 10px;
}
.hero-meta .arrow { color: var(--accent-2); }
.blink { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); animation: blink 1.8s infinite; display: inline-block; }
@keyframes blink { 50% { opacity: .25; } }
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 0;
}
.scroll-cue::after { content: ''; width: 1px; height: 54px; background: linear-gradient(var(--text), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Service cards row ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.svc-card {
  position: relative; overflow: hidden;
  min-height: 220px; padding: 22px 22px 24px; border-radius: 10px;
  background: var(--c);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.svc-card::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .14), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 26px);
  pointer-events: none;
}
.svc-card .mono { position: absolute; top: 18px; left: 22px; font-size: 12px; opacity: .8; }
.svc-card b { font-family: var(--en); font-weight: 700; font-size: clamp(19px, 1.6vw, 25px); letter-spacing: -.02em; line-height: 1.15; position: relative; }
.svc-card small { font-size: 12px; opacity: .85; position: relative; }
.svc-card::after {
  content: '→'; position: absolute; top: 14px; right: 18px; font-size: 18px;
  transform: translateX(-6px); opacity: 0; transition: .4s var(--ease-out);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px var(--c); }
.svc-card:hover::after { transform: none; opacity: 1; }

/* ---------- Generic section ---------- */
.section { position: relative; padding: clamp(56px, 6vw, 96px) var(--pad); }
.sec-head { margin-bottom: clamp(28px, 3.5vw, 52px); }
.sec-label { font-size: 12px; letter-spacing: .18em; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.sec-label .num { color: var(--accent); }
.sec-label .num::after { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 14px; }
.display {
  font-family: var(--en); font-weight: 800;
  font-size: clamp(56px, 9.6vw, 156px); line-height: .95; letter-spacing: -.05em;
  margin-top: 14px;
}
.sec-lead { margin-top: 24px; font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; letter-spacing: .06em; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about-body { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.about-lead { position: sticky; top: calc(var(--header-h) + 48px); }
.statement { font-size: clamp(32px, 3.8vw, 56px); font-weight: 700; line-height: 1.38; letter-spacing: .03em; }
.statement em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.biz-list { counter-reset: biz; border-bottom: 1px solid var(--line); }
.biz-list li {
  position: relative;
  display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--line);
  font-size: clamp(15px, 1.2vw, 17px); font-weight: 500;
  transition: padding .45s var(--ease-out), color .3s, opacity 1s var(--ease), transform 1.1s var(--ease-out);
}
.biz-list li::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.biz-list li:hover { padding-left: 14px; }
.biz-list li:hover::before { transform: scaleX(1); }
.biz-list .n { font-size: 12px; color: var(--dim); }
.biz-list li:hover .n { color: var(--accent); }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.biz-list li:last-child .tag { color: var(--accent-2); border-color: rgba(63, 213, 198, .45); }

.marquee {
  margin: 0;
  overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0;
}
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 60s linear infinite; }
.marquee span {
  font-family: var(--en); font-weight: 800; font-size: clamp(42px, 6vw, 92px); letter-spacing: -.04em; line-height: 1.1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .3);
  white-space: nowrap;
}
.marquee span:nth-child(4n + 1) { color: rgba(255, 255, 255, .9); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; font-family: var(--mono); color: var(--accent); font-size: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Services list (home) — each row opens services/*.html ---------- */
.svc-list { border-bottom: 1px solid var(--line); }
.svc-list a {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 1fr) 68px; align-items: center;
  gap: clamp(16px, 3vw, 52px);
  padding: clamp(26px, 3vw, 40px) clamp(10px, 1.6vw, 26px);
  border-top: 1px solid var(--line);
}
.svc-list a::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.svc-list a:hover::before { transform: scaleY(1); }
.svc-list .n { font-size: 13px; color: var(--dim); transition: color .3s; }
.svc-list b { display: block; font-family: var(--en); font-weight: 800; font-size: clamp(28px, 3.4vw, 54px); line-height: 1.05; letter-spacing: -.04em; }
.svc-list small { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.svc-list small::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c); transition: background .3s; }
.svc-list p { font-size: 14px; line-height: 1.9; color: var(--muted); transition: color .3s; }
.svc-list .go { justify-self: end; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .45s, color .45s, border-color .45s, transform .45s var(--ease-out); }
.svc-list .go svg { width: 22px; height: 22px; }
.svc-list a:hover .n, .svc-list a:hover p { color: rgba(255, 255, 255, .9); }
.svc-list a:hover small::before { background: #fff; }
.svc-list a:hover .go { background: #fff; color: var(--bg); border-color: #fff; transform: translateX(-6px); }

/* ---------- Service page hero (split: text / coloured mock-up) ---------- */
.sub-hero { position: relative; height: 100vh; height: 100svh; min-height: 700px; }
.svc-inner {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg);
  overflow: hidden;
}
.crumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; font-size: 11px; letter-spacing: .14em; color: var(--dim); }
.crumb a { transition: color .3s; }
.crumb a:hover, .crumb [aria-current] { color: var(--text); }
.sub-hero .svc-text > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1s var(--ease-out); }
.sub-hero.is-active .svc-text > * { opacity: 1; transform: none; }
.sub-hero.is-active .svc-text > :nth-child(2) { transition-delay: .06s; }
.sub-hero.is-active .svc-text > :nth-child(3) { transition-delay: .12s; }
.sub-hero.is-active .svc-text > :nth-child(4) { transition-delay: .18s; }
.sub-hero.is-active .svc-text > :nth-child(n + 5) { transition-delay: .24s; }
/* Bigger mock-ups on service pages: give the coloured side more room and zoom the mock-up
   (its internals are px-based, so zoom keeps every part in proportion). Steps follow the panel width. */
@media (min-width: 961px) {
  .sub-hero { --mz: 1.12; }
  .sub-hero .svc-inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .sub-hero .svc-visual { padding-inline: clamp(24px, 3vw, 64px); }
  .sub-hero .mock, .sub-hero .phone, .sub-hero .cvr { zoom: var(--mz); }
}
@media (min-width: 1280px) { .sub-hero { --mz: 1.25; } }
@media (min-width: 1440px) { .sub-hero { --mz: 1.35; } }
@media (min-width: 1680px) { .sub-hero { --mz: 1.5; } }
@media (min-width: 1920px) { .sub-hero { --mz: 1.7; } }
.svc-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 30px) clamp(24px, 4vw, 72px) 70px var(--pad);
  border-top: 1px solid var(--line);
}
.svc-num { font-size: 13px; color: var(--text); }
.svc-num span { color: var(--dim); }
.svc-title {
  font-family: var(--en); font-weight: 800;
  font-size: clamp(46px, 6.2vw, 104px); line-height: .93; letter-spacing: -.045em;
  margin: 22px 0 26px;
}
.svc-jp { display: flex; align-items: center; gap: 12px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; letter-spacing: .08em; }
.svc-jp::before { content: ''; width: 10px; height: 10px; border-radius: 2px; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }
.svc-desc { margin-top: 16px; color: #c3cad7; font-size: 15px; max-width: 34em; line-height: 2; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.svc-tags li { font-size: 11.5px; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }

.svc-visual {
  position: relative; display: grid; place-items: center;
  padding: calc(var(--header-h) + 30px) clamp(24px, 4vw, 70px) 90px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(170deg, color-mix(in srgb, var(--c) 92%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000));
  overflow: hidden;
}
.svc-visual::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.svc-cta { position: absolute; right: clamp(20px, 3vw, 48px); bottom: clamp(24px, 5vh, 56px); --size: 104px; z-index: 3; }

/* mock window */
.mock {
  position: relative; z-index: 2;
  width: min(100%, 560px);
  background: rgba(10, 12, 18, .92);
  border-radius: 14px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .09);
  overflow: hidden;
  font-family: var(--mono); font-size: 13px; line-height: 1.75; letter-spacing: 0;
  transform: translateY(30px) scale(.97); opacity: .4;
  transition: transform 1s var(--ease-out), opacity 1s var(--ease);
}
.is-active .mock { transform: none; opacity: 1; }
.mock-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--dim); font-size: 11.5px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.mock-bar span { margin-left: 10px; }
.code { margin: 0; padding: 18px 20px; white-space: pre; overflow: hidden; color: #d7dce6; font-family: var(--mono); font-size: 13px; }
.code b { font-weight: 400; }
.code .k { color: #c792ea; }
.code .t { color: #82aaff; }
.code .f { color: #7fdbca; }
.c-mute { color: var(--dim); }
.ok { color: #5fe39a; }
.ln { display: inline-block; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .5s var(--ease-out); }
.is-active .ln { opacity: 1; transform: none; transition-delay: calc(var(--i) * 110ms + .2s); }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent-2); vertical-align: -2px; margin-left: 4px; animation: blink 1s steps(1) infinite; }
.term { border-top: 1px solid rgba(255, 255, 255, .07); padding: 12px 20px 14px; font-size: 12px; background: rgba(255, 255, 255, .02); opacity: 0; transition: opacity .6s 1.5s; }
.is-active .term { opacity: 1; }

/* gantt */
.gantt { position: relative; padding: 16px 20px 6px; font-family: var(--jp); font-size: 12px; }
.g-head, .g-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; }
.g-head { grid-template-columns: 74px repeat(6, 1fr); color: var(--dim); font-size: 10.5px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.g-row { height: 34px; border-bottom: 1px dashed rgba(255, 255, 255, .06); color: #c3cad7; position: relative; }
/* --s / --w are fractions of the timeline track (the area right of the 74px label column) */
.g-row i {
  position: absolute; top: 11px; height: 12px; border-radius: 6px;
  left: calc(74px + (100% - 74px) * var(--s)); width: 0;
  background: linear-gradient(90deg, var(--accent-2), color-mix(in srgb, var(--accent-2) 50%, var(--accent)));
  transition: width .9s var(--ease-out); transition-delay: calc(var(--d) * 150ms + .2s);
}
.is-active .g-row i { width: calc((100% - 74px) * var(--w)); }
.g-row i.loop { background: repeating-linear-gradient(90deg, var(--accent-2) 0 8px, transparent 8px 12px); }
.g-now { position: absolute; top: 16px; bottom: 6px; left: 94px; width: 1px; background: #ffd479; box-shadow: 0 0 8px #ffd479; opacity: 0; }
.is-active .g-now { opacity: 1; animation: now 6s 1.2s linear infinite; }
@keyframes now { from { left: 94px; } to { left: calc(100% - 20px); } }
.docs { display: flex; gap: 10px; padding: 12px 20px 16px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.docs li { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; display: flex; gap: 8px; align-items: center; opacity: 0; transition: opacity .5s; }
.docs b { color: #5fe39a; font-weight: 400; }
.is-active .docs li { opacity: 1; }
.is-active .docs li:nth-child(1) { transition-delay: 1.3s; }
.is-active .docs li:nth-child(2) { transition-delay: 1.5s; }
.is-active .docs li:nth-child(3) { transition-delay: 1.7s; }

/* migrate */
.panes { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; }
.pane { position: relative; overflow: hidden; }
.pane .code { padding: 8px 14px 16px; font-size: 11.5px; }
.pane-h { font-size: 10.5px; color: var(--dim); padding: 12px 14px 0; letter-spacing: .12em; }
.pane.old .code { color: #9aa3b4; }
.pane.new { background: rgba(77, 141, 255, .05); }
.pane-arrow { display: grid; place-items: center; color: var(--accent-2); border-inline: 1px solid rgba(255, 255, 255, .06); }
.pane-arrow svg { width: 18px; height: 18px; }
.is-active .pane-arrow svg { animation: nudge 1.4s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(180deg, transparent, rgba(63, 213, 198, .22), transparent); border-bottom: 1px solid rgba(63, 213, 198, .6); opacity: 0; }
.is-active .scan { opacity: 1; animation: scan 2.6s .3s var(--ease) infinite; }
@keyframes scan { from { transform: translateY(-40px); } to { transform: translateY(220px); } }
.progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 18px 16px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 11.5px; color: var(--muted); }
.progress b { font-weight: 500; color: #5fe39a; }
.bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 2.2s .4s var(--ease); }
.is-active .bar i { width: 100%; }

/* upgrade */
.upg { padding: 10px 18px; }
.upg li {
  display: grid; grid-template-columns: 1fr 24px 1fr 20px; align-items: center; gap: 8px;
  padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); font-size: 12px;
}
.upg .old { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.upg em { font-style: normal; color: var(--dim); text-align: center; }
.upg .new { color: #fff; padding: 2px 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); justify-self: start; opacity: .25; transition: opacity .5s, background .5s; }
.upg b { color: #5fe39a; font-weight: 400; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .5s var(--ease-out); }
.is-active .upg .new { opacity: 1; background: rgba(169, 106, 34, .35); transition-delay: calc(var(--i) * 260ms + .3s); }
.is-active .upg b { opacity: 1; transform: none; transition-delay: calc(var(--i) * 260ms + .5s); }
.upg-foot { display: flex; justify-content: space-between; padding: 12px 18px 16px; font-size: 11px; color: var(--dim); border-top: 1px solid rgba(255, 255, 255, .07); }

/* web */
.mock-web { width: min(92%, 520px); margin-right: 12%; }
.url { color: var(--muted); background: rgba(255, 255, 255, .05); border-radius: 6px; padding: 1px 12px; }
.wf { padding: 16px; display: grid; gap: 12px; }
.wf-nav { display: flex; gap: 10px; align-items: center; }
.wf-nav i { width: 46px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .5); margin-right: auto; }
.wf-nav span { width: 30px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.wf-hero { position: relative; height: 130px; border-radius: 8px; padding: 18px; display: grid; align-content: center; gap: 8px; background: linear-gradient(120deg, color-mix(in srgb, var(--c5) 70%, #000), color-mix(in srgb, var(--accent) 40%, #000)); overflow: hidden; }
.wf-hero span { height: 9px; border-radius: 4px; background: rgba(255, 255, 255, .75); width: 55%; }
.wf-hero span + span { width: 38%; opacity: .5; }
.wf-hero em { width: 74px; height: 22px; border-radius: 999px; background: #fff; margin-top: 6px; }
.wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wf-grid i { height: 64px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .12), rgba(255, 255, 255, .06)); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.phone {
  position: absolute; z-index: 3; right: 14%; bottom: 15%;
  width: 128px; height: 250px; border-radius: 22px; padding: 18px 8px 10px;
  background: rgba(10, 12, 18, .96); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .12);
  transform: translateY(40px); opacity: 0; transition: transform 1s .3s var(--ease-out), opacity 1s .3s;
}
.phone .wf { padding: 0; gap: 8px; }
.phone .wf-hero { height: 96px; padding: 10px; }
.phone .wf-grid { grid-template-columns: 1fr 1fr; }
.phone .wf-grid i { height: 56px; }
.cvr {
  position: absolute; z-index: 3; left: 12%; bottom: 16%;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 12px; background: rgba(10, 12, 18, .9); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 40px -16px rgba(0, 0, 0, .7);
  font-size: 11px; color: var(--muted);
  transform: translateY(30px); opacity: 0; transition: transform 1s .5s var(--ease-out), opacity 1s .5s;
}
.cvr svg { width: 100px; height: 36px; stroke: #5fe39a; stroke-width: 2; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.6s 1s var(--ease); }
.is-active .phone, .is-active .cvr { transform: none; opacity: 1; }
.is-active .cvr svg { stroke-dashoffset: 0; }

/* ---------- Service page sections ---------- */
.sub-section { padding-block: clamp(56px, 6vw, 96px); }
.sub-section + .sub-section { padding-top: 0; }

.modes { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 14px; }
.mode {
  display: flex; flex-direction: column; gap: 8px; min-height: 250px;
  padding: clamp(26px, 3vw, 44px); border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 30%, transparent), transparent 62%), var(--surface);
}
.mode .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: auto; background: color-mix(in srgb, var(--c) 40%, transparent); }
.mode .ico svg { width: 28px; height: 28px; }
.mode .mono { margin-top: 40px; font-size: 11px; letter-spacing: .16em; color: var(--muted); }
.mode b { font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; letter-spacing: .06em; line-height: 1.4; }
.modes .mode:nth-child(2) { transition-delay: .08s; }
.modes .mode:nth-child(3) { transition-delay: .16s; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; gap: 18px; padding: 26px 24px 28px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease-out), opacity 1s var(--ease);
}
.tile:hover { border-color: color-mix(in srgb, var(--c) 80%, #fff); transform: translateY(-4px); }
.tile .tag { align-self: flex-start; }
.tile p { font-size: 15.5px; font-weight: 500; line-height: 1.8; }

.statement-block {
  max-width: 46em; padding-left: clamp(20px, 3vw, 40px); border-left: 2px solid var(--c);
  font-size: clamp(20px, 2.2vw, 30px); font-weight: 700; line-height: 1.9; letter-spacing: .04em;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chips li { font-size: 14px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.chips li::before { content: '#'; margin-right: 6px; font-family: var(--mono); color: var(--c); }

.matrix { border-top: 1px solid var(--line); }
.matrix > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.matrix dt { font-size: 16px; font-weight: 700; }
.matrix dt small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .16em; color: var(--muted); }
.matrix dd ul { display: grid; gap: 10px; max-width: 640px; }
.matrix li { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; font-family: var(--mono); font-size: 13.5px; }
.matrix .from { justify-self: end; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.matrix em { font-style: normal; text-align: center; color: var(--accent-2); }
.matrix .to { justify-self: start; padding: 4px 12px; border-radius: 6px; color: #fff; background: color-mix(in srgb, var(--c) 40%, transparent); }

.sub-works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- Vision ---------- */
.vision { position: relative; display: grid; align-items: center; padding: clamp(90px, 9vw, 140px) var(--pad); overflow: hidden; }
.vision-bg { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.vision-bg figure { position: relative; overflow: hidden; }
.vision-bg img { width: 100%; height: 120%; object-fit: cover; filter: grayscale(.3) brightness(.5) contrast(1.05); transform: translateY(var(--py, 0)); }
.vision-bg figure:first-child img { object-position: 27% 85%; }
.vision-bg figure:last-child img { object-position: 42% 60%; }
.vision-bg figcaption { position: absolute; top: 40px; font-size: 11px; letter-spacing: .3em; color: rgba(255, 255, 255, .6); }
.vision-bg figure:first-child figcaption { left: var(--pad); }
.vision-bg figure:last-child figcaption { right: var(--pad); }
.vision-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 18, .2), rgba(11, 13, 18, .75) 50%, rgba(11, 13, 18, .2)),
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
.bridge { position: absolute; left: 0; top: 18%; width: 100%; height: 50%; z-index: 1; }
.bridge path { stroke: rgba(255, 255, 255, .2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bridge .flow { stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 6 18; animation: dash 3s linear infinite; filter: drop-shadow(0 0 6px var(--accent-2)); }
@keyframes dash { to { stroke-dashoffset: -96; } }
.vision-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; }
.vision-text { margin-top: 30px; font-size: clamp(24px, 3vw, 44px); font-weight: 700; line-height: 1.7; letter-spacing: .04em; }
.vision-text .ch { opacity: .18; transition: opacity .25s; }
.vision-text .ch.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 70px); border-top: 1px solid var(--line-2); }
.stats > div { padding: 26px 0 0; border-right: 1px solid var(--line); padding-left: 24px; }
.stats > div:first-child { padding-left: 0; }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { display: flex; align-items: baseline; gap: 6px; }
.stats b { font-family: var(--en); font-weight: 800; font-size: clamp(48px, 6vw, 92px); letter-spacing: -.04em; line-height: 1.1; }
.stats small { font-size: 15px; color: var(--muted); }

/* ---------- Web production ---------- */
.web-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.web-lead { font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; line-height: 2; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.badge {
  position: relative; overflow: hidden; padding: 28px 26px; border-radius: 16px;
  border: 1px solid var(--line-2);
  background: linear-gradient(150deg, rgba(77, 141, 255, .16), rgba(63, 213, 198, .04) 60%, transparent);
}
.badge span { font-size: 11px; letter-spacing: .14em; color: var(--accent-2); }
.badge b { display: block; margin-top: 10px; font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: .06em; }

.sub-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 52px; }
.sub-head h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: .06em; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.sub-head h3 small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .1em; }
.sub-head .mono { font-size: 12px; color: var(--muted); letter-spacing: .18em; }

.flow { margin-top: clamp(100px, 12vw, 170px); }
.flow-steps { --n: 7; position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 12px; }
.flow-steps::before, .flow-steps::after { content: ''; position: absolute; top: 38px; left: calc(100% / (var(--n) * 2)); right: calc(100% / (var(--n) * 2)); height: 1px; background: var(--line-2); }
.flow-steps::after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform 2.4s var(--ease); }
.flow-steps.is-in::after { transform: scaleX(1); }
.flow-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.flow-steps .ico {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-2);
  transition: border-color .4s, box-shadow .4s, color .4s;
}
.flow-steps .ico svg { width: 28px; height: 28px; stroke-width: 1.4; }
.flow-steps li:hover .ico { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(77, 141, 255, .12); }
.flow-steps .mono { margin-top: 12px; font-size: 11px; color: var(--accent); }
.flow-steps b { font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.flow-steps li:nth-child(2) { transition-delay: .08s; }
.flow-steps li:nth-child(3) { transition-delay: .16s; }
.flow-steps li:nth-child(4) { transition-delay: .24s; }
.flow-steps li:nth-child(5) { transition-delay: .32s; }
.flow-steps li:nth-child(6) { transition-delay: .4s; }
.flow-steps li:nth-child(7) { transition-delay: .48s; }

.reasons { margin-top: clamp(100px, 12vw, 170px); }
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.reason {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  padding: 32px 26px 34px; min-height: 250px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .4s, transform .5s var(--ease-out), opacity 1s var(--ease);
}
.reason::before { content: ''; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(77, 141, 255, .16), transparent 60%); opacity: 0; transition: opacity .4s; }
.reason:hover { border-color: rgba(77, 141, 255, .5); }
.reason:hover::before { opacity: 1; }
.reason .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(77, 141, 255, .12); color: var(--accent); margin-bottom: auto; }
.reason .ico svg { width: 26px; height: 26px; }
.reason .mono { margin-top: 40px; font-size: 11px; color: var(--muted); letter-spacing: .14em; position: relative; }
.reason b { font-size: 17px; font-weight: 700; line-height: 1.7; position: relative; }
.reason-grid li:nth-child(2) { transition-delay: .08s; }
.reason-grid li:nth-child(3) { transition-delay: .16s; }
.reason-grid li:nth-child(4) { transition-delay: .24s; }

/* ---------- Works ---------- */
.works { background: linear-gradient(180deg, var(--bg), var(--bg-2) 20%, var(--bg-2) 80%, var(--bg)); }
.works-intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 80px); margin-bottom: 40px; }
.works-intro h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; letter-spacing: .06em; }
.works-intro p { color: #c3cad7; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { font-size: 12.5px; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); transition: .3s; font-family: var(--jp); }
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button.is-active { background: #fff; color: var(--bg); border-color: #fff; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease-out), opacity 1s var(--ease);
}
.work:hover { border-color: rgba(255, 255, 255, .26); }
.work.is-hidden { display: none; }
.work.is-pop { animation: pop .6s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(18px); } }
/* web screenshots sit in a dimmed browser window on a dark stage, fading out at the bottom */
.work-thumb {
  position: relative; display: block; width: 100%; overflow: hidden; cursor: zoom-in;
  padding: clamp(20px, 2.4vw, 34px) clamp(20px, 2.4vw, 34px) 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(77, 141, 255, .2), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.win {
  display: block; border-radius: 10px 10px 0 0; overflow: hidden;
  background: #0d1018;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -24px rgba(0, 0, 0, .8);
  transform: translateY(8px);
  transition: transform .7s var(--ease-out);
}
.bbar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bbar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.win img {
  aspect-ratio: 16 / 11; width: 100%; object-fit: cover; object-position: top;
  filter: brightness(.78) saturate(.75) contrast(.95);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0, 0, 0, .25) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, rgba(0, 0, 0, .25) 82%, transparent 100%);
  transition: filter .6s var(--ease);
}
.work-thumb:hover .win { transform: translateY(0); }
.work-thumb:hover .win img { filter: none; }
.work-body { padding: 24px 24px 26px; }
.chip { display: inline-block; font-size: 10.5px; letter-spacing: .1em; padding: 3px 10px; border-radius: 6px; background: rgba(77, 141, 255, .14); color: #a9c6ff; }
.work[data-cat="host"] .chip { background: rgba(83, 68, 176, .25); color: #c4bbff; }
.work[data-cat="open"] .chip { background: rgba(22, 122, 116, .28); color: #8ff0e2; }
.work h4 { font-size: 19px; font-weight: 700; margin-top: 10px; letter-spacing: .06em; }
.mig-head { margin-top: 18px; font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.mig-head em { font-style: normal; color: var(--accent-2); }
.mig .work-body h4 { margin-top: 4px; font-size: 15px; color: var(--muted); font-weight: 500; }
.mig-meta { display: grid; grid-template-columns: 1fr auto; gap: 14px; margin: 20px 0 16px; padding: 14px 0; border-block: 1px solid var(--line); }
.mig-meta dt { font-size: 11px; color: var(--dim); }
.mig-meta dd { font-size: 12.5px; line-height: 1.6; margin-top: 2px; }
.pairs { display: grid; gap: 6px; font-size: 12px; }
.pairs li { display: flex; align-items: center; gap: 8px; color: #c3cad7; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, .03); }
.pairs em { font-style: normal; color: var(--accent-2); }
.proc { margin-top: 16px; font-size: 12px; line-height: 1.8; color: var(--muted); }

/* ---------- Recruit ---------- */
.recruit-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.recruit-photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 4.4; }
.recruit-photo img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0)); filter: saturate(.9); }
.recruit-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 13, 18, .7)); }
.recruit-photo figcaption { position: absolute; z-index: 1; left: 22px; bottom: 20px; font-size: 12px; letter-spacing: .2em; display: flex; align-items: center; gap: 10px; }
.recruit-info h3 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; letter-spacing: .06em; margin-bottom: 30px; }
.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 13px; color: var(--muted); padding-top: 2px; }
.spec dd { font-size: 15.5px; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pay p { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.pay span { display: block; font-size: 12px; color: var(--muted); }
.pay b { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.pay b small { color: var(--dim); margin: 0 2px; }
.pay em { font-style: normal; font-size: 13px; color: var(--muted); margin-left: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 34px;
  padding: 16px 28px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55);
  font-size: 14.5px; font-weight: 700; letter-spacing: .08em;
  transition: background .35s, color .35s, border-color .35s;
}
.btn svg { width: 20px; height: 20px; transition: transform .4s var(--ease-out); }
.btn:hover { background: #fff; color: var(--bg); border-color: #fff; }
.btn:hover svg { transform: translateX(4px); }

/* ---------- Contact ---------- */
.contact-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(32px, 4vw, 56px); }
.contact-head .display { font-size: clamp(60px, 11vw, 180px); }
.contact-head .circle-btn { --size: 150px; flex-shrink: 0; margin-bottom: 12px; }
.contact-body { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.info-list > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-list > div:first-child { grid-column: 1 / -1; }
.info-list dt { font-size: 11px; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }
.info-list dd { font-size: 15.5px; }
.info-list dd a { border-bottom: 1px solid var(--line-2); transition: border-color .3s, color .3s; }
.info-list dd a:hover { color: var(--accent); border-color: var(--accent); }
.wechat { grid-column: 1 / -1; }
.wechat dd { display: flex; align-items: flex-end; gap: 14px; }
.wechat img { width: 120px; height: 120px; border-radius: 10px; background: #fff; padding: 6px; }
.wechat span { font-size: 11px; color: var(--muted); }
.company { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 14.5px; }
.company caption { text-align: left; font-size: 11px; color: var(--muted); letter-spacing: .18em; padding-bottom: 12px; }
.company th, .company td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company th { width: 130px; font-weight: 500; color: var(--muted); font-size: 13px; }

.contact-form { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 16px 10px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 15px; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 170px; }
.field label { position: absolute; left: 17px; top: 18px; font-size: 14px; color: var(--muted); pointer-events: none; transition: top .25s var(--ease), font-size .25s var(--ease), color .25s; }
.field label .mono { font-size: 10.5px; color: var(--dim); margin-left: 6px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(77, 141, 255, .15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 11px; color: var(--accent); }
.btn-solid { margin-top: 6px; justify-content: center; background: #fff; color: var(--bg); border-color: #fff; }
.btn-solid .mono { font-weight: 400; font-size: 11px; opacity: .6; }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.form-note { font-size: 13px; color: var(--accent-2); text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 6vw, 84px) var(--pad) 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-cols .logo { margin-bottom: 18px; }
.footer-cols p.muted { font-size: 13px; }
.footer-cols .mono { font-size: 11px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.footer-cols nav, .footer-cols > div:last-child { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.footer-cols a:hover { color: var(--accent); }
.footer-mark {
  margin-top: clamp(40px, 5vw, 70px);
  font-family: var(--en); font-weight: 800; font-size: 15.2vw; line-height: .78; letter-spacing: -.06em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .06) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-left: -.04em;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 30px; font-size: 11px; color: var(--dim); border-top: 1px solid var(--line); margin-top: 8px; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 40px; background: rgba(5, 6, 9, .9); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-close { position: absolute; top: 20px; right: 24px; font-size: 34px; line-height: 1; width: 48px; height: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .svc-cards { grid-template-columns: repeat(5, minmax(200px, 1fr)); overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
  .svc-cards::-webkit-scrollbar { display: none; }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-web { margin-right: 0; }
  .phone { right: 6%; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .menu { grid-template-columns: 1fr; align-content: start; overflow-y: auto; }
  .about-body, .web-intro, .works-intro, .recruit-body, .contact-body { grid-template-columns: 1fr; }
  .about-lead { position: static; }
  .sub-hero { height: auto; min-height: 0; }
  .svc-inner { grid-template-columns: 1fr; }
  .svc-text { padding: calc(var(--header-h) + 40px) var(--pad) 44px; }
  .svc-visual { padding: 60px var(--pad) 120px; min-height: 480px; }
  .svc-list a { grid-template-columns: 40px 1fr 52px; gap: 6px 16px; }
  .svc-list .n { grid-row: 1 / span 2; align-self: start; padding-top: 8px; }
  .svc-list p { grid-column: 2; }
  .svc-list .go { grid-column: 3; grid-row: 1 / span 2; width: 48px; height: 48px; }
  .matrix > div { grid-template-columns: 1fr; gap: 12px; }
  .flow-steps { grid-template-columns: 1fr; gap: 0; }
  .flow-steps::before, .flow-steps::after { top: 38px; bottom: 38px; left: 38px; right: auto; width: 1px; height: auto; }
  .flow-steps::after { transform: scaleY(0); transform-origin: top; }
  .flow-steps.is-in::after { transform: scaleY(1); }
  .flow-steps li { flex-direction: row; text-align: left; gap: 18px; padding: 10px 0; }
  .flow-steps .mono { margin-top: 0; }
  .contact-head .circle-btn { --size: 110px; }
  .vision-bg { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .vision-bg figure:last-child figcaption { right: auto; left: var(--pad); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .sp { display: inline; }
  .site-header { grid-template-columns: auto 1fr auto; gap: 12px; }
  .header-links a:not(.pill) { display: none; }
  .pill { padding: 6px 12px; font-size: 11.5px; }
  .menu-btn em { display: none; }
  .logo { font-size: 17px; justify-self: center; }
  .logo-mark { width: 12px; height: 12px; margin-right: 3px; }
  #globe { opacity: .8; }
  .hero-cta { --size: 96px; bottom: 90px; }
  .hero-meta { display: none; }
  .svc-cards { grid-template-columns: repeat(5, 72vw); }
  .modes, .sub-works { grid-template-columns: 1fr; }
  .mode { min-height: 0; }
  .matrix li { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); font-size: 12px; }
  .biz-list li { grid-template-columns: 38px 1fr; }
  .biz-list .tag { grid-column: 2; justify-self: start; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .badges, .reason-grid, .work-grid, .pay { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-cols { grid-template-columns: 1fr; }
  .contact-head { flex-direction: column; align-items: flex-start; }
  .phone { display: none; }
  .cvr { left: auto; right: 8%; bottom: 120px; }
  .panes { grid-template-columns: 1fr; }
  .pane-arrow { height: 30px; border-inline: 0; border-block: 1px solid rgba(255, 255, 255, .06); }
  .pane-arrow svg { transform: rotate(90deg); }
  .is-active .pane-arrow svg { animation: none; }
  .code { font-size: 11.5px; padding: 14px 16px; }
  .upg li { grid-template-columns: 84px 18px minmax(0, 1fr) 16px; font-size: 11px; }
  .upg .new { white-space: nowrap; }
  .svc-cta { --size: 84px; bottom: 22px; }
}

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