:root {
  --navy: #0a2540;
  --navy-deep: #061828;
  --blue: #1e6fd9;
  --blue-bright: #3b9eff;
  --blue-soft: #e8f2fc;
  --ink: #142033;
  --muted: #5a6b7d;
  --line: rgba(10, 37, 64, 0.12);
  --white: #ffffff;
  --surface: #f5f8fc;
  --radius: 4px;
  --font-display: "Outfit", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", "Outfit", sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--blue);
}

.nav-cta {
  padding: 10px 18px;
  background: var(--navy);
  color: var(--white) !important;
  opacity: 1 !important;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease) !important;
}

.nav-cta:hover {
  background: var(--blue) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 12px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

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

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

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(160deg, #071a2e 0%, #0a2540 42%, #0d3a66 78%, #12508a 100%);
  color: var(--white);
  padding: calc(var(--header-h) + 40px) 24px 80px;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.hero-orb--a {
  width: 420px;
  height: 420px;
  background: var(--blue-bright);
  top: -10%;
  right: -5%;
  animation: float-a 12s ease-in-out infinite;
}

.hero-orb--b {
  width: 360px;
  height: 360px;
  background: #1a5fb4;
  bottom: 5%;
  left: -8%;
  animation: float-b 14s ease-in-out infinite;
}

.hero-swoosh {
  position: absolute;
  width: 120%;
  height: 280px;
  left: -10%;
  bottom: 18%;
  background: linear-gradient(90deg, transparent, rgba(59, 158, 255, 0.35), transparent);
  transform: rotate(-8deg) skewX(-12deg);
  filter: blur(2px);
  animation: swoosh-pulse 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  animation: hero-in 1s var(--ease) both;
}

.hero-logo {
  width: min(280px, 70vw);
  height: auto;
  margin: 0 auto 36px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
  background: rgba(255, 255, 255, 0.96);
  padding: 16px 28px;
  border-radius: 8px;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 3.1rem);
  font-weight: 700;
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34em;
  margin: 0 auto 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

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

.btn-primary {
  background: var(--blue-bright);
  color: var(--white);
}

.btn-primary:hover {
  background: #5aadff;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll span {
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

/* Sections */
.section {
  padding: 100px 24px;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36em;
  margin-bottom: 48px;
}

/* About */
.about {
  background: var(--surface);
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.about-points li {
  display: grid;
  grid-template-columns: minmax(100px, 160px) 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.about-points li.is-visible {
  opacity: 1;
  transform: none;
}

.about-points strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
}

.about-points span {
  color: var(--muted);
}

/* Departments */
.dept-list {
  display: grid;
  gap: 0;
}

.dept {
  display: grid;
  grid-template-columns: 72px 220px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    background 0.3s;
  transition-delay: calc(var(--i) * 60ms);
}

.dept:first-child {
  border-top: 1px solid var(--line);
}

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

.dept:hover {
  background: linear-gradient(90deg, rgba(30, 111, 217, 0.04), transparent 60%);
}

.dept-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
}

.dept h3 {
  font-size: 1.25rem;
  color: var(--navy);
}

.dept p {
  color: var(--muted);
  margin: 0;
}

/* Leadership */
.leadership {
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}

.leadership .section-label {
  color: var(--blue-bright);
}

.leadership h2 {
  color: var(--white);
}

.leadership-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.ceo-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
  background: linear-gradient(120deg, #fff 30%, var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ceo-title {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.leadership blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 28em;
}

.leadership-visual {
  display: flex;
  justify-content: center;
}

.ceo-mark {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(59, 158, 255, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(59, 158, 255, 0.25), transparent 55%),
    rgba(255, 255, 255, 0.03);
  animation: mark-spin 20s linear infinite;
  box-shadow: 0 0 0 40px rgba(59, 158, 255, 0.04);
}

.ceo-mark span {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--white);
}

.ceo-mark small {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue-bright);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

/* Contact */
.contact {
  background: var(--surface);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.15);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
}

.form-note {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  height: 36px;
  width: auto;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 4px;
}

.footer-meta {
  font-size: 0.875rem;
  text-align: right;
}

.footer-meta p + p {
  margin-top: 4px;
  opacity: 0.7;
}

/* Animations */
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 40px); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -25px); }
}

@keyframes swoosh-pulse {
  0%, 100% { opacity: 0.5; transform: rotate(-8deg) skewX(-12deg) scaleX(1); }
  50% { opacity: 0.85; transform: rotate(-8deg) skewX(-12deg) scaleX(1.05); }
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

@keyframes mark-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: 0 !important;
  }

  .about-points li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dept {
    grid-template-columns: 48px 1fr;
    gap: 8px 16px;
  }

  .dept h3 {
    grid-column: 2;
  }

  .dept p {
    grid-column: 1 / -1;
  }

  .leadership-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .leadership-visual {
    order: -1;
  }

  .ceo-mark {
    width: 180px;
    box-shadow: 0 0 0 24px rgba(59, 158, 255, 0.04);
  }

  .ceo-mark span {
    font-size: 2.2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
