/* ============================================================
   SBA Recruiting Page — mint/teal on charcoal, sbaconnect.or.kr-inspired
   Palette: charcoal on dark, warm off-white ink, SBA teal accent.
   Type: Pretendard (thin/light) for body & UI, Cormorant Garamond
   italic reserved for the hero headline and quote-style accents.
   ============================================================ */

:root {
  --bg-0: #1f1f1f;
  --bg-1: #2b2b2b;
  --bg-2: #363636;
  --ink: #f4f1ea;
  --ink-2: #c9c4ba;
  --ink-3: #96918a;
  --teal: #399798;
  --teal-bright: #5ec6c7;
  --teal-deep: #2a7273;
  --teal-glow: rgba(57, 151, 152, 0.35);
  --rule: rgba(201, 193, 181, 0.16);
  --rule-strong: rgba(201, 193, 181, 0.32);
  --light-bg: #f3efe8;
  --light-panel: #fbf9f4;
  --light-ink: #363636;
  --light-ink-2: #5d594f;
  --light-rule: rgba(54, 54, 54, 0.14);

  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  --header-h: 76px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-bright); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 300; line-height: 1.16; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-weight: 200; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- reveal-on-scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .12s; }
.js .reveal.d2 { transition-delay: .24s; }
.js .reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: .74rem; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; color: var(--teal-bright); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--teal); }
.section--light .eyebrow { color: var(--teal-deep); }

.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 300; letter-spacing: -.01em; margin-bottom: .4em; }
@media (min-width: 700px) {
  .section-title { white-space: nowrap; }
}
.lead { font-size: 1.06rem; color: var(--ink-2); max-width: 46em; }
.section--light .lead { color: var(--light-ink-2); }
.section--light h2, .section--light h3 { color: var(--light-ink); }

.section-head { max-width: 720px; margin-bottom: 60px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid transparent; background: none; cursor: pointer;
  transition: all .3s ease;
}
.btn--solid { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn--solid:hover { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--bg-0); box-shadow: 0 0 32px var(--teal-glow); }
.btn--ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
.section--light .btn--ghost { border-color: var(--light-rule); color: var(--light-ink); }
.section--light .btn--ghost:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
.btn svg { width: 14px; height: 14px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-bright); border-bottom: 1px solid transparent; }
.text-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.text-link svg { width: 13px; height: 13px; }

/* small "site link" chip — used under the Instagram handle */
.site-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px; border-radius: 9999px;
  background: var(--bg-2); border: 1px solid var(--rule);
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
}
.site-link:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
.site-link svg { width: 15px; height: 15px; color: var(--teal-bright); flex-shrink: 0; }
.site-link .arrow { width: 12px; height: 12px; color: var(--ink-3); margin-left: -2px; }
.section--light .site-link { background: var(--light-panel); border-color: var(--light-rule); color: var(--light-ink-2); }
.section--light .site-link:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
.section--light .site-link svg { color: var(--teal-deep); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: linear-gradient(to bottom, rgba(31,31,31,.92), rgba(31,31,31,.55) 70%, transparent);
  transition: background .4s ease, box-shadow .4s ease;
}
.site-header.scrolled, body.menu-open .site-header {
  background: rgba(31,31,31,.96); box-shadow: 0 1px 0 var(--rule); backdrop-filter: blur(10px);
}
body.menu-open .site-header { backdrop-filter: none; }

.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.6rem; color: var(--ink); letter-spacing: .02em; }
.brand:hover { color: var(--teal-bright); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; padding: 10px 16px; font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.nav-link:hover { color: var(--ink); }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; padding: 12px; background: none; border: 1px solid var(--rule); border-radius: 10px; }
.hamburger span { display: block; height: 2px; width: 100%; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99; background: var(--bg-0); overflow-y: auto; padding: 24px 28px 64px; }
body.menu-open .mobile-menu { display: block; }
body.menu-open { overflow: hidden; }
.mobile-menu a { display: block; padding: 16px 0; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink); border-bottom: 1px solid var(--rule); }
.mobile-menu a:hover { color: var(--teal-bright); }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

