@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #003087;
  --primary-hover: #00266b;
  /* ── X5 fallback (hex) ── */
  --paper: #f5f7fa;
  --paper-alt: #eef1f5;
  --paper-warm: #f5f0ea;
  --ink: #3d4045;
  --ash: #7e8288;
  --line: #dbdee2;
  --line-soft: #e6e8eb;
  --accent-blue: #2d7ff9;
  --accent-warm: #b8965a;
  --glow-subtle: 0 0 0 1px rgba(45, 127, 249, 0.15);
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 32px;
  --sp-lg: 64px;
  --sp-xl: 128px;
  --rd-sm: 4px;
  --rd-md: 8px;
  --rd-lg: 16px;
  --max-w: 1200px;
  --body-w: 70ch;
  --shadow-sm: 0 2px 8px rgba(0, 48, 135, 0.04);
  --shadow: 0 4px 24px rgba(0, 48, 135, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 48, 135, 0.10);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.25s;
  --duration-med: 0.45s;
  --duration-slow: 0.7s;
}
@supports (color: oklch(50% 0.1 200)) {
  :root {
    --paper: oklch(98% 0.003 260);
    --paper-alt: oklch(96% 0.005 260);
    --paper-warm: oklch(96% 0.005 75);
    --ink: oklch(25% 0.008 260);
    --ash: oklch(55% 0.008 260);
    --line: oklch(88% 0.005 260);
    --line-soft: oklch(92% 0.004 260);
    --accent-blue: oklch(58% 0.25 230);
    --accent-warm: oklch(60% 0.06 70);
    --glow-subtle: 0 0 0 1px oklch(58% 0.25 230 / 0.15);
  }
}
/* ===== Unified Card System ===== */
.card {
  background: #fff;
  border-radius: var(--rd-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: var(--sp-md); }
.card-header {
  padding: var(--sp-md) var(--sp-md) 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.card-subtitle {
  font-size: 0.85rem;
  color: var(--ash);
  margin-bottom: 0;
}

/* ── Forces ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

@view-transition { navigation: auto; }

/* View transition animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth crossfade for page navigations */
::view-transition-old(root) {
  animation: 0.25s ease-out both fadeOut;
}
::view-transition-new(root) {
  animation: 0.4s ease-out 0.1s both fadeInUp;
}
@keyframes fadeOut {
  to { opacity: 0; }
}

/* View transition animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth crossfade for page navigations */
::view-transition-old(root) {
  animation: 0.25s ease-out both fadeOut;
}
::view-transition-new(root) {
  animation: 0.4s ease-out 0.1s both fadeInUp;
}
@keyframes fadeOut {
  to { opacity: 0; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ash); }

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; }

.display {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.headline {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.title-sm {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
}

.body-text {
  max-width: var(--body-w);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-md); }
.section { padding: var(--sp-xl) 0; }
.section-alt { background: var(--paper-alt); position: relative; overflow: hidden; }
.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 100% 0%, rgba(45, 127, 249, 0.03) 0%, transparent 70%);
  pointer-events: none;
}
.section-alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 0% 100%, rgba(184, 150, 90, 0.03) 0%, transparent 70%);
  pointer-events: none;
}
.section-compact { padding: calc(var(--sp-xl) * 0.75) 0; }
.section-spacious { padding: calc(var(--sp-xl) * 1.2) 0; }

/* Section divider */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.15;
  transform: scaleX(0);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}
.section-divider.visible { transform: scaleX(1); }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--duration-med) ease, background var(--duration-med) ease;
}
.header.scrolled { box-shadow: var(--shadow); background: rgba(255,255,255,0.98); }

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: auto;
  padding: 4px 10px 4px 4px;
  border-radius: var(--rd-sm);
  transition: background var(--duration-fast) ease, transform var(--duration-med) var(--ease-out-quart), box-shadow var(--duration-fast) ease;
}
.header-logo:hover {
  background: rgba(45, 127, 249, 0.04);
  transform: scale(1.02);
  box-shadow: 0 2px 12px rgba(0, 48, 135, 0.06);
}
.header-logo-img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 3px;
  transition: filter var(--duration-fast) ease, transform var(--duration-slow) var(--ease-out-quart);
}
.header-logo:hover .header-logo-img {
  filter: brightness(1.08) saturate(1.12);
  transform: scale(1.04) rotate(-1deg);
}
.header-logo-img:not([src=""]) {
  animation: logoReveal 0.8s var(--ease-out-expo) both;
}

@keyframes logoReveal {
  0% { opacity: 0; transform: scale(0.92) translateY(-4px); filter: saturate(0) brightness(1.2); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: saturate(1) brightness(1); }
}

