/* ============================================================
   EMYSTI 2026-10 redesign — "warm mother ship"
   Loaded AFTER tech.css + tech-light.css on every page.
   Palette: washi paper, sumi ink, Kanmon-strait teal, dusk amber.
   ============================================================ */

:root {
  /* original EMYSTI palette (tech-light): white, ink, electric blue */
  --paper:      #FFFFFF;
  --paper-2:    #F4F6FA;
  --card:       #FFFFFF;
  --ink:        #0E1116;
  --ink-2:      #4A4F5A;
  --ink-3:      #8A8F9A;
  --teal:       #1B57F0;
  --teal-2:     #1241C0;
  --amber:      #1B57F0;
  --amber-soft: rgba(27,87,240,.12);
  --rule:       rgba(14,17,22,.10);
  --rule-2:     rgba(14,17,22,.16);
  --shadow:     0 1px 2px rgba(14,17,22,.04), 0 10px 28px rgba(14,17,22,.07);
  --radius:     16px;
  --on-dark:    #8FB0FF;

  --bg-0: var(--paper);
  --bg-1: var(--paper-2);
  --bg-card: var(--card);
  --fg-0: var(--ink);
  --fg-1: var(--ink-2);
  --fg-2: var(--ink-3);
  --line: var(--rule);
  --line-strong: var(--rule-2);
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-jp);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="zh"] body { font-family: "Noto Sans SC", var(--sans-jp); }
.bg-grid, .bg-noise { display: none !important; }
::selection { background: var(--amber-soft); color: var(--ink); }

/* ---------- typography ---------- */
h1, h2, h3, .v2-display { font-family: var(--serif-jp); letter-spacing: .01em; color: var(--ink); }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3 { font-family: "Noto Serif SC", var(--serif-jp); }
html[lang="en"] h1, html[lang="en"] h2 { font-family: var(--serif-en); letter-spacing: 0; }

