/* =====================================================================
   Winway Systems — Design System  (v2)
   Charcoal + restrained steel-blue, all-sans, institutional/quant
   Calm · premium · hairline-driven · generous whitespace
   ===================================================================== */

/* ---------- Fonts ---------- */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Nanum+Myeongjo:wght@400;700;800&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Charcoal / ink */
  --ink:      #16181d;
  --ink-soft: #3d434d;
  --muted:    #717784;

  /* Surfaces */
  --bg:        #ffffff;
  --bg-alt:    #f6f7f8;
  --bg-tint:   #f6f7f8;
  --white:     #ffffff;

  /* Dark sections (footer / CTA / panels) */
  --dark:    #16181d;
  --dark-2:  #1f242c;
  --dark-3:  #2a3038;

  /* Restrained steel-blue accent */
  --accent:        #1f4e79;
  --accent-strong: #163a5c;
  --accent-soft:   #eaf0f5;
  --accent-line:   #cdd9e4;

  /* Legacy blue aliases (kept so old selectors resolve to the new accent) */
  --blue-900: #0f1620;
  --blue-800: #1f242c;
  --blue-700: #1f4e79;
  --blue-600: #1f4e79;
  --blue-500: #2a5f8f;
  --blue-400: #5a7e9e;
  --blue-200: #cdd9e4;
  --blue-100: #e0e8f0;
  --blue-50:  #eef2f6;

  --gold: #b08d57;

  /* Hairlines */
  --line:      #e5e7eb;
  --line-soft: #eef0f2;
  --line-dark: #d7dbe0;

  /* Effects — subtle, structure-first */
  --shadow-sm: 0 1px 2px rgba(20,24,30,.05);
  --shadow-md: 0 6px 22px rgba(20,24,30,.07);
  --shadow-lg: 0 18px 48px rgba(20,24,30,.10);
  --shadow-blue: 0 10px 28px rgba(20,24,30,.12);

  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --maxw: 1200px;
  --header-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --serif: 'Cormorant Garamond', 'Nanum Myeongjo', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4, p, span, a, li, b, label { word-break: keep-all; overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tint { background: var(--bg-alt); }
.section--blue { background: var(--dark); color: #fff; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.section--blue .eyebrow { color: rgba(255,255,255,.6); }
.section--blue .eyebrow::before { background: rgba(255,255,255,.5); }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.025em; font-weight: 700; color: var(--ink); }
.h-display { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-top: 18px; font-weight: 700; }
.h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); font-weight: 650; }
.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.8;
  font-weight: 400;
}
.section--blue .lead { color: rgba(255,255,255,.72); }

/* highlight (formerly gradient text) — now a solid restrained accent */
.grad-text {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background: none;
}
.section--blue .grad-text { color: #fff; -webkit-text-fill-color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-dark);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light {
  background: #fff; color: var(--ink);
}
.btn--light:hover { background: var(--accent); color: #fff; }
.btn--outline-light {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.32);
}
.btn--outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex; align-items: center;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; font-weight: 700; }
.brand .brand-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--ink);
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 14.5px; font-weight: 550; color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 1.5px; background: var(--accent);
}

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

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-switch button {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  padding: 7px 12px;
  transition: all .2s var(--ease);
}
.lang-switch button.active {
  background: var(--ink); color: #fff;
}

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--radius-sm); }
.nav-toggle span { display:block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero (home) — dark serif, centered ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 clamp(64px, 9vw, 110px);
  text-align: center;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(115% 75% at 50% 16%, #33425c 0%, #1c2a42 38%, #111d31 68%, #0b1322 100%);
}
/* edge vignette for depth */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 50% at 50% 8%, rgba(150,175,210,.18), transparent 60%),
    radial-gradient(120% 80% at 50% 130%, transparent 45%, rgba(4,8,15,.55) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }

/* staged entrance — each element rises gently, in sequence */
.hero-kicker, .hero-rule, .hero-title, .hero-sub, .hero-cta {
  opacity: 0;
  animation: heroIn 1.1s var(--ease) forwards;
}
.hero-kicker { animation-delay: .15s; }
.hero-rule   { animation-delay: .35s; }
.hero-title  { animation-delay: .50s; }
.hero-sub    { animation-delay: .85s; }
.hero-cta    { animation-delay: 1.05s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-kicker {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: .3em;
  color: rgba(255,255,255,.62);
}
.hero-rule {
  display: block; width: 0; height: 1px; margin: 22px auto 34px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  animation: heroIn 1.1s var(--ease) .35s forwards, ruleGrow 1.4s var(--ease) .5s forwards;
}
@keyframes ruleGrow { from { width: 0; } to { width: 230px; } }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: 1.24;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: #fff;
}
/* Korean headline: smaller + tighter than the Latin uppercase serif */
html[lang="ko"] .hero-title {
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.34;
}
.hero .grad-text { color: #fff; -webkit-text-fill-color: #fff; font-style: italic; }
.hero-sub {
  max-width: 760px; margin: 28px auto 0;
  color: rgba(255,255,255,.74);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.8;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 42px; }

/* slow ambient glow drift — visible "living" background */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -20%; left: 50%; width: 1200px; height: 840px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(155,190,235,.42), rgba(150,185,230,.12) 46%, transparent 72%);
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0%   { opacity: .40; transform: translate(-60%, -14px) scale(.9); }
  100% { opacity: .95; transform: translate(-40%, 44px) scale(1.2); }
}

/* legacy hero pieces kept harmless if present */
.hero-grid { display: block; }
.hero-visual { display: none; }