/* Navigation with dropdowns */

.nav-item {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ash);
  padding: 8px 16px;
  border-radius: var(--rd-sm);
  cursor: pointer;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.nav-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  border-radius: 1px;
  background: var(--primary);
  transition: transform var(--duration-med) var(--ease-out-quart);
}
.nav-item:hover::before,
.nav-item.active::before {
  transform: translateX(-50%) scaleX(1);
}
.nav-item:hover,
.nav-item.active {
  color: var(--primary);
  background: rgba(45, 127, 249, 0.06);
}
.nav-item > a {
  color: inherit;
  text-decoration: none;
  display: inline;
}
.nav-item.has-dropdown::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}
.nav-item.has-dropdown:hover::after { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border-radius: var(--rd-md);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out-quart), visibility 0s var(--duration-fast);
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}
.dropdown a:hover {
  background: rgba(45, 127, 249, 0.06);
  color: var(--primary);
}

/* Dropdown nested items */
.dropdown .dropdown-sub {
  padding-left: 20px;
}
.dropdown .dropdown-sub a {
  font-size: 0.8125rem;
  position: relative;
}
.dropdown .dropdown-sub a::before {
  content: '└ ';
  opacity: 0.4;
}
.dropdown .dropdown-label {
  display: block;
  padding: 10px 16px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
}

.nav-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; background: none; border: none; padding: 12px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: all 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ===== Header Search ===== */
.header-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duration-fast) ease;
}
.header-search:hover {
  background: rgba(45, 127, 249, 0.08);
}
.header-search:active {
  background: rgba(45, 127, 249, 0.14);
}
.header-search-icon {
  font-size: 1.125rem;
  line-height: 1;
  opacity: 0.5;
  flex-shrink: 0;
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.header-search:hover .header-search-icon {
  opacity: 0.85;
  transform: scale(1.12);
}
.header-search-input {
  display: none;
}

/* Header layout with search */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: flex-end;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 20px;
  flex-shrink: 0;
  position: relative;
}
.header-actions::before {
  content: '';
  display: block;
  width: 1px;
  height: 22px;
  background: var(--line);
  margin-right: 10px;
  opacity: 0.5;
  flex-shrink: 0;
}
.header-nav .nav-item {
  white-space: nowrap;
}

.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background: rgba(0,0,0,0.78);
  overflow-y: auto;
}
.search-overlay.open {
  display: block;
}

.search-panel {
  max-width: 560px;
  margin: 15vh auto 0;
  padding: 0 16px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 0 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.search-input-wrap:focus-within {
  box-shadow: 0 4px 32px rgba(0,0,0,0.2);
}
.search-input {
  flex: 1;
  border: none;
  background: none;
  padding: 14px 0;
  font-size: 16px;
  color: #333;
  outline: none;
  font-family: 'Inter', sans-serif;
}
.search-input::placeholder {
  color: #999;
}
.search-close {
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  border-radius: 8px;
  transition: background 0.2s;
}
.search-close:hover {
  background: #f0f0f0;
  color: #333;
}

.search-results {
  margin-top: 8px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  max-height: 55vh;
  overflow-y: auto;
}
.search-results:empty {
  display: none;
}
.search-result-item {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: #f5f7fa;
}
.search-result-item .result-tag {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 4px;
  background: #eef1f5;
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 4px;
}
.search-result-item .result-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 2px;
  line-height: 1.4;
}
.search-result-item .result-excerpt {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-item .result-meta {
  font-size: 0.8125rem;
  color: #aaa;
  margin-top: 4px;
}
.search-loading,
.search-no-results,
.search-error {
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  color: #999;
}

@media (max-width: 768px) {
  .search-results { max-height: 40vh; }
  .header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-left: 0;
  }
  .header-actions .header-search { order: 2; }
  .nav-toggle { order: 1; }
  .header-search {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(45, 127, 249, 0.04);
  }
  .header-search:hover {
    background: rgba(45, 127, 249, 0.1);
  }
  .header-search:active {
    background: rgba(45, 127, 249, 0.15);
    transform: scale(0.93);
  }
  .header-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
  }
  .header-search-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
  }
  .header-actions::before {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-search {
    display: none;
  }
  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: var(--sp-sm);
    gap: 2px;
    box-shadow: var(--shadow-lg);
  }
  .header-nav.open { display: flex; overflow-y: auto; max-height: calc(100vh - 64px); }
  .nav-item { width: 100%; padding: 14px var(--sp-sm); }
  .nav-item.has-dropdown::after {
    border-left-width: 8px;
    border-right-width: 8px;
    border-top-width: 10px;
    margin-left: auto;
    vertical-align: middle;
  }
  .nav-item.has-dropdown.open::after {
    transform: rotate(180deg);
  }
  .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; padding-left: var(--sp-sm); display: none; }
  .dropdown.open { display: block; }
}

