/* ==========================================================================
   菲德尔动力 / felddynamics — site stylesheet (forked from the Night Voyager site)
   Mobile-first. Breakpoints: 600px (large phone), 768px (tablet), 1024px (desktop)
   ========================================================================== */

:root {
  /* felddynamics: blue-black, from the logo (#0B1F3A navy, #00C2FF cyan) */
  --navy: #0b1f3a;
  --navy-2: #102c52;
  --navy-3: #0f4c81;
  --black: #060d18;
  --cyan: #00c2ff;          /* accent on dark grounds and button fills */
  --accent: #0077b6;        /* accent text on white (contrast >= 4.5:1) */
  --accent-dark: #005f91;
  --ink: #111827;
  --text: #2a3243;
  --muted: #5d6677;
  --line: #e1e6ee;
  --soft: #f3f5f9;
  --white: #fff;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 26, 54, .05), 0 10px 30px rgba(10, 26, 54, .07);
  --shadow-lg: 0 2px 4px rgba(10, 26, 54, .06), 0 20px 50px rgba(10, 26, 54, .12);

  --header-h: 60px;
  --gutter: 20px;
  --maxw: 1200px;
  --mobile-bar-h: 60px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Per-language font stacks so CJK glyphs use the correct regional forms */
:lang(zh) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif; }
:lang(en) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
[lang] { font-family: var(--font); }

@media (min-width: 1024px) {
  :root { --header-h: 72px; --gutter: 32px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(ja) body, body:lang(ja) { line-break: strict; }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; letter-spacing: 0; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: .01em; }
p { margin: 0 0 1em; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.container--narrow { max-width: 820px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--cyan); color: #04121f; }
.btn--primary:hover { background: #5fd9ff; color: #04121f; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--lg { min-height: 52px; padding: 12px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy-3); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-back:hover .icon { transform: translateX(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(10, 26, 54, .05); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; margin-right: auto; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 16px; font-weight: 700; white-space: nowrap; }
.brand-text small { font-size: 10px; letter-spacing: .14em; color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (min-width: 1024px) {
  .logo-mark { width: 44px; height: 44px; }
  .brand-text strong { font-size: 18px; }
}

.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .nav-desktop ul { display: flex; gap: 4px; }
  .nav-desktop a {
    position: relative; display: block; padding: 8px 14px; border-radius: 8px;
    color: var(--text); font-weight: 500; font-size: 15px; white-space: nowrap;
  }
  .nav-desktop a:hover { color: var(--ink); background: var(--soft); }
  .nav-desktop a[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .nav-desktop a[aria-current="page"]::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px;
  }
}

.header-actions { display: flex; align-items: center; gap: 4px; }

/* language dropdown */
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
  border-radius: 999px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--text);
  user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--soft); }
.lang-menu .icon-chevron { width: 16px; height: 16px; transition: transform .2s; }
.lang-menu[open] .icon-chevron { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lang-menu li a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--text); font-size: 15px; }
.lang-menu li a:hover { background: var(--soft); color: var(--ink); }
.lang-menu li a[aria-current="true"] { color: var(--accent); font-weight: 700; }
@media (max-width: 599px) {
  .lang-current { display: none; }
  .lang-menu .icon-chevron { display: none; }
}

