/* NewBrick Homepage Prototype — Vercel-inspired dark */

:root {
  --bg: #050507;
  --bg-elevated: #0c0c10;
  --bg-card: #111116;
  --bg-card-hover: #16161d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #7c9cff;
  --accent-2: #b48cff;
  --accent-soft: rgba(124, 156, 255, 0.15);
  --glow: rgba(99, 140, 255, 0.35);
  --success: #4ade80;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 64px;
  --container: 1120px;
  --font: "Inter", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --shadow: 0 0 0 1px var(--border), 0 20px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Korean: wrap on word boundaries (어절), not mid-word; break-word
     keeps long English/URL strings from overflowing on mobile */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(124, 156, 255, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 5, 7, 0.9);
}

.header-inner {
  height: var(--header-h);
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  line-height: 0;
  /* same canvas as page bg so logo art blends with site */
  background: transparent;
}

.logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(168px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #8ba6ff, #4f6ef7 50%, #2a3f9a);
  color: white;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 20px var(--glow);
}

.logo-text {
  font-size: 15px;
}

.footer-logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  margin-top: 2px; /* optical align with first text line */
}

/* Entire GNB hidden on mobile — not just the list.
   An empty .gnb with margin-left:auto was eating flex space and
   could push .nav-toggle past the right edge on narrow viewports. */
.gnb {
  display: none;
  margin-left: auto;
}

.gnb-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.gnb-list a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  text-align: center;
}

/* 볼드 폭만큼 미리 자리를 잡아 활성화 시 옆 메뉴가 밀리지 않게 함 */
.gnb-list a::after {
  content: attr(data-text);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 700;
}

.gnb-list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.gnb-list a.is-active {
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}

/* Higher specificity than .btn (element has class="btn … header-cta").
   Otherwise .btn { display: inline-flex } wins later in the cascade and the
   header CTA stays visible on mobile next to the hamburger — label wraps
   ("AX·CRM 상담" / "문의") in a cramped pill on Android. */
a.header-cta.btn {
  display: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  inset: var(--header-h) 0 auto;
  padding: 16px 20px 24px;
  background: rgba(8, 8, 12, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

/* Menu rows only — not the CTA button (also an <a>) */
.mobile-nav ul a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.mobile-nav ul a:hover,
.mobile-nav ul a:focus-visible {
  color: var(--text);
}

/* CTA under the list: reset menu-link styles so .btn-primary reads clearly */
.mobile-nav > a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  min-height: 48px;
  padding: 0 20px;
  border: none;
  border-bottom: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: #0a0a0f;
  background: linear-gradient(180deg, #f8f8ff, #e8e8f0);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 24px rgba(124, 156, 255, 0.22);
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav > a.btn:hover,
.mobile-nav > a.btn:focus-visible {
  color: #0a0a0f;
  transform: none; /* drawer: no float shift */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 28px rgba(124, 156, 255, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, #f8f8ff, #e8e8f0);
  color: #0a0a0f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(124, 156, 255, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 32px rgba(124, 156, 255, 0.28);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 72px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    #050507
    url("assets/hero-poster-ax.jpg") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  /* Slight scale hides edge flicker on some loop transitions */
  transform: scale(1.03);
  opacity: 0;
  transition: none;
  will-change: opacity;
}

.hero-video.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(60, 100, 220, 0.18), transparent 65%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.55) 0%, rgba(5, 5, 7, 0.35) 40%, rgba(5, 5, 7, 0.72) 100%),
    linear-gradient(90deg, rgba(5, 5, 7, 0.35), transparent 20%, transparent 80%, rgba(5, 5, 7, 0.35));
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.hero-line {
  display: block;
}

/* Signature gradient on the AI line */
.hero-line-accent {
  background: linear-gradient(96deg, #9db9ff 0%, var(--accent) 38%, var(--accent-2) 78%, #e2c9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: 0.08em; /* keep descender glyphs unclipped */
}

/* Staggered entrance — one-shot on load */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner > * {
  animation: hero-rise 0.9s var(--ease) both;
}

.hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.hero-inner > :nth-child(3) { animation-delay: 0.16s; }
.hero-inner > :nth-child(4) { animation-delay: 0.24s; }
.hero-inner > :nth-child(5) { animation-delay: 0.32s; }
.hero-inner > :nth-child(6) { animation-delay: 0.44s; }

.hero-sub {
  margin: 20px 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 18px auto 0;
  max-width: 34em;
  color: var(--text-muted);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions .btn {
  white-space: nowrap;
  flex: 0 1 auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 56px 0 0;
  padding: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 92px;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  /* frosted glass over hero video */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.stat:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  transform: translateY(-2px);
}

.stat dt {
  font-size: 12px;
  color: rgba(228, 228, 231, 0.88); /* brighter labels over hero video */
  margin-bottom: 0;
  line-height: 1.3;
}

.stat dd {
  margin: auto 0 0; /* pin value to bottom of box — aligns all 4 stats */
  padding-top: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  min-height: 1.6em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Partner tier ladder: Base-Ridge-Crest-Summit on one line */
.stat-partner-tier {
  min-width: 0;
}

.stat-tier {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: 100%;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.2;
}

.tier-step {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(228, 228, 231, 0.42);
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding-bottom: 0.22em; /* sit on same baseline band as Crest */
}

.tier-sep {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(228, 228, 231, 0.28);
  margin: 0 0.12em;
  line-height: 1.2;
  padding-bottom: 0.22em;
}

.tier-current {
  font-size: 1.35rem; /* match other KPI numbers */
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%);
  border-block: 1px solid var(--border);
}

/* Per-section ambient backgrounds — faint thematic art (hero/footer untouched).
   Layered under the .section-alt hairline gradient where applicable. */
#solutions {
  background: url("assets/backgrounds/bg-solutions.svg") center / cover no-repeat;
}

#success-stories {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%),
    url("assets/backgrounds/bg-stories.svg") center / cover no-repeat;
}

#customers {
  background: url("assets/backgrounds/bg-customers.svg") center / cover no-repeat;
}

#voices {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%),
    url("assets/backgrounds/bg-voices.svg") center / cover no-repeat;
}

