/* =========================================================
   Seam Việt Nam - giao diện website công khai
   ========================================================= */
:root {
  --ink: #0C1233;
  --ink-2: #2A3152;
  --muted: #5A6382;
  --brand: #2D1F9E;
  --brand-600: #3A2BC2;
  --brand-dark: #1B1470;
  --brand-50: #EFEEFC;
  --brand-100: #E0DDFA;
  --accent: #E04A33;
  --accent-50: #FDEDEA;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FC;
  --line: #E4E7F2;
  --line-2: #D6DAEA;
  --navy: #0B1030;
  --navy-2: #141B4A;
  --dark-text: #E8EAF7;
  --dark-muted: #A9B1D6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 18, 51, .06), 0 1px 3px rgba(12, 18, 51, .05);
  --shadow: 0 10px 30px -12px rgba(12, 18, 51, .18), 0 4px 10px -6px rgba(12, 18, 51, .08);
  --shadow-lg: 0 30px 60px -20px rgba(27, 20, 112, .35), 0 12px 24px -12px rgba(12, 18, 51, .18);
  --gutter: max(16px, 4vw);
  --header-h: 76px;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(45, 31, 158, .6); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(45, 31, 158, .7); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-white:hover { color: var(--brand); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-white:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--brand) 0%, var(--brand-600) 55%, var(--accent) 100%); }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -14px rgba(12, 18, 51, .25); background: rgba(255, 255, 255, .94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--ink-2); padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--brand); background: var(--brand-50); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(12, 18, 51, .3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a:not(.btn) { padding: 12px 14px; border-radius: 10px; }
  .nav-cta { margin: 8px 0 0; }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow.light { color: #C9C3FF; }
h1, h2 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.025em; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 60ch; }

.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-head.center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }
.section-head.split { flex-direction: row; align-items: flex-end; justify-content: space-between; max-width: none; flex-wrap: wrap; gap: 20px; }
.section-head.split > div { display: flex; flex-direction: column; gap: 14px; }

.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; 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='%232D1F9E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(96px, 10vw, 140px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(58, 43, 194, .16), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(224, 74, 51, .10), transparent 70%),
    linear-gradient(180deg, #F7F7FE 0%, #FFFFFF 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(45, 31, 158, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 31, 158, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 30%, #000 20%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -0.035em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--brand); }

.hero-media { position: relative; padding: 0 0 48px 32px; }
.frame { background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #F3F4FA; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D4D8E8; }
.frame-bar i:nth-child(1) { background: #FF6159; }
.frame-bar i:nth-child(2) { background: #FFBD2E; }
.frame-bar i:nth-child(3) { background: #28C941; }
.frame-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.frame-main { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.frame-float { position: absolute; width: 58%; left: -2%; bottom: 0; transform: perspective(1600px) rotateY(-6deg); }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-badge b { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.float-badge small { display: block; font-size: 12px; color: var(--muted); max-width: 22ch; line-height: 1.3; }
.badge-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.badge-icon.alt { background: var(--accent-50); color: var(--accent); }
.badge-a { right: -8px; top: -18px; }
.badge-b { right: 4%; bottom: 22px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { padding-left: 0; max-width: 640px; }
  .frame-main { transform: none; }
  .frame-float { transform: none; left: auto; right: -4%; width: 50%; }
  .badge-a { right: auto; left: -4px; top: -16px; }
}
@media (max-width: 560px) {
  .float-badge { padding: 8px 12px; }
  .badge-b { display: none; }
}

/* ---------- Facts ---------- */
.facts-wrap { position: relative; z-index: 2; margin-top: clamp(-80px, -6vw, -48px); }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.fact { padding: 28px 28px 26px; position: relative; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.fact-num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 3.4vw, 46px); line-height: 1; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-600)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fact-label { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3)::before { display: none; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Sectors ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sector {
  padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
}
.sector:hover { transform: translateY(-4px); background: #fff; border-color: var(--brand-100); box-shadow: var(--shadow); }
.sector h3 { font-size: 19px; font-weight: 600; }
.sector p { color: var(--muted); font-size: 15px; }
.sector-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); margin-bottom: 6px; }
.sector-icon .icon { width: 26px; height: 26px; }
@media (max-width: 1000px) { .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sector-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-intro { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.vision-card {
  display: flex; gap: 18px; margin-top: 12px; padding: 26px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-600) 100%); box-shadow: var(--shadow-lg);
}
.vision-card h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.vision-card p { color: #DCD9FF; }
.vision-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.vision-icon .icon { width: 24px; height: 24px; }
.about-values { display: flex; flex-direction: column; gap: 20px; }
.value-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.value-card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.value-card h3 .icon { color: var(--accent); width: 24px; height: 24px; }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 80px); counter-reset: t; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--brand-100), var(--brand), var(--accent)); }
.timeline li { position: relative; padding-top: 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 0 0 5px var(--bg-soft); }
.timeline li:last-child::before { border-color: var(--accent); }
.t-year { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--brand); }
.timeline h3 { font-size: 18px; font-weight: 600; margin: 4px 0 8px; }
.timeline p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-intro { position: static; }
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 34px; }
  .timeline::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand-100), var(--brand), var(--accent)); }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -34px; top: 4px; }
}