/* hamburger */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; color: var(--ink);
}
.nav-toggle:hover { background: var(--soft); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* mobile menu panel */
.mobile-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  background: #fff; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  animation: slideDown .22s ease-out;
}
.mobile-nav[hidden] { display: none; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-nav-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; font-size: 18px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav-links a[aria-current="page"] { color: var(--accent); }
.mobile-nav-langs { margin-top: 28px; }
.mobile-nav-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; margin-bottom: 12px; }
.mobile-nav-label .icon { width: 16px; height: 16px; }
.mobile-nav-langs ul { display: flex; flex-wrap: wrap; gap: 8px; }
html.nav-open, html.nav-open body { overflow: hidden; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* chips (language + filters) */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--navy-3); color: var(--ink); }
.chip[aria-current="true"], .chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip span { font-size: 12px; opacity: .7; font-weight: 500; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(18, 70, 130, .85), transparent 65%),
    linear-gradient(165deg, #0b1f3a 0%, #0a1a31 55%, #060d18 100%);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 20%, transparent 95%);
}
.hero-art {
  position: absolute; z-index: -1; color: #5fb8ff; opacity: .22;
  right: -40%; top: -10%; width: 130%; height: 120%;
  pointer-events: none;
}
.hero-inner { padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: #fff; font-size: clamp(30px, 7.6vw, 58px); line-height: 1.18; max-width: 15em; margin-bottom: 20px; }
:lang(en) .hero h1 { max-width: 13em; }
.hero-sub { font-size: clamp(16px, 2.4vw, 19px); color: rgba(255, 255, 255, .78); max-width: 38em; margin-bottom: 32px; }
.hero .btn-row .btn { flex: 1 1 auto; }
@media (min-width: 600px) { .hero .btn-row .btn { flex: 0 0 auto; } }
@media (min-width: 768px) {
  .hero-inner { padding-top: 110px; padding-bottom: 120px; }
  .hero-art { right: -12%; top: -5%; width: 75%; height: 115%; opacity: .3; }
}
@media (min-width: 1024px) {
  .hero-inner { padding-top: 140px; padding-bottom: 150px; }
  .hero-art { right: -4%; width: 60%; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
:lang(zh) .eyebrow, :lang(ja) .eyebrow { letter-spacing: .08em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--cyan); }

/* ---------- Client band ---------- */
.client-band { background: var(--navy); color: rgba(255, 255, 255, .8); border-top: 1px solid rgba(255, 255, 255, .08); }
.client-inner { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; padding-bottom: 24px; }
.client-name { display: flex; flex-direction: column; gap: 2px; }
.client-name .label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 600; }
.client-name strong { color: #fff; font-size: 20px; }
.client-inner p { margin: 0; font-size: 15px; }
@media (min-width: 768px) {
  .client-inner { flex-direction: row; align-items: center; gap: 40px; padding-top: 28px; padding-bottom: 28px; }
  .client-name { flex: none; padding-right: 40px; border-right: 1px solid rgba(255, 255, 255, .15); }
}

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(28px, 7vw, 44px); line-height: 1.1; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (min-width: 768px) { .stat { padding: 40px 16px; } .stat span { font-size: 15px; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0 64px; }
.section--soft { background: var(--soft); }
@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .section--tight { padding: 56px 0 96px; }
}
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 5vw, 38px); }
.section-head .lead { color: var(--muted); font-size: 17px; margin: 0; }
.section-more { margin: 32px 0 0; }