#guides {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124, 156, 255, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 50%);
  border-block: 1px solid var(--border);
}

#contact {
  background: url("assets/backgrounds/bg-contact.svg") center / cover no-repeat;
}

#careers {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%),
    url("assets/backgrounds/bg-careers.svg") center / cover no-repeat;
}

.section-head {
  margin-bottom: 36px;
  max-width: 640px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.section-head-row > div:first-child {
  max-width: 640px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.section-lead {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

.section-lead.muted {
  color: var(--text-dim);
  line-height: 1.75;
}

.scroll-controls {
  display: none;
  gap: 8px;
  flex-shrink: 0;
}

.rating {
  color: #fbbf24;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dot {
  margin: 0 6px;
  color: var(--text-dim);
}

/* Guides section — resource cards (between Voices and Contact) */
.guides-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .guides-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.guide-home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 26px 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.guide-home-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px var(--border-strong), 0 24px 56px rgba(0, 0, 0, 0.45);
}

.guide-home-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin-bottom: 18px;
}

.guide-home-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.guide-home-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
}

.guide-home-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
  color: var(--text);
}

.guide-home-desc {
  margin: 0 0 20px;
  flex: 1;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.guide-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.guide-home-link .arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.guide-home-card:hover .guide-home-link .arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .guide-home-card:hover {
    transform: none;
  }

  .guide-home-card:hover .guide-home-link .arrow {
    transform: none;
  }
}

.guides-more {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
}

.guides-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.guides-more a:hover,
.guides-more a:focus-visible {
  text-decoration: underline;
}

.guides-more .arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.guides-more a:hover .arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .guides-more a:hover .arrow {
    transform: none;
  }
}

/* Solutions — original simplified product mockups (unified frame) */
.solution-grid {
  display: grid;
  gap: 18px;
}

.solution-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.4);
}

