/* ==========================================================================
   RCT — Global site styles
   Layout & type system modelled on a modern enterprise marketing site:
   medium-weight display headings, reddish-maroon brand colour with a gold
   accent, warm neutral section bands, pill buttons, generous whitespace.

   Font: Switzer (Indian Type Foundry, free for commercial use via Fontshare),
   loaded from api.fontshare.com in each page's <head>. Headings use weight 500
   with tight negative tracking. Japanese pages add Noto Sans JP for kana/kanji.
   ========================================================================== */


:root {
  --font: "Switzer", "Helvetica Neue", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --brand: #7a1f2b;          /* reddish maroon — buttons, fills */
  --brand-600: #5f1620;
  --brand-50: #f7ecec;
  --ink: #160b0d;
  --body: #3a2e30;
  --muted: #6f6466;
  --soft: #756769;
  --line: #ebe3e1;
  --warm: #faf6f2;
  --cool: #f7f2f0;
  --navy: #2a1117;           /* deep wine bands (class name kept: .bg-navy) */
  --navy-2: #331720;
  --gold: #c9a24a;           /* gold accent */
  --gold-ink: #9a7428;       /* gold dark enough for large text on light bg */
  --white: #ffffff;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, .96);
  --black: #120a0b;
  --accent: #8a2232;         /* maroon text / links */
  --logo: #7a1f2b;
  --input-line: #dacfcc;
  --brand-line: #e3c3c7;
  --marquee: #a0918f;
  --ok-bg: #e8f8f0; --ok-fg: #0b6e46;
  --warn-bg: #fff5e5; --warn-fg: #8a5300;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(40, 12, 18, .05), 0 12px 32px -8px rgba(40, 12, 18, .14);
  --shadow-lg: 0 24px 64px -16px rgba(40, 12, 18, .24);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--bg);
  transition: background-color .3s, color .3s;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 1000; }