/* ---------- Solutions ---------- */
.product-list { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.product {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(20px, 3vw, 36px); border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s;
}
.product:hover { box-shadow: var(--shadow); border-color: var(--brand-100); }
.product:nth-child(even) .product-media { order: 2; }
.product-media { position: relative; border-radius: 18px; background: linear-gradient(135deg, var(--brand-50), #F7F6FF); padding: clamp(16px, 2.4vw, 28px); }
.product-media .frame { box-shadow: var(--shadow); }
.product-media .frame img { aspect-ratio: auto; height: auto; }
.product-media:not(.is-multi) .frame img { aspect-ratio: 16 / 10; object-fit: cover; }
.product-media.is-multi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.product-media.is-multi .frame:nth-child(2) { margin-top: 28px; }
.product-media.is-empty { min-height: 300px; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .25), transparent 40%),
    linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, var(--brand-600)); }
.product-media.is-empty::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.media-art { position: relative; width: 120px; height: 120px; border-radius: 32px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(4px); }
.media-art .art-icon { width: 60px; height: 60px; }
.product-body { display: flex; flex-direction: column; gap: 12px; }
.product-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.product-icon .icon { width: 24px; height: 24px; }
.product h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.product-tech { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: 999px; }
.product .checks { margin-top: 6px; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product:nth-child(even) .product-media { order: 0; }
  .product-media.is-empty { min-height: 200px; }
}

/* ---------- Land ---------- */
.land { background: var(--navy); color: var(--dark-text); overflow: hidden; }
.land-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 90% 0%, rgba(58, 43, 194, .45), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(224, 74, 51, .18), transparent 70%);
}
.land-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.land .container { position: relative; }
.land h2 { color: #fff; margin-top: 14px; }
.land-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: 48px; }
.land-head p { color: var(--dark-muted); }
.team-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--dark-text) !important; font-size: 15px; }
.team-note .icon { color: #FF8A75; margin-top: 3px; }
.land-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.land-card {
  position: relative; padding: 24px; border-radius: var(--radius); min-height: 180px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s, border-color .25s, background .25s;
}
.land-card:hover { transform: translateY(-4px); border-color: rgba(201, 195, 255, .45); background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)); }
.land-num { position: absolute; right: 20px; top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, .35); }
.land-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(201, 195, 255, .14); color: #C9C3FF; }
.land-icon .icon { width: 22px; height: 22px; }
.land-card p { color: var(--dark-text); font-size: 15px; line-height: 1.55; }
@media (max-width: 1040px) { .land-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .land-head { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .land-grid { grid-template-columns: 1fr; } .land-card { min-height: 0; } }

/* ---------- News ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card-link:hover { color: inherit; }
.post-thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-50), #F7F6FF); overflow: hidden; display: grid; place-items: center; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.thumb-art { color: var(--brand); opacity: .6; }
.thumb-art .icon { width: 48px; height: 48px; }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card time { font-size: 13px; color: var(--muted); font-weight: 500; }
.post-card h3 { font-size: 19px; line-height: 1.35; font-weight: 600; transition: color .2s; }
.post-card:hover h3 { color: var(--brand); }
.post-card p { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand); }
.read-more .icon { transition: transform .2s; }
.post-card:hover .read-more .icon { transform: translateX(4px); }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink-2); background: #fff; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager span[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- CTA ---------- */
.cta-wrap { padding-top: 8px; }
.cta {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: #fff;
  background: radial-gradient(60% 120% at 100% 0%, rgba(224, 74, 51, .45), transparent 60%), linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, var(--brand-600));
  box-shadow: var(--shadow-lg);
}
.cta::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); }
.cta > div { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); }
.cta p { color: #DCD9FF; margin-top: 8px; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.contact-list li:hover { border-color: var(--brand-100); background: #fff; }
.contact-list small { display: block; font-size: 13px; color: var(--muted); }
.contact-list b, .contact-list a { font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-list a:hover { color: var(--brand); }
.c-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.c-icon .icon { width: 20px; height: 20px; }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 380px; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--dark-muted); padding-top: 64px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { height: 46px; width: auto; background: #fff; padding: 6px 10px; border-radius: 10px; margin-bottom: 18px; }
.footer-brand p + p { margin-top: 8px; }
.footer-brand b { color: #fff; font-weight: 600; }
.site-footer h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--dark-muted); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: #C9C3FF; margin-top: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); background: linear-gradient(180deg, #F4F3FE, #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 10px 0 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.article-hero time { display: block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--brand); }
.article-hero h1 { margin-top: 6px; }
.draft-note { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: #FFF6DB; border: 1px solid #F1D98A; color: #6B5310; font-size: 14px; }
.article { padding-top: 40px; padding-bottom: 72px; }
.article-cover { width: 100%; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 40px; }
.prose { font-size: 17.5px; line-height: 1.8; color: var(--ink-2); margin-bottom: 40px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.8em; }
.prose h3 { font-size: 22px; margin-top: 1.6em; font-family: var(--font-display); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 14px; margin: 1.6em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--brand); color: var(--ink); font-style: italic; }
.prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--navy); color: var(--dark-text); padding: 18px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg-soft); }

.error-page { text-align: center; padding: 120px 0; }
.error-page .lead { margin: 0 auto 28px; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(80px, 14vw, 160px); line-height: 1; letter-spacing: -0.05em; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 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; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-badge { animation: none; }
  * { transition-duration: 0s !important; }
}