/* Section Header */
.section-header { margin-bottom: var(--sp-lg); }

/* ── 3-level hierarchy inside sections ──
 * L1 = .label   — section main name (large, bold, primary color)
 * L2 = .headline — section subtitle    (medium, gray)
 * L3 = .section-subhead — sub-section  (smaller, with blue bar indicator)
 */
.section-header .label {
  display: inline-block;
  margin-bottom: var(--sp-sm);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  padding-left: 18px;
  position: relative;
  letter-spacing: normal;
  text-transform: none;
}
.section-header .label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.2em;
  background: var(--accent-blue);
  border-radius: 2px;
  opacity: 0.5;
}
.section-header .headline {
  max-width: 600px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  color: var(--ash);
  line-height: 1.4;
}
.section-header .body-text { margin-top: var(--sp-sm); color: var(--ash); }

/* Product Row */
.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
  margin-bottom: var(--sp-xl);
}
.product-row:last-child { margin-bottom: 0; }
.product-row.reversed .product-image { order: 2; }
.product-row.reversed .product-info { order: 1; }
.product-image {
  border-radius: var(--rd-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--line);
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-quart);
}
.product-image:hover img { transform: scale(1.05); }
.product-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  line-height: 1.2;
}
.product-info p {
  font-size: 0.9375rem;
  color: var(--ash);
  line-height: 1.6;
  margin-bottom: var(--sp-md);
}

.product-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration-fast) ease;
  position: relative;
}
.product-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-blue);
  transition: width var(--duration-med) var(--ease-out-expo);
}
.product-link:hover { gap: 8px; }
.product-link:hover::after { width: 100%; }

/* About Stats */
.about-intro { max-width: var(--body-w); margin-bottom: var(--sp-lg); }
.about-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  max-width: var(--body-w);
}
.about-image-item {
  border-radius: var(--rd-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--line);
}
.about-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-quart);
}
.about-image-item:hover img { transform: scale(1.05); }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-md); }
.stat-item {
  padding: var(--sp-md);
  background: var(--paper-warm);
  border-radius: var(--rd-md);
  transition: transform var(--duration-med) var(--ease-out-quart), box-shadow var(--duration-med) ease;
  cursor: default;
}
.stat-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-item .stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--sp-xs);
}
.stat-item .stat-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat-item .stat-desc { font-size: 0.875rem; color: var(--ash); margin-top: 4px; }

/* News List */
.news-list { max-width: var(--body-w); }
.news-item {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-lg) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--duration-med) ease;
}
.news-item:first-child { padding-top: 0; }
.news-item:hover { padding-left: var(--sp-sm); }
.news-thumb {
  width: 160px;
  flex-shrink: 0;
  border-radius: var(--rd-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--line);
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-quart);
}
.news-item:hover .news-thumb img { transform: scale(1.06); }
.news-body { flex: 1; min-width: 0; }
.news-date {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(45, 127, 249, 0.08);
  padding: 2px 12px;
  border-radius: 20px;
  margin-bottom: var(--sp-xs);
}
.news-body h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--sp-xs); line-height: 1.3; }
.news-body h3 a { color: var(--ink); transition: color var(--duration-fast) ease; }
.news-body h3 a:hover { color: var(--primary); }
.news-excerpt {
  font-size: 0.9375rem;
  color: var(--ash);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .news-item { flex-direction: column; }
  .news-thumb { width: 100%; aspect-ratio: 4/3; }
  .news-item .news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--sp-lg) 0 var(--sp-md);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-lg);
}
.footer-brand .header-logo { margin-bottom: var(--sp-sm); display: inline-block; }
.footer-brand p { font-size: 0.875rem; color: var(--ash); max-width: 320px; line-height: 1.6; }
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--sp-sm);
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
  padding: 4px 0;
  transition: color var(--duration-fast) ease, padding-left var(--duration-fast) ease;
}
.footer-col a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-md) var(--sp-md) 0;
  border-top: 1px solid var(--line);
  margin-top: var(--sp-lg);
  text-align: center;
}
.footer-bottom p { font-size: 0.8125rem; color: var(--ash); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

/* ===== SUB-PAGE LAYOUTS ===== */

/* Page Header */
.page-header {
  padding: calc(64px + var(--sp-xl)) 0 calc(var(--sp-xl) * 0.6);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(245, 247, 250, 0.88) 0%, rgba(238, 241, 245, 0.82) 100%);
  pointer-events: none;
}
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .display { margin-bottom: var(--sp-sm); }
.page-header .body-text { max-width: var(--body-w); color: var(--ash); }