/* Soft product-tint panels (official product icon hues) */
.tone-agentforce .solution-visual {
  background: linear-gradient(160deg, #eaf3ff 0%, #d6e8ff 55%, #c5dcff 100%);
}

.tone-sales .solution-visual {
  background: linear-gradient(160deg, #e8fffc 0%, #d4f7f3 55%, #c2f0ea 100%);
}

.tone-service .solution-visual {
  background: linear-gradient(160deg, #fff0f5 0%, #ffe0ea 55%, #ffd0e0 100%);
}

.tone-marketing .solution-visual {
  background: linear-gradient(160deg, #fff6eb 0%, #ffecd6 55%, #ffe0bf 100%);
}

.tone-agentforce .product-name {
  color: #066afe;
}

.tone-sales .product-name {
  color: #068f86;
}

.tone-service .product-name {
  color: #c90558;
}

.tone-marketing .product-name {
  color: #c46a00;
}

.solution-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 14px 14px 10px;
}

.solution-shot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 12px;
  filter: none;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.5s var(--ease);
}

.solution-card:hover .solution-shot {
  transform: scale(1.035);
}

.solution-logo-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.solution-logo {
  width: 30px;
  height: 30px;
  display: block;
}

.solution-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  background: #fff;
  color: #18181b;
  word-break: keep-all; /* avoid mid-word Korean wraps like 흐름으|로 */
  overflow-wrap: break-word;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap; /* product name + tags stay on one row */
  min-width: 0;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tags {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  max-width: 52%;
}

.solution-card .tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #d4d4d8;
  color: #3f3f46;
  /* light chip that separates from white card body */
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f5 100%);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.06);
  white-space: nowrap;
  line-height: 1.3;
}

.solution-body h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #18181b;
}

.solution-body p {
  margin: 0;
  color: #52525b;
  font-size: 14px;
  flex: 1;
}

.solution-card .card-link {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #18181b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Shared arrow micro-interaction (solution / story cards) */
.card-link .arrow,
.story-link .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.solution-card:hover .card-link .arrow,
.story-card:hover .story-link .arrow {
  transform: translateX(4px);
}

/* Horizontal flow marquee (stories / voices / customers) */
.flow-marquee {
  position: relative;
  overflow: hidden;
  /* Stronger edge fade — cards dissolve into page bg (esp. wide screens) */
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  padding: 4px 0 12px;
  /* WebKit: force own compositing layer so the mask repaints as the
     track animates — otherwise cards vanish once they leave the
     initially rasterized region (Safari mask + animated child bug) */
  transform: translateZ(0);
  /* Horizontal swipe/drag; vertical page scroll still works */
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.flow-marquee.is-dragging {
  cursor: grabbing;
}

.flow-marquee.is-dragging a,
.flow-marquee.is-dragging button {
  pointer-events: none;
}

/* Dark edge scrims (mask + solid fade for deeper “out of viewport” look) */
.flow-marquee::before,
.flow-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(56px, 10vw, 160px);
  z-index: 2;
  pointer-events: none;
}

.flow-marquee::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    rgba(5, 5, 7, 0.92) 28%,
    rgba(5, 5, 7, 0.45) 62%,
    transparent 100%
  );
}

.flow-marquee::after {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--bg) 0%,
    rgba(5, 5, 7, 0.92) 28%,
    rgba(5, 5, 7, 0.45) 62%,
    transparent 100%
  );
}

.section-alt .flow-marquee::before {
  background: linear-gradient(
    90deg,
    #060608 0%,
    rgba(6, 6, 8, 0.94) 28%,
    rgba(6, 6, 8, 0.45) 62%,
    transparent 100%
  );
}

.section-alt .flow-marquee::after {
  background: linear-gradient(
    270deg,
    #060608 0%,
    rgba(6, 6, 8, 0.94) 28%,
    rgba(6, 6, 8, 0.45) 62%,
    transparent 100%
  );
}

.flow-track {
  display: flex;
  width: max-content;
  gap: 0;
  /* no will-change here — the running animation already promotes the
     layer, and the extra hint triggers WebKit's stale-mask clipping */
}

.flow-group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

/* Directions & calm speeds — each section different */
.flow-stories .flow-track {
  animation: flow-left 70s linear infinite;
}