.skip-link:focus { left: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

::selection { background: rgba(201, 162, 74, .35); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
.display { font-size: clamp(40px, 6vw, 74px); line-height: 1.02; letter-spacing: -0.04em; }
.h1 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.06; letter-spacing: -0.04em; }
.h2 { font-size: clamp(30px, 3.6vw, 47px); line-height: 1.14; letter-spacing: -0.04em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.025em; }
.h4 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.accent { color: var(--accent); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; font-weight: 400; color: var(--body); letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--body); font-size: 17px; line-height: 1.6; font-weight: 400; }
p:last-child { margin-bottom: 0; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow.muted { color: var(--soft); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 8px 24px -8px rgba(122, 31, 43, .55); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-white { background: #fff; color: #7a1f2b; }
.btn-white:hover { background: var(--brand-50); }
.btn-ghost-white { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-white:hover { background: #fff; color: #7a1f2b; }
.btn-sm { min-height: 40px; padding: 10px 20px; font-size: 15px; }
.btn-play { width: 72px; height: 72px; padding: 0; border-radius: 50%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--accent); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Announcement + utility bars ---------- */
.announce { background: var(--black); color: #fff; font-size: 14px; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; text-align: center; }
.announce a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.announce-close { position: absolute; right: 12px; background: none; border: 0; color: #fff; padding: 6px; opacity: .8; }
.announce { position: relative; }
.announce[hidden] { display: none; }

.utility { border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.utility .container { display: flex; justify-content: flex-end; align-items: center; gap: 28px; min-height: 40px; }
.utility a:hover { color: var(--ink); }
.utility .clock { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.utility .clock b { color: var(--ink); font-weight: 500; }
.utility .sep { width: 1px; height: 16px; background: var(--line); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--surface-glass); backdrop-filter: saturate(180%) blur(12px); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0, 0, 0, .2); }
.nav { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { flex: none; display: inline-flex; align-items: center; font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.nav-menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; background: none; border: 0; color: var(--ink); white-space: nowrap;
}
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-link[aria-current="page"] { color: var(--accent); }
.nav-link .chev { width: 12px; height: 12px; transition: transform .2s; }
.nav-item.open .chev { transform: rotate(180deg); }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }

.mega {
  position: absolute; top: calc(100% + 14px); left: -24px; min-width: 560px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s;
}
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-link { display: flex; gap: 14px; padding: 12px; border-radius: 12px; transition: background .15s; }
.mega-link:hover { background: var(--cool); }
.mega-link .ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--accent); display: grid; place-items: center; }
.mega-link .ic svg { width: 20px; height: 20px; }
.mega-link b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.mega-link span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.mega-feature { grid-column: span 2; margin-top: 8px; padding: 16px; border-radius: 12px; background: var(--warm); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: inline-grid; place-items: center; transition: background .2s, border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: transform .35s, opacity .25s; }
.theme-toggle .moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="dark"] .theme-toggle .sun { opacity: 0; transform: rotate(90deg) scale(.6); }
[data-theme="dark"] .theme-toggle .moon { opacity: 1; transform: none; }

/* ---------- Language switch ---------- */
.utility .lang-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.utility .lang-link::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E") center / contain no-repeat; }
.utility .lang-link:hover { color: var(--accent); }
.lang-btn { display: none; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); place-items: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang-btn:hover { border-color: var(--ink); }

/* ---------- Japanese typography ---------- */
html[lang="ja"] { --font: "Switzer", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
html[lang="ja"] body { line-height: 1.7; font-feature-settings: "palt" 1; }
html[lang="ja"] p, html[lang="ja"] li, html[lang="ja"] td { line-height: 1.85; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 { letter-spacing: .01em; word-break: auto-phrase; text-wrap: balance; }
html[lang="ja"] .display { font-size: clamp(34px, 5vw, 60px); line-height: 1.25; }
html[lang="ja"] .h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.3; }
html[lang="ja"] .h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.35; }
html[lang="ja"] .h3 { line-height: 1.45; }
html[lang="ja"] .display, html[lang="ja"] .h1, html[lang="ja"] .h2, html[lang="ja"] .h3, html[lang="ja"] .h4 { font-weight: 500; letter-spacing: .01em; }
html[lang="ja"] body, html[lang="ja"] .lead { letter-spacing: .02em; }
html[lang="ja"] .eyebrow { letter-spacing: .06em; }
html[lang="ja"] .stat .num { font-size: clamp(38px, 4.4vw, 56px); }
html[lang="ja"] .btn { letter-spacing: .02em; }
html[lang="ja"] .nav-link { line-height: 1.38; }
@media (min-width: 1025px) and (max-width: 1180px) {
  html[lang="ja"] .nav { gap: 16px; }
  html[lang="ja"] .nav-menu .nav-link { padding: 10px 8px; font-size: 14px; }
}


/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-sm { padding: clamp(48px, 5vw, 72px) 0; }
.bg-warm { background: var(--warm); }
.bg-cool { background: var(--cool); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy p { color: rgba(255, 255, 255, .78); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .lead { margin: 28px 0 36px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--cool); box-shadow: var(--shadow-lg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(40, 6, 12, .45)); }
.float-card {
  position: absolute; z-index: 2; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 14px 16px; font-size: 13px; min-width: 200px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .label { color: var(--muted); font-size: 12px; display: block; margin-bottom: 6px; }
.float-card .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.float-card .row + .row { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.float-card b { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.float-card .dot { width: 8px; height: 8px; border-radius: 50%; background: #16c47f; box-shadow: 0 0 0 4px rgba(22, 196, 127, .18); }
.float-card.fc-1 { top: 8%; left: -8%; }
.float-card.fc-2 { bottom: 10%; right: -6%; animation-delay: -3s; }
.float-card.fc-3 { bottom: -5%; left: 10%; animation-delay: -1.5s; min-width: 0; display: flex; gap: 10px; align-items: center; }
.route { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.route i { flex: 1; height: 2px; min-width: 40px; background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 10px); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); color: var(--accent); }
.badge.green { background: var(--ok-bg); color: var(--ok-fg); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-orb { position: absolute; z-index: -1; width: 640px; height: 640px; right: -200px; top: -160px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(201, 162, 74, .26), rgba(122, 31, 43, .10) 45%, transparent 70%); filter: blur(10px); }

/* Page hero (interior) */
.page-hero { padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 80px); background: var(--warm); position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end; }
.page-hero .lead { margin-top: 24px; max-width: 620px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--accent); }
.address-card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.address-card .addr { display: flex; gap: 14px; }
.address-card .flag { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--cool); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--accent); }
.address-card b { display: block; font-weight: 500; margin-bottom: 4px; }
.address-card span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 40px 0 48px; border-bottom: 1px solid var(--line); }
.marquee-title { text-align: center; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 400; color: var(--marquee); white-space: nowrap; }
.marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Product-style cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid transparent; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--cool); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .chip { position: absolute; left: 16px; top: 16px; background: var(--surface-glass); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-body p { font-size: 16px; }
.card-body .link-arrow { margin-top: auto; padding-top: 8px; }

.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--accent); }
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.dark { background: var(--brand); color: #fff; }

.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; transition: border-color .2s, box-shadow .2s; }
.feature-card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }
.feature-card p { font-size: 16px; }
.bg-warm .feature-card, .bg-cool .feature-card { border-color: transparent; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(0, 0, 0, .1); }
.stat { padding: 36px 28px 8px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid rgba(0, 0, 0, .1); }
.stat .num { font-size: clamp(44px, 5vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -.045em; color: var(--gold-ink); }
.stat .lbl { margin-top: 12px; color: var(--body); font-size: 16px; font-weight: 400; max-width: 240px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(72px, 9vw, 128px); }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--cool); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy .h2 { margin-bottom: 20px; }
.checklist { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; font-size: 17px; font-weight: 400; color: var(--body); line-height: 1.45; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a1f2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.bg-navy .checklist li { color: rgba(255, 255, 255, .85); }

.media-overlay-card { position: absolute; left: 20px; right: 20px; bottom: 20px; background: var(--surface-glass); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.media-overlay-card b { display: block; font-weight: 500; }
.media-overlay-card span { font-size: 13px; color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs-list { display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 48px; flex-wrap: wrap; }
.tab-btn { border: 0; background: transparent; padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.tab-btn[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab-btn:hover:not([aria-selected="true"]) { color: var(--ink); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Quote ---------- */
.quote-block { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.quote-block .q { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.quote-block blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
.quote-block blockquote::before { content: "\201C"; display: block; font-size: 72px; line-height: .6; color: var(--accent); margin-bottom: 16px; }
.quote-block .by { display: flex; align-items: center; gap: 14px; }
.quote-block .by b { display: block; font-weight: 500; }
.quote-block .by span { font-size: 14px; color: var(--muted); }
.quote-block .q-media { position: relative; min-height: 320px; }
.quote-block .q-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Case study carousel ---------- */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-controls { display: flex; gap: 10px; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; display: grid; place-items: center; transition: background .2s, color .2s; color: var(--ink); }
.icon-btn:hover { background: var(--ink); color: var(--bg); }
.icon-btn svg { width: 18px; height: 18px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.head-row .section-head { margin-bottom: 0; }

.case-card { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 16px; min-height: 100%; border: 1px solid var(--line); }
.case-card .metric { font-size: 48px; font-weight: 500; color: var(--accent); line-height: 1; letter-spacing: -.045em; }
.case-card p { font-size: 16px; }

/* ---------- Tools (currency + clocks) ---------- */
.tools-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.tool { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.tool h3 { margin-bottom: 8px; }
.tool > p { font-size: 16px; margin-bottom: 28px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--input-line); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(122, 31, 43, .14); }
.field textarea { min-height: 140px; resize: vertical; }
.fx-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.fx-swap { width: 48px; height: 50px; border-radius: 12px; border: 1px solid var(--input-line); background: var(--cool); display: grid; place-items: center; color: var(--accent); }
.fx-swap svg { width: 18px; height: 18px; }
.fx-result { margin-top: 24px; padding: 24px; border-radius: 14px; background: var(--cool); }
.fx-result .val { font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.fx-result .meta { font-size: 13px; color: var(--muted); margin-top: 6px; }
.clocks { display: grid; gap: 12px; }
.clock-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 14px; background: var(--cool); }
.clock-row .city b { display: block; font-weight: 500; font-size: 17px; }
.clock-row .city span { font-size: 13px; color: var(--muted); }
.clock-row .time { font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.clock-row .time small { font-size: 13px; color: var(--muted); margin-left: 6px; }
.clock-row.home { background: var(--brand); color: #fff; }
.clock-row.home .city span, .clock-row.home .time small { color: rgba(255, 255, 255, .75); }
.overlap-note { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.overlap-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- Resource cards ---------- */
.resource-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--cool); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.resource-card .card-media { aspect-ratio: 16 / 9; }
.resource-card .card-body { gap: 10px; }
.resource-card .type { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-weight: 500; }
.resource-card h3 { font-size: 22px; font-weight: 400; line-height: 1.25; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #8a2232, #5f1620); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cta-band .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: 20px; max-width: 560px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cta-band .globe { position: absolute; right: -120px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); opacity: .28; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255, 255, 255, .7); padding: clamp(56px, 7vw, 96px) 0 32px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .logo { color: #fff; font-size: 40px; }
.footer-about p { color: rgba(255, 255, 255, .7); font-size: 15px; margin: 20px 0 0; max-width: 360px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; font-size: 14px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Industries page ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { padding: 18px 16px; font-size: 15px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.industry-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; margin-bottom: 56px; }
.industry-banner { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8; margin-bottom: 56px; position: relative; }
.industry-banner img { width: 100%; height: 100%; object-fit: cover; }
.industry-banner .chip { position: absolute; left: 24px; bottom: 24px; background: var(--surface); border-radius: 999px; padding: 10px 18px; font-weight: 500; display: inline-flex; gap: 10px; align-items: center; }
.industry-banner .chip svg { width: 18px; height: 18px; color: var(--accent); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { padding: 32px; border-radius: var(--radius); background: var(--cool); display: flex; flex-direction: column; gap: 14px; }
.bg-cool .pillar { background: var(--surface); }
.pillar .n { font-size: 14px; font-weight: 500; color: var(--accent); }
.pillar p { font-size: 16px; }

/* ---------- IT: Japan market entry ---------- */
.dir-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: 48px; }
.dx-stat { border-left: 2px solid var(--gold); padding: 8px 0 8px 28px; }
.dx-stat .num { font-size: clamp(56px, 6vw, 84px); font-weight: 500; letter-spacing: -.045em; line-height: 1; color: #fff; }
.dx-stat p { margin: 14px 0 10px; font-size: 16px; }
.dx-stat .src { font-size: 12px; color: rgba(255, 255, 255, .55); }
.dir-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); transition: background .2s, border-color .2s, transform .25s; }
.dir-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(201, 162, 74, .6); transform: translateY(-3px); }
.dir-card .link-arrow { color: var(--gold); margin-top: auto; }
.dir-label { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.n-badge { font-size: 14px; font-weight: 500; color: var(--accent); }
.principle { margin-top: 32px; padding: 28px 32px; border-radius: var(--radius); background: var(--black); color: #fff; border: 1px solid var(--line); display: flex; gap: 24px 48px; align-items: center; flex-wrap: wrap; }
.principle .eyebrow { margin: 0; color: var(--gold); }
.principle p { margin: 0; color: inherit; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.principle p span { white-space: nowrap; }
.five { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.p5 { background: var(--surface); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; border: 1px solid transparent; transition: border-color .2s, transform .25s; }
.p5:hover { border-color: var(--brand-line); transform: translateY(-3px); }
.p5 p { font-size: 15px; }
.p5-top { display: flex; justify-content: space-between; align-items: baseline; }
.p5-num { font-size: 28px; font-weight: 500; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.p5-theme { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.tiers { display: grid; gap: 12px; }
.tier { padding: 24px 28px; border-radius: var(--radius); background: var(--cool); border-left: 3px solid var(--brand); }
.tier:nth-child(2) { border-left-color: var(--gold); }
.tier:nth-child(3) { border-left-color: var(--soft); }
.tier-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tier-roles { margin: 10px 0 6px; font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.tier p:last-child { font-size: 15px; color: var(--muted); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.phases::before { content: ""; position: absolute; top: 20px; left: 21px; right: calc((100% - 72px) / 4 - 21px); height: 2px; background: linear-gradient(90deg, var(--brand), var(--gold)); opacity: .5; }
.phase { position: relative; display: flex; flex-direction: column; gap: 8px; }
.phase-dot { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; margin-bottom: 12px; position: relative; box-shadow: 0 0 0 6px var(--bg); }
.phase-when { font-size: 13px; font-weight: 500; color: var(--accent); }
.phase ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.phase li { font-size: 15px; color: var(--body); line-height: 1.5; }
.north-star { margin-top: clamp(56px, 7vw, 96px); padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--brand-50); display: grid; gap: 20px; justify-items: start; }
.north-star .eyebrow { margin: 0; }
.north-star blockquote { margin: 0; font-size: clamp(24px, 3vw, 38px); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; color: var(--ink); max-width: 900px; }
@media (max-width: 1180px) { .five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) {
  .dir-head { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
  .phases::before { display: none; }
}
@media (max-width: 640px) {
  .five, .phases { grid-template-columns: 1fr; }
  .principle { padding: 24px; }
  .principle p span { white-space: normal; }
}
html[lang="ja"] .principle p, html[lang="ja"] .north-star blockquote, html[lang="ja"] .dx-stat .num { letter-spacing: .01em; }
html[lang="ja"] .principle p span { white-space: normal; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.value { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 14px; min-height: 280px; transition: background .25s, color .25s, transform .25s; }
.value:hover { background: var(--brand); transform: translateY(-4px); }
.value:hover h3, .value:hover p, .value:hover .n { color: #fff; }
.value:hover .icon-tile { background: rgba(255, 255, 255, .16); color: #fff; }
.value .n { font-size: 14px; color: var(--soft); margin-top: auto; }
.value p { font-size: 15px; }
.value h3 { font-size: 22px; font-weight: 400; }

/* ---------- Insights / guides ---------- */
.guide-layout { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.guide-layout > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 4px; }
.toc b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-weight: 500; margin-bottom: 12px; }
.toc a { padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--muted); border-left: 2px solid var(--line); border-radius: 0; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }
.guide { padding-bottom: 72px; margin-bottom: 72px; border-bottom: 1px solid var(--line); }
.guide:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.guide > .h2 { margin-bottom: 20px; }
.guide > .lead { margin-bottom: 40px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding: 0 0 40px 72px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 500; }
.step::after { content: ""; position: absolute; left: 23px; top: 56px; bottom: 8px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 22px; font-weight: 400; margin: 10px 0 14px; }
.step .phase { display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); font-weight: 500; margin-bottom: 4px; }
.step ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.step li { color: var(--body); font-weight: 400; font-size: 16px; line-height: 1.5; }
.step li ul { margin-top: 8px; }
.callout { margin-top: 16px; padding: 16px 20px; border-radius: 12px; background: var(--brand-50); color: var(--ink); font-size: 16px; display: flex; gap: 12px; align-items: flex-start; }
.callout svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.phase-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 32px; }
.phase-head span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 500; white-space: nowrap; }
.phase-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
th { background: var(--cool); font-weight: 500; font-size: 14px; letter-spacing: .04em; }
td { font-weight: 400; color: var(--body); }
td:first-child { font-weight: 500; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

.model-cards { display: grid; gap: 24px; }
.model-card { display: grid; grid-template-columns: 320px 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.model-card .m-media { position: relative; min-height: 260px; }
.model-card .m-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.model-card .m-body { padding: clamp(24px, 3vw, 40px); }
.model-card .m-body h3 { margin-bottom: 16px; }
.model-card p { font-size: 16px; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; background: none; border: 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; text-align: left; font-size: 20px; font-weight: 400; color: var(--ink); }
.acc-btn .pm { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .25s, background .2s; }
.acc-btn .pm svg { width: 16px; height: 16px; }
.acc-btn[aria-expanded="true"] .pm { transform: rotate(45deg); background: var(--brand); border-color: var(--accent); color: #fff; }
.acc-panel { overflow: hidden; }
.acc-panel[hidden] { display: none; }
.acc-panel > div { padding: 0 0 28px; max-width: 820px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field .req { color: var(--accent); }
.field .err { font-size: 13px; color: #c62828; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #c62828; }
.field.invalid .err { display: block; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: 12px; font-size: 15px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--ok-bg); color: var(--ok-fg); }
.form-status.warn { background: var(--warn-bg); color: var(--warn-fg); }
.office-list { display: grid; gap: 20px; margin-top: 40px; }
.office { border-radius: var(--radius); overflow: hidden; background: var(--cool); }
.office .o-body { padding: 24px; display: flex; gap: 16px; }
.office .o-body b { display: block; font-weight: 500; font-size: 18px; margin-bottom: 6px; }
.office .o-body span { font-size: 15px; color: var(--body); line-height: 1.55; font-weight: 400; }
.office iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(.3); }

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #100c0d;
  --surface: #1b1516;
  --surface-glass: rgba(27, 21, 22, .94);
  --ink: #f6f1ef;
  --body: #d2c7c6;
  --muted: #a8999a;
  --soft: #a8999a;
  --line: #33292b;
  --warm: #150f10;
  --cool: #181213;
  --navy: #1f0d11;
  --navy-2: #2a1117;
  --brand: #9b2a3a;
  --brand-600: #b23447;
  --brand-50: rgba(178, 52, 71, .18);
  --gold: #d9b45f;
  --gold-ink: #d9b45f;
  --accent: #eaa2ad;
  --logo: #eaa2ad;
  --input-line: #43373a;
  --brand-line: #6a2d37;
  --marquee: #7d6e70;
  --ok-bg: rgba(22, 196, 127, .14); --ok-fg: #5fe0a8;
  --warn-bg: rgba(255, 176, 32, .14); --warn-fg: #ffc861;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, .7);
}
[data-theme="dark"] .site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0, 0, 0, .8); }
[data-theme="dark"] .announce { border-bottom: 1px solid var(--line); }
[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
[data-theme="dark"] .hero-orb { background: radial-gradient(circle at 30% 30%, rgba(217, 180, 95, .08), rgba(155, 42, 58, .10) 45%, transparent 70%); }
[data-theme="dark"] .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eaa2ad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
[data-theme="dark"] .office iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.2) contrast(.9); }
[data-theme="dark"] .card-media img, [data-theme="dark"] .split-media img, [data-theme="dark"] .industry-banner img { filter: brightness(.9); }
[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #8a2232, #4a0f19); }
[data-theme="dark"] .card { border-color: var(--line); }
[data-theme="dark"] .bg-cool .pillar, [data-theme="dark"] .bg-warm .feature-card, [data-theme="dark"] .bg-cool .feature-card { border: 1px solid var(--line); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-menu .nav-link { padding: 10px 10px; }
  .nav-cta .btn-outline { display: none; }
  .values { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .utility { display: none; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .nav-toggle { display: inline-flex; }
  .nav { gap: 12px; }
  .lang-btn { display: inline-grid; margin-left: auto; }
  .nav-cta { display: none; }
  .nav-menu {
    position: fixed; inset: var(--menu-top, var(--header-h)) 0 0 0; background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 16px var(--gutter) 32px; gap: 0; overflow-y: auto;
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-open .nav-menu { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 18px; border-radius: 0; }
  .mega { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 16px; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-item.open .mega { display: grid; }
  .mega-feature { grid-column: auto; }
  .nav-mobile-cta { display: grid !important; gap: 12px; margin-top: 24px; border: 0 !important; }
  .hero-grid, .page-hero-grid, .split, .quote-block, .tools-grid, .contact-grid, .industry-head, .cta-band .container, .guide-layout { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cta-band .actions { justify-content: flex-start; }
  .grid-3, .pillars { grid-template-columns: 1fr 1fr; }
  .grid-4, .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .toc { position: static; display: none; }
  .model-card { grid-template-columns: 1fr; }
  .model-card .m-media { min-height: 220px; }
  .float-card.fc-1 { left: 12px; }
  .float-card.fc-2 { right: 12px; }
}
@media (min-width: 1025px) { .nav-mobile-cta { display: none !important; } }
@media (max-width: 640px) {
  p { font-size: 17px; }
  .grid-3, .grid-2, .grid-4, .pillars, .values, .form-grid { grid-template-columns: 1fr; }
  .phase-head span { white-space: normal; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 12px 8px 0; }
  .stat + .stat { padding-left: 16px; }
  .carousel-track { grid-auto-columns: 88%; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .fx-row { grid-template-columns: 1fr; }
  .fx-swap { justify-self: center; transform: rotate(90deg); }
  .hero-actions .btn, .cta-band .btn { flex: 1 1 100%; }
  .float-card { min-width: 0; font-size: 12px; padding: 10px 12px; }
  .float-card.fc-2 { display: none; }
  .industry-banner { aspect-ratio: 4 / 3; }
  .step { padding-left: 60px; }
  .step::before { width: 40px; height: 40px; font-size: 13px; }
  .step::after { left: 19px; top: 48px; }
  .tabs-list { display: flex; border-radius: 16px; }
  .tab-btn { flex: 1 1 auto; }
  .announce .container { padding-right: 44px; font-size: 13px; }
  .announce .container > span { display: none; }
  .value { min-height: 0; }
  .clock-row .time { font-size: 24px; }
}