.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn, .btn--primary, .btn--ghost, .btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--sans-jp); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary, .btn-primary { background: var(--teal); color: #fff !important; border: 1px solid var(--teal); box-shadow: none; }
.btn--primary:hover, .btn-primary:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.btn--ghost, .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-2); }
.btn--ghost:hover, .btn-ghost:hover { border-color: var(--ink); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn--light:hover { background: #fff; color: var(--ink); }

/* ---------- nav (injected by tech.js) ---------- */
.nav {
  background: rgba(255,255,255,.86) !important;
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule) !important;
}
.nav__links a { color: var(--ink-2); font-weight: 500; }
.nav-logo-img { content: url("../images/v2/emysti-logo-ink.png"); }
.nav__links a:hover, .nav__links a.is-current { color: var(--teal); }
.status-pill { display: none !important; }
.lang { background: var(--card); border: 1px solid var(--rule); border-radius: 999px; }
.lang button { color: var(--ink-3); }
.lang button.is-active { background: var(--teal); color: #fff; }
body.v2-home .nav:not(.is-scrolled) {
  background: linear-gradient(to bottom, rgba(10,20,28,.55), rgba(10,20,28,0)) !important;
  border-bottom-color: transparent !important; backdrop-filter: none;
}
body.v2-home .nav:not(.is-scrolled) .nav__links a { color: rgba(255,255,255,.88); }
body.v2-home .nav:not(.is-scrolled) .nav-logo-img { content: url("../images/v2/emysti-logo-white.png"); }
body.v2-home .nav:not(.is-scrolled) .lang { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
body.v2-home .nav:not(.is-scrolled) .lang button { color: rgba(255,255,255,.8); }
body.v2-home .nav:not(.is-scrolled) .nav__burger span { background: #fff; }

/* ---------- shared section scaffolding ---------- */
.v2-section { padding: clamp(72px, 10vw, 128px) 0; }
.v2-section--paper2 { background: var(--paper-2); }
.v2-section--ink { background: #0E1116; color: #E6E9EF; }
.v2-section--ink h2, .v2-section--ink h3 { color: #fff; }
.v2-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono, "JetBrains Mono", monospace); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.v2-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.v2-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.v2-head h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.25; font-weight: 600; margin: 0; }
.v2-head p { color: var(--ink-2); font-size: 16px; line-height: 1.9; margin: 0; }
.v2-section--ink .v2-head p { color: rgba(230,233,239,.75); }

/* ---------- hero ---------- */
.v2-hero { position: relative; min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.v2-hero__media { position: absolute; inset: 0; z-index: -2; background: #0B0E14 center 62% / cover no-repeat; transform: scale(1.04); animation: v2-drift 24s ease-in-out infinite alternate; }
.v2-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(8,10,16,.55) 0%, rgba(8,10,16,.08) 38%, rgba(8,10,16,.30) 62%, rgba(8,10,16,.86) 100%); }
@keyframes v2-drift { to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { .v2-hero__media { animation: none; } }
.v2-hero__inner { padding-top: 140px; padding-bottom: clamp(40px, 6vw, 64px); }
.v2-hero .v2-eyebrow { color: var(--on-dark); }
.v2-hero__title { color: #fff; font-size: clamp(40px, 7vw, 92px); line-height: 1.12; font-weight: 600; margin: 0 0 24px; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.v2-hero__title em { font-style: normal; color: var(--on-dark); white-space: nowrap; }
.v2-hero__lead { max-width: 640px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.95; color: rgba(255,255,255,.88); margin: 0 0 32px; }
.v2-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.v2-hero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.22); }
.v2-hero__facts div { padding: 22px 20px 30px 0; }
.v2-hero__facts div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
.v2-hero__facts strong { display: block; font-family: var(--serif-en); font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; line-height: 1; color: #fff; }
.v2-hero__facts > div > span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.5; }
.v2-hero__caption { position: absolute; right: 24px; bottom: 12px; font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.5); }

/* ---------- products ---------- */
.v2-products { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.v2-product {
  grid-column: span 4; position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.v2-product:hover { transform: translateY(-4px); border-color: rgba(27,87,240,.35); box-shadow: 0 2px 4px rgba(14,17,22,.05), 0 22px 48px rgba(14,17,22,.12); }
.v2-product--feature { grid-column: span 6; }
.v2-product__top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.v2-product__icon { width: 64px; height: 64px; border-radius: 15px; flex: none; box-shadow: 0 6px 16px rgba(14,17,22,.14); object-fit: cover; background: #fff; }
.v2-product__name { font-family: var(--serif-en); font-size: 26px; line-height: 1.1; color: var(--ink); margin: 0; }
.v2-product__kana { display: block; font-family: var(--sans-jp); font-size: 12px; color: var(--ink-3); margin-top: 4px; letter-spacing: .06em; }
.v2-product p { color: var(--ink-2); font-size: 15px; line-height: 1.85; margin: 0 0 20px; flex: 1; }
.v2-product__meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 14px; }
.v2-product__meta b { color: var(--teal); font-weight: 600; }
.v2-product__status { display: inline-flex; align-items: center; gap: 6px; }
.v2-product__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3A9D6E; }
.v2-product__status--prep::before { background: #E5BC73; }
.v2-product__shot { margin: -28px -28px 22px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--paper-2); }
.v2-product__shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.v2-product:hover .v2-product__shot img { transform: scale(1.03); }

/* ---------- interpreting feature ---------- */
.v2-interp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.v2-interp__photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: #222; }
.v2-interp__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.v2-interp__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 18px; background: linear-gradient(transparent, rgba(8,10,16,.82)); color: #fff; font-size: 13px; line-height: 1.6; }
.v2-interp__photo figcaption b { display: block; font-family: var(--serif-en); font-size: 22px; font-weight: 500; }
.v2-interp h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.3; margin: 0 0 20px; }
.v2-interp > div > p { color: rgba(230,233,239,.8); font-size: 16px; line-height: 1.95; margin: 0 0 28px; }
.v2-interp__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
.v2-interp__fields div { background: #161B24; padding: 18px; }
.v2-interp__fields b { display: block; color: var(--on-dark); font-family: var(--serif-jp); font-size: 17px; margin-bottom: 6px; }
.v2-interp__fields div > span { font-size: 13px; line-height: 1.7; color: rgba(230,233,239,.72); }
.v2-interp__rates { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; margin-bottom: 28px; font-size: 14px; color: rgba(230,233,239,.75); }
.v2-interp__rates strong { font-family: var(--serif-en); font-size: 30px; font-weight: 500; color: #fff; margin-right: 6px; }
.v2-interp__offices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.v2-interp__offices > span { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: rgba(230,233,239,.85); }
.v2-section--ink .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.v2-section--ink .btn--ghost:hover { border-color: #fff; }
.v2-section--ink .btn--primary { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink) !important; }
.v2-section--ink .btn--primary:hover { background: #fff; border-color: #fff; }

/* ---------- services ---------- */
.v2-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.v2-service { display: block; text-decoration: none; color: inherit; }
.v2-service__img { aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--paper-2); margin-bottom: 16px; }
.v2-service__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease, filter .4s; filter: saturate(.92); }
.v2-service:hover .v2-service__img img { transform: scale(1.04); filter: saturate(1.02); }
.v2-service__n { font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .14em; color: var(--amber); }
.v2-service h3 { font-size: 21px; line-height: 1.4; margin: 6px 0 8px; font-weight: 600; }
.v2-service p { color: var(--ink-2); font-size: 14px; line-height: 1.85; margin: 0; }
.v2-service:hover h3 { color: var(--teal); }

/* ---------- AI concierge ---------- */
.v2-ai { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.v2-ai h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; margin: 0 0 16px; }
.v2-ai > div > p { color: var(--ink-2); line-height: 1.9; margin: 0; }
.v2-ai .terminal { border-radius: 18px; box-shadow: 0 24px 60px rgba(14,17,22,.22); }
.v2-ai .suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.v2-ai .chip { background: var(--card); border: 1px solid var(--rule-2); color: var(--ink-2); border-radius: 999px; }
.v2-ai .chip:hover { border-color: var(--teal); color: var(--teal); background: #fff; }

/* ---------- values ---------- */
.v2-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-2); }
.v2-value { padding: 32px 28px 8px 0; }
.v2-value + .v2-value { padding-left: 28px; border-left: 1px solid var(--rule); }
.v2-value__kanji { font-family: var(--serif-jp); font-size: 64px; line-height: 1; color: var(--teal); margin-bottom: 18px; }
.v2-value h3 { font-size: 20px; margin: 0 0 10px; }
.v2-value p { color: var(--ink-2); line-height: 1.9; font-size: 15px; margin: 0; }

/* ---------- reused legacy blocks on the home page (news, faq) ---------- */
body.v2-home #news, body.v2-home #faq { background: transparent !important; }
body.v2-home .section-head__id { color: var(--amber); }
body.v2-home .section-head__id .num { color: var(--amber); }
.news__item { border-color: var(--rule) !important; }
.news__item:hover .news__title { color: var(--teal); }
.news__meta .cat { color: var(--teal) !important; }
.faq__item { border-color: var(--rule) !important; }
.faq__q { color: var(--ink) !important; }

/* ---------- contact band ---------- */
.v2-contact { position: relative; overflow: hidden; color: #fff; background: #0B0E14 url("../images/v2/hero-kanmon.jpg") center 70% / cover; }
.v2-contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,16,.92), rgba(8,10,16,.55)); }
.v2-contact .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.v2-contact h2 { color: #fff; font-size: clamp(32px, 5vw, 60px); line-height: 1.2; margin: 0 0 18px; }
.v2-contact p { color: rgba(255,255,255,.8); line-height: 1.9; margin: 0 0 28px; }
.v2-offices { display: grid; gap: 14px; }
.v2-office { border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 18px 20px; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.v2-office b { display: block; font-size: 12px; letter-spacing: .14em; color: var(--on-dark); margin-bottom: 6px; }
.v2-office > span { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.88); }

/* ---------- inner pages ---------- */
.page-hero { position: relative; background: var(--paper-2); border-bottom: 1px solid var(--rule); padding: 150px 0 64px !important; overflow: hidden; }
.page-hero--photo { color: #fff; min-height: 460px; display: flex; align-items: flex-end; background-color: #0B0E14; background-position: center; background-size: cover; background-repeat: no-repeat; border-bottom: 0; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,16,.45), rgba(8,10,16,.78)); }
.page-hero--photo .wrap { position: relative; }
.page-hero--photo h1, .page-hero--photo .svc-lead, .page-hero--photo p { color: #fff !important; }
.page-hero .eyebrow { color: var(--amber) !important; font-family: var(--mono, monospace); letter-spacing: .18em; text-transform: uppercase; }
.page-hero--photo .eyebrow { color: var(--on-dark) !important; }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.2; font-weight: 600; }
.svc-lead { color: var(--ink-2); font-size: 17px; line-height: 1.9; max-width: 720px; }
.detail-h { font-family: var(--serif-jp); color: var(--ink); border-bottom: 1px solid var(--rule-2); padding-bottom: 12px; }
.detail-card, .blog-card, .svc, .feature-grid > div, .strength-grid > div {
  background: var(--card) !important; border: 1px solid var(--rule) !important; border-radius: 16px !important; box-shadow: var(--shadow);
}
.detail-card h4, .blog-card h3 { color: var(--ink); font-family: var(--serif-jp); }
.flow-num { background: var(--teal) !important; color: #fff !important; }
.blog-card:hover, .svc:hover { border-color: rgba(27,87,240,.35) !important; }
.blog-card .meta { color: var(--amber); }
.svc-img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: 16px 16px 0 0; }
.content { color: var(--ink); }
.content p, .content li { color: var(--ink-2); line-height: 2; }
.content h2 { font-family: var(--serif-jp); margin-top: 2.2em; }

/* ---------- footer (injected) ---------- */
.footer { background: var(--ink) !important; color: rgba(230,233,239,.75); border-top: 0 !important; }
.footer a { color: rgba(230,233,239,.85); }
.footer a:hover { color: var(--on-dark); }
.footer h4 { color: var(--on-dark) !important; }
.footer img[src*="emysti-logo"] { content: url("../images/v2/emysti-logo-white.png"); opacity: .92; }
.partner-strip { background: var(--paper-2) !important; border-top: 1px solid var(--rule); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .v2-product, .v2-product--feature { grid-column: span 6; }
  .v2-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .v2-head, .v2-interp, .v2-ai, .v2-contact .wrap { grid-template-columns: 1fr; }
  .v2-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-hero__facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .v2-hero__facts div { border-top: 1px solid rgba(255,255,255,.12); }
  .v2-values { grid-template-columns: 1fr; }
  .v2-value + .v2-value { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .v2-interp__photo { aspect-ratio: 4 / 3; max-height: 520px; }
  
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .v2-product, .v2-product--feature { grid-column: span 12; }
  .v2-services { grid-template-columns: 1fr; }
  .v2-interp__fields { grid-template-columns: 1fr; }
  .v2-hero__inner { padding-top: 120px; }
  .v2-hero__facts div { padding: 16px 12px 18px 0; }
  .v2-hero__facts div + div { padding-left: 12px; }
  .v2-hero__caption { display: none; }
  .page-hero--photo { min-height: 380px; }
}

/* ---------- footer product list + partner strip (2026-10) ---------- */
.footer .footer-product {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  padding: 6px 0 !important; border-radius: 0 !important; display: flex; flex-direction: column; gap: 2px;
}
.footer .footer-product::before { display: none !important; }
.footer .footer-product > span { color: #F5F7FA !important; font-family: var(--serif-en); font-size: 16px; }
.footer .footer-product small { color: rgba(230,233,239,.55) !important; font-size: 11px; }
.footer .footer-product:hover > span { color: var(--on-dark) !important; }
.footer .footer__products ul { gap: 4px 24px !important; }
.footer__legal, .footer__bottom { color: rgba(230,233,239,.5) !important; }
.partner-strip img[src*="emysti-logo"] { content: url("../images/v2/emysti-logo-ink.png"); }
body.v2-home .section-head__id .num { display: none; }
.v2-more { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- hero with the AI concierge up front ---------- */
.v2-hero__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: end; }
.v2-hero__title { font-size: clamp(38px, 5.6vw, 76px); }
.v2-hero__ai { width: 100%; max-width: none; }
.v2-hero__ai-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.v2-hero__ai-label small { font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .1em; color: var(--on-dark); font-weight: 500; }
.v2-hero__ai .terminal { box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(143,176,255,.25); border-radius: 16px; }
.v2-hero__ai .terminal__body { min-height: 300px; }
.v2-hero__ai .terminal__messages { max-height: 340px; }
.v2-hero__ai .terminal__textarea { font-size: 16px; }
.v2-hero__ai .suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-height: 108px; overflow: hidden; }
.v2-hero__ai .chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.9); border-radius: 999px; font-size: 12px; padding: 5px 12px; }
.v2-hero__ai .chip:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 960px) {
  .v2-hero__inner { grid-template-columns: 1fr; align-items: start; }
  .v2-hero__ai .suggestions { max-height: none; }
}