/* Dark-top pages: transparent header over the dark hero until scrolled */
.dark-top .site-header:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}
.dark-top .site-header:not(.scrolled) .brand .brand-name { color: #fff; }
.dark-top .site-header:not(.scrolled) .nav a { color: rgba(255,255,255,.78); }
.dark-top .site-header:not(.scrolled) .nav a:hover,
.dark-top .site-header:not(.scrolled) .nav a.active { color: #fff; }
.dark-top .site-header:not(.scrolled) .nav a.active::after { background: rgba(255,255,255,.7); }
.dark-top .site-header:not(.scrolled) .lang-switch { border-color: rgba(255,255,255,.32); }
.dark-top .site-header:not(.scrolled) .lang-switch button { color: rgba(255,255,255,.7); }
.dark-top .site-header:not(.scrolled) .lang-switch button.active { background: #fff; color: var(--ink); }
.dark-top .site-header:not(.scrolled) .nav-toggle span { background: #fff; }

/* ---------- Stat band ---------- */
.statband { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.statband .grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 48px 24px; text-align: center; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: none; }
.stat .num { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.stat .num span { color: var(--accent); }
.stat .label { color: var(--muted); font-size: 13.5px; font-weight: 500; margin-top: 8px; letter-spacing: -.005em; }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-dark); }
.card .ic {
  width: 50px; height: 50px; border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.card .ic svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.18rem; font-weight: 650; }
.card p { color: var(--muted); margin-top: 12px; font-size: 14.5px; line-height: 1.75; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.card .tags span { font-size: 11.5px; font-weight: 650; color: var(--ink-soft); background: var(--bg-alt); border: 1px solid var(--line); padding: 5px 11px; border-radius: var(--radius-sm); }

/* feature row */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,80px); align-items: center; }
.feature-split.reverse .fs-media { order: 2; }
.fs-list { margin-top: 30px; display: grid; gap: 18px; }
.fs-list li { display: flex; gap: 14px; align-items: flex-start; }
.fs-list .check {
  flex: none; width: 24px; height: 24px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-top: 2px;
}
.fs-list .check svg { width: 14px; height: 14px; }
.fs-list b { display: block; font-size: 1rem; font-weight: 650; }
.fs-list p { color: var(--muted); font-size: 14.5px; margin-top: 3px; }

.fs-media {
  border-radius: var(--radius-lg);
  background: var(--dark);
  border: 1px solid var(--dark-3);
  padding: 36px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.mock-window { position: relative; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.mock-body { padding: 18px; display: grid; gap: 10px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-sm); }
.mock-row .l { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 550; color: rgba(255,255,255,.82); }
.mock-row .l i { width: 7px; height: 7px; border-radius: 50%; }
.mock-row .v { font-size: 13px; font-weight: 700; }
.up { color: #7fc8a4; } .down { color: #e08d8d; }
.dot-blue{background:#6fa3c9;} .dot-green{background:#7fc8a4;} .dot-gold{background:var(--gold);} .dot-red{background:#e08d8d;}

/* ---------- Steps / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.step { position: relative; padding: 28px 26px 0 0; }
.step .n { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .12em; }
.step h3 { font-size: 1.08rem; margin-top: 12px; font-weight: 650; }
.step p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.step::before { content:""; position: absolute; top: 0; left: 0; right: 12px; height: 1px; background: var(--line-dark); }
.step::after { content:""; position: absolute; top: -1px; left: 0; width: 36px; height: 2px; background: var(--accent); }

.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content:""; position:absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-dark); }
.tl-item { position: relative; padding: 0 0 38px 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content:""; position: absolute; left: -28px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.tl-item .yr { font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.tl-item p { color: var(--muted); margin-top: 4px; }

/* ---------- Logos strip ---------- */
.logos-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.logos-strip .chip {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 26px; font-weight: 700; color: var(--ink-soft); opacity: .85;
  letter-spacing: .01em;
}

/* ---------- CTA ---------- */
.cta-wrap {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark);
  padding: clamp(48px, 6vw, 84px);
  text-align: center; color: #fff;
}
.cta-wrap h2 { position: relative; font-size: clamp(1.8rem,3.4vw,2.6rem); color: #fff; }
.cta-wrap p { position: relative; color: rgba(255,255,255,.72); margin-top: 18px; font-size: 1.06rem; }
.cta-wrap .hero-cta { position: relative; justify-content: center; }

/* ---------- Page hero (inner pages) — dark mood ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(60px, 8vw, 92px)) 0 clamp(52px, 6vw, 78px);
  color: #fff;
  background:
    radial-gradient(115% 135% at 50% 0%, #33425c 0%, #1c2a42 40%, #111d31 72%, #0b1322 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% -10%, rgba(150,175,210,.16), transparent 60%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .crumbs { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.52); margin-bottom: 16px; }
.page-hero .crumbs a { color: rgba(255,255,255,.7); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: .01em; color: #fff; }
.page-hero p { color: rgba(255,255,255,.72); margin-top: 18px; max-width: 640px; font-size: 1.1rem; }
.page-hero .eyebrow { color: rgba(255,255,255,.6); }
.page-hero .eyebrow::before { background: rgba(255,255,255,.5); }
.page-hero .prod-hero-ic { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.page-hero .prod-hero-tagline { color: rgba(255,255,255,.72); }

/* ---------- Values / icon list ---------- */
.value { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.value:hover { box-shadow: var(--shadow-md); border-color: var(--line-dark); }
.value .ic { width: 46px; height: 46px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.value .ic svg { width: 23px; height: 23px; }
.value h3 { font-size: 1.08rem; font-weight: 650; }
.value p { color: var(--muted); margin-top: 10px; font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-card { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.info-card:hover { box-shadow: var(--shadow-sm); border-color: var(--line-dark); }
.info-card .ic { flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.info-card .ic svg { width: 22px; height: 22px; }
.info-card .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.info-card .val { font-weight: 650; margin-top: 3px; }
.info-stack { display: grid; gap: 14px; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,78,121,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-success { display: none; padding: 14px 16px; background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); font-weight: 650; font-size: 14px; margin-bottom: 18px; }
.form-success.show { display: block; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 80px 0 32px; border-top: 1px solid var(--dark-3); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand .brand-name { color: #fff; }
.footer-about { margin-top: 20px; max-width: 320px; font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: rgba(255,255,255,.9); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; padding: 6px 0; font-size: 14px; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-contact li { padding: 6px 0; font-size: 14px; display: flex; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: rgba(255,255,255,.5); }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s var(--ease), border-color .2s var(--ease); }
.footer-bottom .socials a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.footer-bottom .socials svg { width: 17px; height: 17px; color: #fff; }

/* ---------- Legal / policy pages ---------- */
.legal { max-width: 880px; }
.legal h2 { font-size: 1.15rem; font-weight: 650; margin: 38px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1rem; font-weight: 650; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; line-height: 1.85; }
.legal ul { margin: 8px 0 12px 18px; list-style: disc; }
.legal ul li { margin: 3px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); font-weight: 650; color: var(--ink); white-space: nowrap; }
.legal .legal-updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

/* ---------- Footer business / legal line ---------- */
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; color: rgba(255,255,255,.5);
}
.footer-legal span { white-space: nowrap; }
.footer-legal a { color: rgba(255,255,255,.78); font-weight: 600; }
.footer-legal a:hover { color: #fff; }
.site-footer .footer-legal + .footer-bottom { margin-top: 22px; }

/* ---------- Reveal animation (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }

/* ---------- Product catalogue ---------- */
.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-dark); }
.cat-head { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.cat-ic { flex: none; width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cat-ic svg { width: 22px; height: 22px; }
.cat-card h3 { font-size: 1.1rem; font-weight: 650; }
.cat-sub { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.prod-list { display: flex; flex-direction: column; gap: 1px; }
.prod-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 550; color: var(--ink-soft);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.prod-list a:hover { background: var(--bg-alt); color: var(--accent); }
.prod-list .pl { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.prod-list .pli { flex: none; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; transition: background .2s var(--ease), color .2s var(--ease); }
.prod-list .pli svg { width: 16px; height: 16px; }
.prod-list a:hover .pli { background: var(--accent); color: #fff; }
.prod-list .pn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-list a .pa { flex: none; opacity: 0; transform: translateX(-5px); color: var(--accent); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.prod-list a:hover .pa { opacity: 1; transform: none; }

/* product hero icon badge */
.prod-hero-ic { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: var(--radius); background: var(--ink); color: #fff; margin: 4px 0 22px; }
.prod-hero-ic svg { width: 31px; height: 31px; }
.page-hero .prod-hero-ic + .eyebrow { display: block; margin-bottom: 6px; }
.prod-hero-tagline { color: var(--muted); margin-top: 16px; max-width: 680px; font-size: 1.1rem; }

/* ---------- Product detail extras ---------- */
.related-wrap { margin-top: 56px; }
.related-wrap .h3 { margin-bottom: 18px; }
.related-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.related-chip {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 18px; font-size: 14px; font-weight: 650; color: var(--ink-soft);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.related-chip:hover { color: var(--accent); border-color: var(--accent-line); }

/* product overview */
.prod-overview { max-width: 880px; margin-bottom: 64px; }
.prod-overview-head { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.prod-overview-text { font-size: clamp(1.16rem, 2vw, 1.5rem); line-height: 1.7; color: var(--ink); font-weight: 500; letter-spacing: -.015em; }
.prod-overview-text + .prod-overview-text { margin-top: 22px; font-size: 1.06rem; line-height: 1.85; font-weight: 400; color: var(--ink-soft); }

/* key features */
.kf-wrap { margin-top: 8px; }
.kf-wrap .h2 { margin-bottom: 32px; }
.kf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.kf-grid--compact { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kf-item { display: flex; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.kf-item:hover { box-shadow: var(--shadow-sm); border-color: var(--line-dark); }
.kf-ic { flex: none; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 2px; }
.kf-ic svg { width: 16px; height: 16px; }
.kf-item b { display: block; font-size: 1rem; line-height: 1.4; font-weight: 650; }
.kf-item p { color: var(--muted); font-size: 14.5px; margin-top: 6px; line-height: 1.65; }
.kf-item .kf-bullets { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.kf-item .kf-bullets li { position: relative; padding-left: 15px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.kf-item .kf-bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.kf-grid--compact .kf-item { padding: 15px 18px; align-items: center; }
.prod-overview-text + .prod-overview-head--sub { margin-top: 40px; }

@media (max-width: 1024px) { .catalog { grid-template-columns: repeat(2, 1fr); } .kf-grid--compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .kf-grid, .kf-grid--compact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .catalog { grid-template-columns: 1fr; } }

/* ---------- Solutions page (category sections) ---------- */
.sol-cat { margin-bottom: clamp(48px, 7vw, 88px); }
.sol-cat:last-child { margin-bottom: 0; }
.sol-cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.sol-cat-ic { flex: none; width: 52px; height: 52px; border-radius: var(--radius); background: var(--ink); color: #fff; display: grid; place-items: center; }
.sol-cat-ic svg { width: 26px; height: 26px; }
.sol-cat-head .h2 { margin: 0; }
.sol-cat-sub { color: var(--muted); font-weight: 500; font-size: 14.5px; margin-top: 4px; }
.sol-card { display: flex; flex-direction: column; }
.sol-card h3 { font-size: 1.14rem; font-weight: 650; }
.sol-card p { color: var(--muted); margin-top: 12px; font-size: 14.5px; line-height: 1.75; }
.sol-card-more { margin-top: auto; padding-top: 20px; font-weight: 650; color: var(--accent); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.sol-card .arrow { transition: transform .25s var(--ease); }
.sol-card:hover .arrow { transform: translateX(4px); }

/* ---------- Projects / portfolio ---------- */
.proj-year { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.proj-year:first-child { border-top: 0; padding-top: 0; }
.proj-year-num { font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; position: sticky; top: 96px; }
.proj-items { display: flex; flex-direction: column; gap: 8px; }
.proj-item { display: grid; grid-template-columns: 1.1fr 2fr auto; gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.proj-item:hover { box-shadow: var(--shadow-sm); border-color: var(--line-dark); }
.proj-c { font-weight: 650; color: var(--ink); font-size: 15px; }
.proj-d { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.proj-st { justify-self: end; font-size: 11.5px; font-weight: 650; padding: 5px 12px; border-radius: var(--radius-sm); white-space: nowrap; }
.proj-st.is-done { background: var(--accent-soft); color: var(--accent); }
.proj-st.is-progress { background: #f4efe4; color: #9a7426; }

/* ---------- About: overview / history / clients ---------- */
.about-overview { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 76px); align-items: start; margin-top: 24px; }
.about-quote { font-size: clamp(1.55rem, 2.8vw, 2.2rem); line-height: 1.5; font-weight: 650; color: var(--ink); letter-spacing: -.025em; border: 0; }
.about-paras { display: flex; flex-direction: column; gap: 20px; }
.about-para { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.9; }

.tl2 { position: relative; max-width: 840px; margin: 0 auto; }
.tl2::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line-dark); }
.tl2-item { position: relative; padding: 0 0 36px 40px; }
.tl2-item:last-child { padding-bottom: 0; }
.tl2-item::before { content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.tl2-year { font-size: 1.35rem; font-weight: 700; color: var(--accent); letter-spacing: -.02em; margin-bottom: 10px; }
.tl2-events { display: flex; flex-direction: column; gap: 7px; }
.tl2-events li { position: relative; color: var(--ink-soft); font-size: 15px; line-height: 1.6; padding-left: 15px; }
.tl2-events li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* client logo grid */
.logos-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); }
.logo-cell {
  display: grid; place-items: center;
  background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 18px; min-height: 100px;
  transition: background .25s var(--ease);
}
.logo-cell:hover { background: var(--bg-alt); }
.logo-cell img {
  max-width: 100%; max-height: 46px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: .6;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }
.logo-cell--text { font-weight: 650; color: var(--ink-soft); font-size: 15px; }

/* animated partner marquee */
.marquee { position: relative; width: 100%; overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 64px; align-items: center; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: none; display: grid; place-items: center; height: 56px; }
.marquee-item img { max-height: 38px; max-width: 150px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .5; transition: filter .25s var(--ease), opacity .25s var(--ease); }
.marquee-item:hover img { filter: grayscale(0); opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 900px) { .logos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logos-grid { grid-template-columns: repeat(2, 1fr); } .marquee-track { gap: 40px; } }

@media (max-width: 880px) {
  .about-overview { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .proj-year { grid-template-columns: 1fr; gap: 14px; }
  .proj-year-num { position: static; }
  .proj-item { grid-template-columns: 1fr; gap: 6px; }
  .proj-st { justify-self: start; }
}

/* ---------- Lang visibility helper ---------- */
[data-i18n] { } /* text swapped by JS */

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .28s var(--ease), opacity .28s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a.active::after { display: none; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .statband .grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3) { border-left: none; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse .fs-media { order: 0; }
  .form .row { grid-template-columns: 1fr; }
  .step { padding: 24px 0 0 0; }
  .step::before { right: 0; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .header-inner { padding: 0 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .statband .grid { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line-soft); }
  .stat:first-child { border-top: none; }
  .hero { min-height: 88vh; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-kicker, .hero-rule, .hero-title, .hero-sub, .hero-cta { opacity: 1 !important; transform: none !important; }
  .hero-rule { width: 230px; }
}