/* CTA Section */
.cta-section {
  text-align: center;
  padding: var(--sp-lg) 0;
  max-width: 600px;
  margin: 0 auto;
}
.cta-section p {
  margin: var(--sp-sm) auto var(--sp-md);
  color: var(--ash);
  font-size: 0.9375rem;
}

/* Section warm tint */
.section-warm { background: var(--paper-warm); }

/* Responsive sub-page layouts */
@media (max-width: 768px) {
  .content-block,
  .product-block {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }
  .content-block.reversed .content-image { order: unset; }
  .content-block.reversed .content-text { order: unset; }
  .product-block.reversed .product-image { order: unset; }
  .product-block.reversed .product-text { order: unset; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .values-list { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { position: static; }
  .page-header { padding: calc(64px + var(--sp-lg)) 0 var(--sp-md); }
  .section { padding: var(--sp-lg) 0; }
  .section-compact { padding: calc(var(--sp-lg) * 0.75) 0; }
  .section-spacious { padding: var(--sp-lg) 0; }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* Product Row mobile layout - FIXED */
@media (max-width: 768px) {
  .product-row { grid-template-columns: 1fr; gap: var(--sp-md); }
  .product-row.reversed .product-image { order: unset; }
  .product-row.reversed .product-info { order: unset; }
}

/* ===== ANIMATION SYSTEM ===== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slow) var(--ease-out-expo), transform var(--duration-slow) var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--duration-slow) var(--ease-out-expo);
}
.reveal-clip.visible { clip-path: inset(0 0 0 0); }

.stagger-children > .stagger-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-med) var(--ease-out-expo), transform var(--duration-med) var(--ease-out-expo);
}
.stagger-children.visible > .stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > .stagger-item:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > .stagger-item:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.visible > .stagger-item:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.visible > .stagger-item:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.visible > .stagger-item { opacity: 1; transform: translateY(0); }

.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform var(--duration-slow) var(--ease-out-quart); }
.img-zoom:hover img { transform: scale(1.06); }

.hover-lift { transition: transform var(--duration-med) var(--ease-out-quart), box-shadow var(--duration-med) ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.divider-line {
  width: 60px;
  height: 2px;
  background: var(--accent-blue);
  margin-top: var(--sp-sm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out-expo);
}
.divider-line.visible { transform: scaleX(1); }

.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--rd-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background var(--duration-fast) ease, transform var(--duration-med) var(--ease-out-quart), box-shadow var(--duration-med) ease;
}
.cta-button:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cta-button:active { transform: translateY(-1px); }

.hero-cta, .cta-button, .submit-btn { position: relative; overflow: hidden; }
.hero-cta .ripple-effect, .cta-button .ripple-effect, .submit-btn .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* Image lazy load fade */
img {
  transition: opacity 0.4s ease;
}
.img-loading { opacity: 0; }
.img-loaded { opacity: 1; }

/* Noise grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.5'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── R&D Grid ── */
.rd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-md); }
.rd-item {
  padding: var(--sp-md);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--rd-md);
  transition: transform var(--duration-med) var(--ease-out-quart), box-shadow var(--duration-med) ease, border-color var(--duration-fast) ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
a.rd-item {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.rd-item-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
  }
.rd-item-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rd-item h3, .rd-item p { position: relative; z-index: 1; }
.rd-item::before {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent-blue);
  border-radius: 2px;
  margin-bottom: var(--sp-sm);
  position: relative;
  z-index: 1;
}
.rd-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-blue); }
.rd-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  line-height: 1.3;
  transition: color var(--duration-fast) ease;
}
.rd-item:hover h3 { color: var(--primary); }
.rd-item p { font-size: 0.9375rem; color: var(--ash); line-height: 1.6; }

/* Mobile touch feedback */
@media (hover: none) {
  .nav-item:active,
  .rd-item:active,
  .stat-item:active,
  .cta-button:active,
  .product-link:active {
    transform: scale(0.97);
  }
}

/* Back to top button */
#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 48, 135, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.25s, background 0.25s;
}
#backToTop:hover {
  background: #00266b;
  box-shadow: 0 6px 24px rgba(0, 48, 135, 0.3);
  transform: translateY(-2px);
}
#backToTop:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 48, 135, 0.15);
}
#backToTop svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 480px) {
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  #backToTop svg {
    width: 20px;
    height: 20px;
  }
}