/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #d6d7dd;
  --color-bg-light: #d0d1d7;
  --color-bg-card: #c9cad1;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e5e7eb;
  --font-sans: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-img {
  height: 32px;
  width: auto;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: var(--transition);
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: border-color var(--transition);
}

.lang-toggle:hover {
  border-color: var(--color-text-muted);
}

.lang-toggle__option {
  transition: color var(--transition);
  cursor: pointer;
}

.lang-toggle__option--active {
  color: var(--color-text);
  font-weight: 600;
}

.lang-toggle__divider {
  opacity: 0.3;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease, transform 6s ease;
}

.hero__slide--active {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.35) 50%,
    rgba(10, 10, 10, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero__cta {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  transition: all var(--transition);
}

.hero__cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Sections Common ===== */
.section {
  padding: 120px 0;
}

.section__label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* ===== About ===== */
.about {
  background: var(--color-bg);
}

.about__content {
  max-width: 720px;
}

.about__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.3;
}

.about__text {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.9;
}

/* ===== Works ===== */
.works {
  background: var(--color-bg-light);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.works__card {
  position: relative;
  display: block;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.works__card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.works__card:hover .works__card-img {
  transform: scale(1.05);
}

.works__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  transition: background var(--transition);
}

.works__card:hover .works__card-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.works__card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  z-index: 2;
  color: #ffffff;
}

.works__card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
}

.works__card-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* ===== Video ===== */
.video {
  background: var(--color-bg);
}

.video__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.video__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== Milestones ===== */
.milestones {
  background: var(--color-bg-light);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 80px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-accent);
}

.timeline__item {
  position: relative;
  padding-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline__item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__year {
  position: absolute;
  left: -80px;
  top: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  width: 48px;
  text-align: right;
}

.timeline__dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline__content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline__content p {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 300;
}

/* ===== Education ===== */
.education {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.education__content {
  max-width: 720px;
}

.education__text {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin-bottom: 40px;
}

.education__stats {
  display: flex;
  gap: 64px;
}

.education__stat {
  display: flex;
  flex-direction: column;
}

.education__stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}

.education__stat-label {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ===== Partners Carousel ===== */
.partners {
  background: var(--color-bg-light);
  padding-bottom: 100px;
}

.partners__carousel {
  overflow: hidden;
  margin-top: 0;
  padding: 10px 0;
}

.partners__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: partnerScroll 45s linear infinite;
}

.partners__logo {
  flex-shrink: 0;
  width: 180px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 20px;
  opacity: 0.9;
  transition: all var(--transition);
}

.partners__logo:hover {
  opacity: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.partners__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes partnerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Contact ===== */
.contact {
  background: var(--color-bg);
}

.contact__desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  margin-top: -24px;
}

.contact__email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.contact__email:hover {
  color: var(--color-accent);
}

/* ===== Press ===== */
.press {
  background: var(--color-bg-light);
}

.press__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.press__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition);
}

.press__item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.press__date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.press__title {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
}

.press__source {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.press__thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  margin-left: auto;
}

@media (max-width: 768px) {
  .press__item {
    padding: 16px;
    gap: 12px;
  }
  .press__source {
    display: none;
  }
  .press__thumb {
    width: 60px;
    height: 60px;
  }
}

/* ===== Footer ===== */
.footer {
  background: #1a1a2e;
  color: #f0f0f0;
  padding-top: 48px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
}

.footer__logo {
  height: 28px;
  width: auto;
  margin-bottom: 8px;
  display: block;
}

.footer__tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.footer__center {
  text-align: center;
}

.footer__email {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition);
  font-weight: 300;
}

.footer__email:hover {
  color: #ffffff;
}

.footer__biz {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  margin-top: 4px;
}

.footer__social {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer__social:hover {
  color: #ffffff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition);
    border-left: 1px solid var(--color-border);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
  }

  .nav__menu--open {
    right: 0;
  }

  .header {
    --header-height: 56px;
  }

  .nav__logo-img {
    height: 22px !important;
    max-height: 22px;
  }

  .nav__link {
    font-size: 1rem;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .section {
    padding: 80px 0;
  }

  .works__grid {
    grid-template-columns: 1fr;
  }

  .works__card {
    height: 300px;
  }

  .contact__form-row {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 32px;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline__year {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    text-align: left;
    font-size: 0.85rem;
    margin-bottom: 4px;
  }

  .timeline__dot {
    left: -24px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
  }

  .footer__logo {
    margin: 0 auto 8px;
  }

  .education__stats {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.5rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .partners__logo {
    width: 140px;
    height: 72px;
    padding: 12px 16px;
  }

  .partners__logo img {
    max-width: 110px;
    max-height: 44px;
  }

  .partners__track {
    gap: 24px;
  }
}