.flow-voices .flow-track {
  /* no-JS fallback only — with JS the tracks are rAF-driven (Safari
     evicts tiles of large compositor-animated layers; see script.js) */
  animation: flow-left 85s linear infinite reverse;
}

.flow-marquee:hover .flow-track {
  animation-play-state: paused;
}

@keyframes flow-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* legacy h-scroll kept for fallback / reduced-motion */
.h-scroll-wrap {
  overflow: hidden;
}

.h-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(20px, calc((100vw - var(--container)) / 2));
  padding: 4px max(20px, calc((100vw - var(--container)) / 2)) 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.h-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.story-card,
.voice-card {
  /* definite width instead of flex-basis: WebKit ignores the basis when
     computing the track's max-content width, inflating each group with
     ~4200px of phantom space (cards "vanish" into the gap in Safari) */
  flex: 0 0 auto;
  width: min(320px, 82vw);
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}

.story-card {
  padding: 0;
  overflow: hidden;
  /* product-tone tinted dark gradient — ties cards to brand hues */
  background: linear-gradient(165deg, #23232c 0%, #17171d 60%, #141419 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.story-card.tone-agentforce {
  background: linear-gradient(165deg, rgba(6, 106, 254, 0.16) 0%, #17171d 55%, #141419 100%);
}

.story-card.tone-sales {
  background: linear-gradient(165deg, rgba(6, 143, 134, 0.16) 0%, #17171d 55%, #141419 100%);
}

.story-card.tone-service {
  background: linear-gradient(165deg, rgba(201, 5, 88, 0.14) 0%, #17171d 55%, #141419 100%);
}

.story-card.tone-marketing {
  background: linear-gradient(165deg, rgba(196, 106, 0, 0.14) 0%, #17171d 55%, #141419 100%);
}

.story-card:hover,
.voice-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.story-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
}

.story-card.tone-agentforce:hover {
  background: linear-gradient(165deg, rgba(6, 106, 254, 0.24) 0%, #1a1a21 55%, #17171d 100%);
  border-color: rgba(59, 139, 255, 0.4);
}

.story-card.tone-sales:hover {
  background: linear-gradient(165deg, rgba(6, 143, 134, 0.24) 0%, #1a1a21 55%, #17171d 100%);
  border-color: rgba(10, 168, 156, 0.4);
}

.story-card.tone-service:hover {
  background: linear-gradient(165deg, rgba(201, 5, 88, 0.2) 0%, #1a1a21 55%, #17171d 100%);
  border-color: rgba(244, 114, 182, 0.38);
}

.story-card.tone-marketing:hover {
  background: linear-gradient(165deg, rgba(196, 106, 0, 0.2) 0%, #1a1a21 55%, #17171d 100%);
  border-color: rgba(240, 160, 80, 0.38);
}

.story-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 18px 18px;
}

.story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  min-height: 44px;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 1;
  max-width: 58%;
  line-height: 1.3;
}

.story-card.tone-agentforce .story-badge {
  color: #3b8bff;
  background: rgba(6, 106, 254, 0.12);
}

.story-card.tone-sales .story-badge {
  color: #0aa89c;
  background: rgba(6, 143, 134, 0.14);
}

.story-card.tone-service .story-badge {
  color: #f472b6;
  background: rgba(201, 5, 88, 0.14);
}

.story-card.tone-marketing .story-badge {
  color: #f0a050;
  background: rgba(196, 106, 0, 0.14);
}

.story-logo-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  max-width: 112px;
  height: 40px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  box-sizing: border-box;
}

.story-logo-wrap.is-torder {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: 0;
  width: 108px;
  height: 36px;
}

.story-logo-wrap.is-torder .story-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.story-logo {
  display: block;
  max-width: 100%;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.story-client {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.story-title {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

/* KPI / outcome line */
.story-kpi {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.story-card.tone-agentforce .story-kpi {
  color: #8ec5ff;
}

.story-card.tone-sales .story-kpi {
  color: #5fc4bb;
}

.story-card.tone-service .story-kpi {
  color: #f9a8d4;
}

.story-card.tone-marketing .story-kpi {
  color: #ffb347;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 8px;
}

/* Success Stories product chips — brighter so they read on dark card */
.story-tags span {
  font-size: 11px;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 3px 8px;
  line-height: 1.3;
}

/* Smaller secondary CTA on story cards */
.story-link {
  margin-top: 2px;
  align-self: flex-end;
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.story-card:hover .story-link {
  color: var(--accent);
}

/* Customers marquee */
.customers-section {
  padding-bottom: 72px;
}

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  margin-top: 8px;
  /* WebKit: own compositing layer so the mask repaints while the
     track animates (same Safari bug as .flow-marquee) */
  transform: translateZ(0);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.marquee.is-dragging {
  cursor: grabbing;
}

.marquee.is-dragging a,
.marquee.is-dragging button {
  pointer-events: none;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(56px, 10vw, 160px);
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    rgba(5, 5, 7, 0.92) 28%,
    rgba(5, 5, 7, 0.45) 62%,
    transparent 100%
  );
}

.marquee::after {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--bg) 0%,
    rgba(5, 5, 7, 0.92) 28%,
    rgba(5, 5, 7, 0.45) 62%,
    transparent 100%
  );
}

.marquee + .marquee {
  margin-top: 14px;
}

.marquee-track {
  display: flex;
  width: max-content;
  /* Customers: medium-calm LTR */
  animation: marquee 48s linear infinite;
}

.marquee-reverse .marquee-track {
  /* Row 2: opposite direction, slightly different speed */
  animation-direction: reverse;
  animation-duration: 58s;
}

.marquee-slow .marquee-track {
  /* Row 3: same direction as row 1, calmer pace */
  animation-duration: 64s;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 64px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
  contain: layout style;
}

.logo-pill.is-text {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-color: var(--border-strong);
}

.logo-pill.is-dark {
  background: #000;
  border-color: rgba(255, 255, 255, 0.1);
  padding: 0;
  overflow: hidden;
}

.logo-pill.is-fill {
  /* definite width so the img's 100%/100% resolves the same in Safari
     (indefinite flex sizes fall back to intrinsic attr size there) */
  width: 148px;
  padding: 0;
  overflow: hidden;
}

.logo-pill.is-fill.is-xlarge {
  width: 168px;
}

.logo-pill.is-noborder {
  border: none;
  box-shadow: none;
}

.logo-pill img {
  display: block;
  max-width: 128px;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-pill.is-fill img,
.logo-pill.is-dark.is-fill img {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Larger logo, modest padding (not edge-to-edge fill) */
.logo-pill.is-small img {
  max-width: 100px;
  max-height: 28px;
}

.logo-pill.is-large {
  padding: 6px 10px;
}

.logo-pill.is-large img {
  max-width: 140px;
  max-height: 52px;
}

.logo-pill.is-xlarge {
  padding: 4px 8px;
}

.logo-pill.is-xlarge img {
  max-width: 152px;
  max-height: 58px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Voices */
.voice-stars {
  color: #fbbf24;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Half-filled star (e.g. 4.5) — left half gold, right half muted */
.voice-stars .star-half {
  position: relative;
  display: inline-block;
  color: rgba(251, 191, 36, 0.28);
}

.voice-stars .star-half::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #fbbf24;
}

.voice-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
}

.voice-meta {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}

.voices-footer {
  margin-top: 24px;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.contact-left .section-head {
  margin-bottom: 0;
}

.contact-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 14px;
}

.contact-points li + li {
  margin-top: 8px;
}

.contact-points a {
  color: var(--accent);
  font-weight: 500;
}

.contact-map {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.contact-map-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.contact-address {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.contact-address strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-address p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-address-meta {
  margin-top: 6px !important;
  font-size: 12px !important;
  color: var(--text-dim) !important;
}

.contact-map-frame {
  position: relative;
  width: 100%;
  /* Match form height on desktop; taller on mobile too */
  height: min(520px, 70vw);
  min-height: 320px;
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.contact-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0c0c10;
}

.contact-map-link {
  align-self: flex-start;
  font-size: 13px;
}

/* Contact form — dark card (v3 tone) */
.contact-form {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.req {
  color: #f87171;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  /* 16px+ avoids iOS Safari focus zoom; inherits body but keep explicit */
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  /* dark native controls on mobile browsers */
  color-scheme: dark;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-dim);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(124, 156, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 156, 255, 0.12);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.form-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  flex: 1;
}

.form-check input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.form-status.is-success {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--success);
}

.form-status.is-pending {
  background: rgba(124, 156, 255, 0.1);
  border: 1px solid rgba(124, 156, 255, 0.28);
  color: var(--text-muted, #a8b0c0);
}

.form-status.is-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Privacy consent — "전문 보기" link + modal */
.privacy-link {
  flex-shrink: 0;
  margin-top: 1px;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.privacy-link:hover {
  color: #a7bdff;
}

.privacy-modal {
  width: min(560px, calc(100vw - 40px));
  max-height: min(76vh, 680px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.privacy-modal[open] {
  display: flex;
  flex-direction: column;
}

.privacy-modal::backdrop {
  background: rgba(5, 5, 7, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.privacy-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.privacy-modal-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.privacy-modal-close {
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 8px;
}

.privacy-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.privacy-modal-body {
  overflow-y: auto;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.privacy-modal-body h4 {
  margin: 18px 0 6px;
  font-size: 13px;
  color: var(--text);
}

.privacy-modal-body p {
  margin: 0 0 8px;
}

.privacy-modal-body ul {
  margin: 0 0 8px;
  padding-left: 18px;
}

.privacy-modal-body a {
  color: var(--accent);
  font-weight: 500;
}

.privacy-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Careers — premium CTA band: gradient border + blueprint grid + glows */
.careers-box {
  position: relative;
  text-align: center;
  max-width: 780px;
  padding: 56px 28px 52px;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    /* inner layers clip to padding-box; last layer paints the gradient border */
    radial-gradient(ellipse 75% 90% at 50% 0%, rgba(124, 156, 255, 0.16), transparent 62%) padding-box,
    radial-gradient(ellipse 60% 80% at 84% 100%, rgba(180, 140, 255, 0.12), transparent 60%) padding-box,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 36px) padding-box,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 36px) padding-box,
    linear-gradient(180deg, #101017, #0b0b10) padding-box,
    linear-gradient(140deg, rgba(124, 156, 255, 0.6), rgba(180, 140, 255, 0.3) 38%, rgba(255, 255, 255, 0.07) 68%, rgba(124, 156, 255, 0.4)) border-box;
  overflow: hidden;
}

/* Corner glow orb, top-right */
.careers-box::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.16), transparent 65%);
  pointer-events: none;
}

.careers-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(124, 156, 255, 0.35);
  background: rgba(124, 156, 255, 0.1);
  color: #aebfff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: badge-pulse 2.2s ease-out infinite;
}

@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Inline gradient text accent */
.text-grad {
  background: linear-gradient(96deg, #9db9ff 0%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.careers-box .section-head {
  margin-inline: auto;
  margin-bottom: 20px;
}

.careers-box h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.careers-box .section-lead {
  max-width: 36em;
  margin-inline: auto;
  line-height: 1.85;
}

.careers-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.careers-chips li {
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 15px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.careers-chips li:hover {
  color: var(--text);
  border-color: rgba(124, 156, 255, 0.45);
  background: rgba(124, 156, 255, 0.08);
}

.careers-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  background: #030305;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 32px;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex: 1 1 280px;
  min-width: 0;
}

/* Two text columns — equal 3-line rhythm */
.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px 40px;
  flex: 1;
  min-width: 0;
  align-items: start;
}

.footer-col {
  display: grid;
  grid-template-rows: repeat(3, auto);
  row-gap: 8px;
  min-width: 0;
}

.footer-line {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  min-height: calc(13px * 1.55);
}

.footer-company {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  max-width: none;
  color: var(--text);
}

.footer-company strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
}

.footer-ceo {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  line-height: 1.55;
}

.footer-mail a {
  color: var(--accent);
  font-weight: 500;
}

.muted {
  color: var(--text-dim) !important;
}

.back-top {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.55;
  align-self: flex-start;
  white-space: nowrap;
}

.back-top:hover {
  color: var(--text);
}

@media (max-width: 767px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-brand {
    flex-direction: column;
    gap: 14px;
  }
}

/* Desktop */
/* Extra-wide: longer edge fade so marquees feel calmer */
@media (min-width: 1280px) {
  .flow-marquee {
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 14%,
      #000 86%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 14%,
      #000 86%,
      transparent 100%
    );
  }

  .marquee {
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 16%,
      #000 84%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 16%,
      #000 84%,
      transparent 100%
    );
  }

  .flow-marquee::before,
  .flow-marquee::after,
  .marquee::before,
  .marquee::after {
    width: clamp(96px, 12vw, 200px);
  }
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scroll-controls {
    display: flex;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: stretch;
  }

  .contact-left {
    height: 100%;
  }

  /* Stretch map so left column bottom aligns with form bottom */
  .contact-map {
    flex: 1;
    min-height: 0;
  }

  .contact-map-frame {
    height: auto;
    min-height: 420px;
    flex: 1;
  }

  .story-card,
  .voice-card {
    width: 340px;
  }
}

@media (min-width: 1024px) {
  .gnb {
    display: block;
    margin-left: auto;
    margin-right: 8px;
  }

  .gnb-list {
    display: flex;
  }

  /* Guides 포함 8개 — 좁은 데스크톱에서 패딩만 살짝 축소 */
  .gnb-list a {
    padding: 8px 8px;
    font-size: 12.5px;
  }

  /* Higher specificity than .btn so display actually applies */
  a.header-cta.btn {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .solution-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    padding: 96px 0 100px;
  }
}

@media (min-width: 1200px) {
  .gnb-list a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* Scroll reveal — .reveal is added by JS only, so no-JS visitors see everything */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-inner > * {
    animation: none;
  }

  .badge-dot {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .solution-card:hover .solution-shot,
  .card-link .arrow,
  .story-link .arrow,
  .solution-card:hover .card-link .arrow,
  .story-card:hover .story-link .arrow,
  .stat:hover {
    transform: none;
    transition: none;
  }

  .flow-stories .flow-track,
  .flow-voices .flow-track,
  .marquee-track {
    animation: none !important;
  }

  .flow-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .flow-marquee::before,
  .flow-marquee::after,
  .marquee::before,
  .marquee::after {
    display: none;
  }

  .flow-track {
    width: max-content;
  }

  .flow-group:last-child {
    display: none;
  }

  .hero-video {
    display: none;
  }

  .marquee-track {
    animation: none;
  }

  .marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .marquee-track {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .marquee-group:last-child {
    display: none;
  }

  .marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }

  .solution-card:hover,
  .story-card:hover,
  .voice-card:hover,
  .btn:hover {
    transform: none;
  }
}

/* Mobile hero: keep subject lower (glow near bottom) for stacked type */
@media (max-width: 767px) {
  .hero-video {
    object-position: center 70%;
  }

  .hero-overlay {
    background:
      radial-gradient(ellipse 100% 55% at 50% 100%, rgba(70, 110, 230, 0.22), transparent 70%),
      linear-gradient(180deg, rgba(5, 5, 7, 0.62) 0%, rgba(5, 5, 7, 0.42) 45%, rgba(5, 5, 7, 0.82) 100%);
  }

  /* Long English title was clipping under .hero { overflow:hidden } */
  .hero h1 {
    font-size: clamp(1.65rem, 7.2vw, 2.25rem);
    letter-spacing: -0.03em;
  }

  /* Side-by-side CTAs truncate on ~360–400px; stack full-width */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .header-inner {
    gap: 12px;
  }

  /* Keep hamburger visible on the right (logo left) */
  .nav-toggle {
    margin-left: auto;
    flex-shrink: 0;
  }
}

/* Very narrow phones */
@media (max-width: 360px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    width: min(100% - 24px, var(--container));
  }

  .logo-img {
    max-width: min(148px, 46vw);
  }
}