/* ---------- Capabilities (home cards) ---------- */
.cap-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cap-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.cap-card {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cap-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cap-card h3 { font-size: 18px; margin-top: 16px; }
.cap-card p { color: var(--muted); font-size: 15px; margin: 0; }
.cap-icon {
  width: 52px; height: 52px; padding: 12px; border-radius: 12px;
  background: linear-gradient(135deg, #eef2fb, #e3e9f7); color: var(--navy-3); stroke-width: 1.5;
}

/* ---------- Project cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
/* home + project list: 2x2 on tablet/small desktop, 4 across on wide screens */
@media (min-width: 1024px) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card[hidden] { display: none; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card-link:hover { color: inherit; }
.card-media { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px 22px 22px; }
.card-title { font-size: 18px; margin: 12px 0 8px; }
.card-text { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--navy-3); }
.card-more .icon { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .card-more { color: var(--accent); }
.card:hover .card-more .icon { transform: translateX(3px); }
/* on small screens: horizontal cards are denser in portrait — keep vertical but tighter */
@media (max-width: 599px) {
  .card-body { padding: 18px 18px 20px; }
}

.tag {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  background: #eef2fb; color: var(--navy-3);
}
.tag--surface { background: #fff1e6; color: #b04a00; }
.tag--inspection { background: #e8f4ff; color: #0a5aa8; }
.tag--welding { background: #ffecec; color: #b3141a; }

/* image placeholder (until real photos are added) */
.ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%; min-height: 100%;
  color: rgba(255, 255, 255, .9);
  background:
    radial-gradient(circle at 75% 20%, rgba(255,255,255,.14), transparent 45%),
    linear-gradient(135deg, var(--navy-2), var(--navy));
  overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ph--surface { background: radial-gradient(circle at 75% 20%, rgba(255,180,120,.25), transparent 45%), linear-gradient(135deg, #1b2f57, #0b1f3a); }
.ph--welding { background: radial-gradient(circle at 75% 20%, rgba(255,90,90,.25), transparent 45%), linear-gradient(135deg, #1b2f57, #0b1f3a); }
.ph--inspection { background: radial-gradient(circle at 75% 20%, rgba(100,180,255,.28), transparent 45%), linear-gradient(135deg, #1b2f57, #0b1f3a); }
.ph-icon { position: relative; width: 64px; height: 64px; stroke-width: 1.1; }
.ph-note { position: relative; font-size: 13px; letter-spacing: .05em; color: rgba(255,255,255,.65); }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  position: relative; padding: 22px 22px 22px 76px; border-radius: var(--radius); background: var(--soft);
}
.step-no {
  position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.section--soft .step { background: #fff; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .step { padding: 24px 20px; }
  .step-no { position: static; margin-bottom: 16px; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 44px; left: 72px; right: -8px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: rgba(255, 255, 255, .8);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 40px solid rgba(0, 194, 255, .12);
}
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 4.5vw, 34px); }
.cta-band p { margin: 0; font-size: 17px; }
.cta-band .btn { align-self: stretch; }
@media (min-width: 768px) {
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
  .cta-band .btn { align-self: center; flex: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  color: rgba(255, 255, 255, .8);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(28, 61, 120, .9), transparent 70%),
    linear-gradient(165deg, #0b1f3a, #0a1a31);
  padding: 36px 0 44px;
}
.page-hero h1 { color: #fff; font-size: clamp(26px, 6vw, 44px); max-width: 22em; margin-bottom: 12px; }
.page-hero .lead { font-size: clamp(16px, 2.2vw, 18px); margin: 0; max-width: 46em; }
.page-hero .tag { margin-bottom: 12px; }
.page-hero .eyebrow { color: var(--cyan); }
@media (min-width: 768px) { .page-hero { padding: 56px 0 72px; } }

.breadcrumb { margin-bottom: 20px; font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .6); }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.breadcrumb a { color: rgba(255, 255, 255, .75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li[aria-current] { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ---------- Capabilities page ---------- */
.cap-rows { display: grid; gap: 20px; }
.cap-row {
  display: grid; gap: 16px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
}
.cap-row-icon { display: flex; align-items: center; justify-content: space-between; }
.cap-row-no { font-size: 40px; font-weight: 800; color: var(--line); line-height: 1; letter-spacing: -.03em; }
.cap-row h2 { font-size: 22px; }
.cap-row p { color: var(--muted); }
.cap-row .list-check { margin-bottom: 16px; }
@media (min-width: 768px) {
  .cap-row { grid-template-columns: 120px 1fr; gap: 32px; padding: 36px; }
  .cap-row-icon { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 20px; }
  .cap-row-no { font-size: 52px; }
}

.list-check { display: grid; gap: 8px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-check .icon { width: 18px; height: 18px; color: var(--accent); margin-top: .3em; stroke-width: 2.2; }

/* ---------- Projects page ---------- */
.filters {
  position: relative; display: flex; gap: 8px; margin-bottom: 28px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter);
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
}
.filters::-webkit-scrollbar { display: none; }
.filters .chip { scroll-snap-align: start; }
@media (min-width: 768px) { .filters { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding: 0; } }

/* ---------- Project detail ---------- */
.project-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .project-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; } }
.project-ph { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }

.gallery {
  display: flex; gap: 12px; margin: 0 calc(-1 * var(--gutter)) 32px; padding: 0 var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 86%; margin: 0; scroll-snap-align: center; }
.gallery-item a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-item figcaption { font-size: 14px; color: var(--muted); padding: 8px 2px 0; }
.gallery:has(.gallery-item:only-child) .gallery-item { flex-basis: 100%; }
@media (min-width: 768px) {
  .gallery { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0 0 40px; padding: 0; }
  .gallery-item:first-child { grid-column: 1 / -1; }
  .gallery-item:first-child a { aspect-ratio: 16 / 9; }
}

.prose { font-size: 16px; }
.prose h2 { font-size: 22px; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose p { color: var(--text); }
@media (min-width: 768px) { .prose { font-size: 17px; } }
.body-figure { margin: 24px 0; }
.body-figure img { border-radius: var(--radius); }
.body-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.highlights { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .highlights { grid-template-columns: 1fr 1fr; } }
.highlights li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: var(--soft); font-weight: 500; color: var(--ink); line-height: 1.5; }
.highlights .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 2.6; }

.specs, .facts, .profile { margin: 0; }
.specs div, .facts div, .profile div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt, .facts dt, .profile dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.specs dd, .facts dd, .profile dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (min-width: 600px) {
  .specs div, .profile div { grid-template-columns: 180px 1fr; gap: 16px; }
  .specs dt, .profile dt { font-size: 15px; }
}

.project-aside { display: grid; gap: 20px; }
@media (min-width: 1024px) { .project-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.facts-box { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.facts-box h2, .aside-cta h2 { font-size: 17px; margin-bottom: 4px; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-cta { padding: 24px; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .8); }
.aside-cta h2 { color: #fff; }
.aside-cta p { font-size: 15px; }
.link-back { justify-self: start; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; } }
.profile-box { padding: 24px; border-radius: var(--radius); background: var(--soft); align-self: start; }
.profile-box h2 { font-size: 20px; }
.profile div:last-child { border-bottom: 0; }
@media (min-width: 600px) { .profile div { grid-template-columns: 110px 1fr; } }
.value-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card { padding: 28px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.value-no { display: block; font-size: 14px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.value-card h3 { font-size: 22px; }
.value-card p { margin: 0; color: var(--muted); font-size: 15px; }

.timeline { position: relative; display: grid; gap: 20px; padding-left: 24px; border-left: 2px solid var(--line); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -32px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.tl-year { display: block; font-weight: 800; color: var(--navy); font-size: 20px; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.contact-card, .tips-card { padding: 28px 24px; border-radius: var(--radius); }
.contact-card { background: var(--navy); color: rgba(255, 255, 255, .8); }
.contact-card h2 { color: #fff; font-size: 20px; margin-bottom: 20px; }
.tips-card { background: var(--soft); }
.tips-card h2 { font-size: 18px; }
@media (min-width: 768px) { .contact-card, .tips-card { padding: 36px; } }

.contact-list { display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .label { display: block; font-size: 12px; letter-spacing: .06em; opacity: .65; }
.contact-list .value { display: block; word-break: break-word; }
.contact-list--large { gap: 18px; }
.contact-list--large .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; }
.contact-list--large .value { font-size: 18px; font-weight: 600; color: #fff; }
.contact-list--large a { color: #fff; }
.contact-list--large a:hover { color: #ff8a8d; }
.qr { margin: 24px 0 0; display: inline-block; text-align: center; font-size: 13px; }
.qr img { width: 140px; height: 140px; border-radius: 8px; background: #fff; padding: 6px; }

.contact-form { margin-top: 32px; padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 16px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy-3); }
.contact-form .btn { justify-self: start; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 16px; max-width: 860px; }
.news-item { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.news-item time { font-size: 13px; color: var(--muted); font-weight: 600; }
.news-item h2 { font-size: 20px; margin: 6px 0 8px; }
.news-item h2 a { color: var(--ink); }
.news-item h2 a:hover { color: var(--accent); }
.news-item p { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.nf-code { font-size: clamp(72px, 20vw, 140px); font-weight: 800; color: var(--line); line-height: 1; margin-bottom: 24px; }
.nf-grid { display: grid; gap: 28px; max-width: 900px; margin: 0 auto; }
@media (min-width: 768px) { .nf-grid { grid-template-columns: repeat(3, 1fr); } }
.nf-row h2 { font-size: 20px; }
.nf-row p { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: #07122a; color: rgba(255, 255, 255, .62); font-size: 15px; padding-top: 56px; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; } }
.brand--footer { color: #fff; margin-bottom: 16px; }
.brand--footer .logo-mark { width: 48px; height: 48px; padding: 6px; background: #fff; border-radius: 10px; }
.brand--footer:hover { color: #fff; }
.brand--footer .brand-text small { color: rgba(255, 255, 255, .5); }
.footer-brand p { max-width: 26em; margin: 0; }
.footer-title { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.footer-links a { color: rgba(255, 255, 255, .7); display: inline-block; padding: 4px 0; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: #fff; }
.contact-list--footer { gap: 12px; }
.contact-list--footer .icon { width: 18px; height: 18px; margin-top: 4px; color: rgba(255, 255, 255, .5); }
.contact-list--footer a { color: rgba(255, 255, 255, .85); }
.contact-list--footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 8px; padding-top: 20px;
  padding-bottom: calc(24px + var(--mobile-bar-h) + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px;
}
.footer-bottom p { margin: 0; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-meta a { color: rgba(255, 255, 255, .62); }
.footer-meta a:hover { color: #fff; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; padding-bottom: 28px; } }

/* ---------- Mobile quick-action bar (portrait phones) ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 8px; padding: 8px max(12px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(0); transition: transform .25s;
}
.mobile-bar.is-hidden { transform: translateY(110%); }
.mobile-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; color: var(--ink);
}
.mobile-bar a.is-primary { background: var(--cyan); border-color: var(--cyan); color: #04121f; }
.mobile-bar .icon { width: 18px; height: 18px; }
html.nav-open .mobile-bar { display: none; }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 10, 22, .94); padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  border: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; color: #fff;
}
.lightbox[hidden] { display: none; }
.lightbox::backdrop { background: rgba(5, 10, 22, .94); }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100vw; max-height: 82vh; object-fit: contain; }
.lightbox figcaption { padding: 12px 20px; font-size: 14px; color: rgba(255, 255, 255, .8); text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: calc(24px + env(safe-area-inset-top)); left: 20px; font-size: 14px; color: rgba(255,255,255,.7); }

/* ---------- Root language chooser ---------- */
.page-root { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(165deg, #0b1f3a, #0a1a31); color: #fff; }
.root { text-align: center; padding: 40px 20px; width: 100%; max-width: 640px; }
.root-logo { width: 88px; height: 88px; margin: 0 auto 24px; background: #fff; border-radius: 20px; padding: 14px; }
.root h1 { color: #fff; font-size: 24px; margin-bottom: 32px; }
.root h1 small { display: block; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.6); margin-top: 6px; }
.root-langs { display: grid; gap: 12px; }
@media (min-width: 600px) { .root-langs { grid-template-columns: repeat(3, 1fr); } }
.root-lang { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); color: #fff; }
.root-lang:hover { background: rgba(255,255,255,.14); color: #fff; }
.root-lang strong { font-size: 18px; }
.root-lang span { font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-bar, .cta-band, .site-footer, .hero-art { display: none !important; }
  .hero, .page-hero { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}


/* ==========================================================================
   felddynamics additions
   ========================================================================== */
.hero-art { color: #5fb8ff; }
.timeline li::before { border-color: var(--cyan); }

/* key facts under the hero */
.facts-band { background: var(--black); color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.08); }
.facts-grid { display: grid; grid-template-columns: 1fr; }
.fact { padding: 22px 0; }
.fact + .fact { border-top: 1px solid rgba(255,255,255,.1); }
.fact strong { display: block; color: #fff; font-size: 18px; margin-bottom: 4px; }
.fact strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); margin-right: 10px; vertical-align: middle; }
.fact span { font-size: 15px; }
@media (min-width: 768px) {
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .fact { padding: 32px 24px; }
  .fact:first-child { padding-left: 0; }
  .fact + .fact { border-top: 0; border-left: 1px solid rgba(255,255,255,.1); }
}

/* industries */
.ind-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ind-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.ind-card { padding: 28px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); border-top: 3px solid var(--navy); }
.ind-card h3 { font-size: 20px; margin-top: 14px; }
.ind-card > p { color: var(--muted); font-size: 15px; }
.ind-card .list-check { margin: 0; font-size: 15px; }
.ind-grid--page .ind-card { box-shadow: var(--shadow); }

/* dark section (online tools on home) */
.section--dark { background: linear-gradient(165deg, var(--navy) 0%, var(--black) 100%); color: rgba(255,255,255,.78); }
.section--dark .section-head h2 { color: #fff; }
.section--dark .section-head .lead { color: rgba(255,255,255,.7); }
.section--dark .eyebrow { color: var(--cyan); }

/* tool cards */
.tool-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
.tool-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  padding: 28px; border-radius: 16px; color: rgba(255,255,255,.8);
  background: linear-gradient(140deg, #103059, #0b1f3a); border: 1px solid #24507f;
  transition: border-color .2s, transform .2s;
}
.tool-card:hover { border-color: var(--cyan); color: rgba(255,255,255,.9); transform: translateY(-2px); }
.tool-mark { width: 64px; height: 64px; }
.tool-mark--icon { padding: 12px; border-radius: 50%; background: var(--navy); border: 2px solid var(--cyan); color: var(--cyan); stroke-width: 1.8; }
.tool-name { color: #fff; font-size: 22px; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tool-body p { margin: 0 0 12px; font-size: 15px; }
.tool-body .list-check { margin: 0 0 14px; font-size: 15px; }
.tool-body .list-check .icon { color: var(--cyan); }
.tool-url { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 600; font-size: 15px; }
.tool-url .icon { width: 16px; height: 16px; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; letter-spacing: 0; }
.badge--free { background: #0e3d2c; color: #7de3b4; }
.badge--login { background: #23305a; color: #b9c3f2; }
@media (max-width: 599px) { .tool-card { grid-template-columns: 1fr; padding: 22px; } }

/* parent brand card: plain link, no hierarchy */
.parent-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.section--soft .parent-card { background: #fff; }
.parent-card:hover { border-color: var(--navy-3); box-shadow: var(--shadow); color: var(--text); }
.parent-card h2 { font-size: 22px; margin-bottom: 6px; }
.parent-card p { margin: 0; color: var(--muted); max-width: 46em; }
.btn--ghost-dark { border-color: var(--navy); color: var(--navy); }
.btn--ghost-dark .icon { width: 16px; height: 16px; }
.parent-card:hover .btn--ghost-dark { background: var(--navy); color: #fff; }