/* Header CTA — compact pill inside the fixed nav bar */
.header-cta { padding: 11px 24px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--bg-0); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: rgba(57,151,152,.22); top: -140px; right: -100px; }
.hero::after { width: 420px; height: 420px; background: rgba(57,151,152,.12); bottom: -120px; left: -80px; }
.hero-content { position: relative; z-index: 2; padding-top: var(--header-h); width: 100%; }

.hero-title { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 500; letter-spacing: .005em; line-height: 1.1; max-width: 15em; margin-bottom: 26px; }
.hero-title em { font-style: italic; color: var(--teal-bright); }
.hero-sub { font-size: clamp(.95rem, 1.4vw, 1.1rem); letter-spacing: .02em; color: var(--ink-2); max-width: 40em; margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }

.hero-scroll { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 2; color: var(--ink-3); font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll::after { content: ""; width: 1px; height: 40px; background: linear-gradient(to bottom, var(--teal-bright), transparent); animation: scrollPulse 2.4s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .25; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-2); }
.section--deep { background: var(--bg-0); }
.section--light { background: var(--light-bg); color: var(--light-ink); }
.rule-top { border-top: 1px solid var(--rule); }
.section--light.rule-top { border-top-color: var(--light-rule); }

/* ---------- stats band ---------- */
.stats-band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 52px 32px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; }
.stat-num { font-size: clamp(2.7rem, 4.4vw, 4.2rem); font-weight: 200; letter-spacing: -.02em; line-height: 1; color: var(--ink); display: block; }
.stat-num .accent { color: var(--teal-bright); }
.stat-label { display: block; margin-top: 12px; font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.stat-asof { display: block; margin-top: 6px; font-size: .68rem; letter-spacing: .1em; color: var(--ink-3); }
@media (max-width: 880px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 34px 24px; border-top: 1px solid var(--rule); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--rule); }
}

/* ---------- grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- team cards (What is SBA) ---------- */
.track-card { background: var(--bg-2); border: 1px solid var(--rule); border-top: 2px solid var(--teal); border-radius: 14px; display: flex; flex-direction: column; transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; overflow: hidden; }
.track-card:hover { transform: translateY(-6px); border-color: rgba(57,151,152,.5); box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.track-code { display: block; font-family: var(--serif); font-style: italic; font-size: 1.4rem; font-weight: 500; letter-spacing: .06em; color: var(--teal-bright); margin-bottom: 8px; }
.track-body { padding: 30px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.track-body h3 { font-size: 1.4rem; margin-bottom: 4px; }
.track-kr { font-size: .82rem; letter-spacing: .14em; color: var(--ink-2); margin-bottom: 12px; display: block; }
.track-body p { color: var(--ink-2); font-size: .93rem; flex: 1; }

/* ---------- feature rows (Why SBA) ---------- */
.feature-row { border-top: 1px solid var(--rule-strong); padding-top: 40px; }
.feature-row + .feature-row { margin-top: 64px; }
.feature-num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--teal-bright); letter-spacing: .1em; display: block; margin-bottom: 16px; }
.feature-row h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 18px; }
.feature-row p { color: var(--ink-2); font-size: .98rem; }
.feature-row strong { color: var(--ink); font-weight: 600; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 9999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  color: var(--teal-bright); background: rgba(57,151,152,.1); border: 1px solid rgba(57,151,152,.35);
  white-space: nowrap;
}
.section--light .chip { color: var(--teal-deep); background: rgba(42,114,115,.08); border-color: rgba(42,114,115,.3); }

/* ---------- animated company cloud ---------- */
.company-cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; max-width: 920px; margin: 6px auto 0; padding: 26px 8px 8px; }
.cloud-chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 9999px; background: #fff; border: 1px solid rgba(255,255,255,.65);
  color: #0f172a; font-weight: 700; letter-spacing: .01em; white-space: nowrap; font-size: .92rem; line-height: 1;
  box-shadow: 0 7px 18px rgba(0,0,0,.28); animation: cloud-float 6s ease-in-out infinite alternate;
  transition: box-shadow .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cloud-chip:hover { transform: scale(1.25) translateY(-8px) !important; z-index: 20; box-shadow: 0 20px 44px rgba(0,0,0,.5); animation-play-state: paused; }
.cloud-chip:not(.has-logo):nth-child(4n+1) { font-size: 1.1rem; }
.cloud-chip:not(.has-logo):nth-child(4n+2) { font-size: .86rem; opacity: .82; }
.cloud-chip:not(.has-logo):nth-child(4n+3) { font-size: 1rem; }
.cloud-chip:not(.has-logo):nth-child(5n) { font-size: .8rem; opacity: .72; }
.cloud-chip:nth-child(2n) { animation-name: cloud-drift; }
.cloud-chip:nth-child(3n) { animation-duration: 7.6s; animation-delay: -2.2s; }
.cloud-chip:nth-child(3n+1) { animation-duration: 6.4s; animation-delay: -1.1s; }
.cloud-chip:nth-child(3n+2) { animation-duration: 8.3s; animation-delay: -3.4s; }
@keyframes cloud-float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
@keyframes cloud-drift { from { transform: translate(-4px,3px) rotate(-1deg); } to { transform: translate(4px,-3px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .cloud-chip { animation: none; } }

/* ---------- persona / spotlight cards ---------- */
.spot-card { background: var(--bg-1); border: 1px solid var(--rule); border-top: 2px solid var(--teal); border-radius: 14px; padding: 34px 30px; display: flex; flex-direction: column; height: 100%; }
.spot-gen { font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 14px; }
.spot-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.spot-card p { color: var(--ink-2); font-size: .95rem; }

/* ---------- recruiting steps timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 1px; background: var(--light-rule); }
.steps li { position: relative; padding: 0 0 44px 96px; }
.steps li:last-child { padding-bottom: 0; }
.step-num {
  position: absolute; left: 0; top: 0; width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid var(--teal); background: var(--light-panel); color: var(--teal-deep);
  font-family: var(--serif); font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { font-size: .95rem; margin-bottom: 0; color: var(--light-ink-2); max-width: 56em; }
@media (max-width: 640px) { .steps li { padding-left: 78px; } .step-num { width: 52px; height: 52px; font-size: 1.25rem; } .steps::before { left: 26px; } }

/* ---------- info callout cards ---------- */
.callout {
  background: var(--light-panel); border: 1px solid var(--light-rule); border-radius: 14px; padding: 30px 28px;
}
.callout-title { font-weight: 600; color: var(--light-ink); margin-bottom: 14px; font-size: 1.05rem; }
.callout p { color: var(--light-ink-2); font-size: .92rem; }

/* ---------- schedule bar ---------- */
.schedule-bar { background: var(--bg-0); color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; padding: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: center; }
@media (max-width: 780px) { .schedule-bar { grid-template-columns: 1fr; text-align: center; } }
.schedule-label { font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 8px; }
.schedule-value { font-size: 1.15rem; font-weight: 500; }
.schedule-note { font-size: .85rem; color: var(--ink-3); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: 110px 0; text-align: center; background: radial-gradient(ellipse at 50% 120%, rgba(57,151,152,.22), transparent 60%), var(--bg-0); border-top: 1px solid var(--rule); }
.cta-band h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 18em; margin: 0 auto 18px; }
.cta-band h2 em { font-style: italic; color: var(--teal-bright); }
.cta-band p { color: var(--ink-2); max-width: 42em; margin: 0 auto 36px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-0); border-top: 1px solid var(--rule); padding: 72px 0 0; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand { display: inline-block; margin-bottom: 16px; }
.footer-slogan { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-2); margin-bottom: 8px; }
.footer-brand p { font-size: .85rem; color: var(--ink-3); margin: 0; }
.footer-h { font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--teal-bright); margin: 0 0 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 5px 0; font-size: .9rem; color: var(--ink-2); }
.footer-list a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.footer-list a:hover { color: var(--teal-bright); }
.footer-list svg { width: 15px; height: 15px; color: var(--teal-bright); flex-shrink: 0; }
.footer-bottom { margin-top: 56px; border-top: 1px solid var(--rule); padding: 24px 28px; text-align: center; font-size: .8rem; letter-spacing: .08em; color: var(--ink-3); }

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
