@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@700&display=swap");

/*
  1080 기준 풀반응형
  - 1080 이하: 100vw/1080 비율로 축소
  - 1080 초과: 타이포·UI는 확대 없음
  - 히어로 배경: 원본 비율(5404×2404) 기준, 931px 이상은 세로 4/3
*/
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

.company-page {
  min-width: 320px;
  color: #fff;
  background: #242424;
  font-family: "SUIT", sans-serif;
  overflow-x: hidden;
}

.company-page .top-ribbon {
  color: #000;
  background: #fff;
}

/* 헤더 크기는 landing.css(index)와 동일 — 회사 소개에서 크기 재정의 금지 */
.company-page .home-header {
  position: relative;
  z-index: 10;
}

.company-page .nav-link.is-active::after {
  transform: scaleX(1);
}

.company-page .login-btn {
  color: #000;
  background: #fff;
}

.company-page .signup-btn {
  color: #fff;
  background: #000;
}

.company-page .login-btn:hover,
.company-page .login-btn:focus-visible {
  color: #000;
  background: #fff;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.company-page .signup-btn:hover,
.company-page .signup-btn:focus-visible {
  color: #fff;
  background: #000;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.company-hero {
  position: relative;
  width: 100%;
  /* 931px 이상: 원본 비율 높이의 4/3 (세로 1/3 더 길게), 이미지는 cover로 비율 유지 */
  height: min(calc(100vw * 2404 / 5404 * 4 / 3), calc(1080px * 2404 / 5404 * 4 / 3));
  min-height: 0;
  background-color: #222;
  background-image: url("/static/company-background.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  isolation: isolate;
}

.company-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  content: "";
}

.company-hero-copy {
  display: flex;
  width: min(90%, 972px);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(56px, calc(65 * 100vw / 1080), 65px) 0 clamp(32px, calc(44 * 100vw / 1080), 44px);
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-sizing: border-box;
}

.company-hero-copy h1 {
  margin: clamp(18px, calc(35 * 100vw / 1080), 35px);
  padding: 0;
  font-size: clamp(36px, 5vw, 45px);
  font-weight: 700;
  line-height: 1.334;
  letter-spacing: -.04em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .2);
  word-break: keep-all;
}

.company-scroll-arrow {
  display: grid;
  width: clamp(34px, calc(40 * 100vw / 1080), 40px);
  height: clamp(34px, calc(40 * 100vw / 1080), 40px);
  margin-bottom: clamp(24px, calc(45 * 100vw / 1080), 45px);
  place-items: center;
  border-radius: 50%;
  transition: transform .2s ease;
}

.company-scroll-arrow:hover,
.company-scroll-arrow:focus-visible {
  transform: translateY(7px);
}

.company-scroll-arrow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-story {
  display: flex;
  padding: clamp(80px, calc(129 * 100vw / 1080), 129px) clamp(16px, calc(24 * 100vw / 1080), 24px) clamp(72px, calc(112 * 100vw / 1080), 112px);
  flex-direction: column;
  align-items: center;
  background: #242424;
  text-align: center;
}

.story-intro,
.story-question {
  width: min(100%, 968px);
}

.mobile-copy {
  display: none;
}

.desktop-copy {
  display: inline;
}

.story-folder {
  margin-bottom: clamp(8px, calc(13 * 100vw / 1080), 13px);
  font-size: clamp(28px, calc(37 * 100vw / 1080), 37px);
  font-weight: 800;
  line-height: 2;
  letter-spacing: -.05em;
}

.story-intro h2,
.story-question h2 {
  margin: 0 auto;
  font-size: clamp(24px, calc(31 * 100vw / 1080), 28px);
  font-weight: 800;
  line-height: 1.965;
  letter-spacing: -.05em;
  word-break: keep-all;
}

.story-intro p,
.story-question p {
  margin: clamp(20px, calc(25 * 100vw / 1080), 25px) auto 0;
  font-size: clamp(16px, calc(20 * 100vw / 1080), 18px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -.05em;
  word-break: keep-all;
}

.story-divider {
  display: block;
  width: clamp(1px, calc(11 * 100vw / 1080), 9px);
  height: clamp(55px, calc(125 * 100vw / 1080), 125px);
  margin: clamp(48px, calc(62 * 100vw / 1080), 62px) auto clamp(42px, calc(57 * 100vw / 1080), 57px);
  object-fit: contain;
}

.story-question h2 {
  display: inline-flex;
  width: min(90vw, 431px);
  min-height: clamp(48px, calc(55 * 100vw / 1080), 55px);
  padding: .14em .5em;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #063291;
  line-height: 1.35;
}

.story-question h3 {
  margin: clamp(28px, calc(39 * 100vw / 1080), 39px) auto 0;
  font-size: clamp(18px, calc(20 * 100vw / 1080), 20px);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -.05em;
  word-break: keep-all;
}

.story-question p {
  margin-top: clamp(14px, calc(14 * 100vw / 1080), 14px);
}

.vision-card {
  display: grid;
  width: min(calc(100% - 32px), 895px);
  height: clamp(360px, calc(433 * 100vw / 1080), 433px);
  margin: clamp(64px, calc(101 * 100vw / 1080), 101px) auto 0;
  padding: clamp(25px, calc(36 * 100vw / 1080), 36px) clamp(10px, calc(84 * 100vw / 1080), 84px);
  place-items: center;
  border: 2px solid #fff;
  border-radius: clamp(28px, calc(46 * 100vw / 1080), 46px);
  background: rgba(255, 255, 255, .25);
}

.vision-content {
  display: flex;
  width: min(100%, 726px);
  min-height: clamp(260px, calc(326 * 100vw / 1080), 326px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vision-bulb {
  font-size: clamp(30px, calc(38 * 100vw / 1080), 38px);
  font-weight: 800;
  line-height: 2.045;
  letter-spacing: -.03em;
}

.vision-content h2 {
  margin: 0;
  font-family: "Alexandria", "SUIT", sans-serif;
  font-size: clamp(21px, calc(31 * 100vw / 1080), 31px);
  font-weight: 700;
  line-height: 1.394;
  letter-spacing: -.03em;
}

.vision-content p,
.vision-content strong {
  font-size: clamp(10px, calc(23 * 100vw / 1080), 20px);
  line-height: 1.393;
  letter-spacing: -.05em;
  word-break: keep-all;
}

.vision-content p {
  margin: clamp(24px, calc(39 * 100vw / 1080), 39px) auto 0;
  font-weight: 500;
}

.vision-content strong {
  display: block;
  margin-top: clamp(22px, calc(34 * 100vw / 1080), 34px);
  font-weight: 800;
}

@media (min-width: 1081px) {
  .company-hero-copy h1 { font-size: 45px; }
}

@media (min-width: 931px) {
  .company-hero-copy h1 {
    margin: clamp(18px, calc(35 * 100vw / 80), 70px);
  }
}

@media (max-width: 930px) {
  .company-page .main-nav {
    background: rgba(0, 0, 0, .96);
  }

  .company-page .nav-link.is-active::after {
    transform: scaleX(0);
  }

  .company-page .mobile-auth-links .login-btn {
    color: #000;
    background: #fff;
  }

  .company-page .mobile-auth-links .signup-btn {
    color: #fff;
    background: #000;
    border: 1px solid rgba(255, 255, 255, .65);
  }

  .company-page .mobile-auth-links .login-btn:hover,
  .company-page .mobile-auth-links .login-btn:focus-visible {
    color: #000;
    background: #fff;
  }

  .company-page .mobile-auth-links .signup-btn:hover,
  .company-page .mobile-auth-links .signup-btn:focus-visible {
    color: #fff;
    background: #000;
  }

  /* 좁은 화면에서는 콘텐츠 높이 확보, 배경은 cover로 중앙 배치 */
  .company-hero {
    height: auto;
    min-height: clamp(480px, 88vw, 620px);
    background-size: cover;
    background-position: center center;
  }

  .company-hero-copy {
    width: calc(100% - 40px);
    min-height: clamp(430px, 72vw, 540px);
    padding-top: clamp(64px, 11vw, 90px);
  }

  .company-story {
    padding-right: clamp(20px, 4.5vw, 36px);
    padding-left: clamp(20px, 4.5vw, 36px);
  }

  .vision-card {
    height: auto;
    min-height: 0;
    padding: clamp(28px, 6vw, 48px) clamp(14px, 4vw, 36px);
  }

  .vision-content {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 20px;
  }

  .company-hero {
    min-height: 520px;
    background-position: 54% center;
  }

  .company-hero-copy {
    width: calc(100% - 32px);
    min-height: 450px;
    padding: 80px 0 32px;
  }

  .company-hero-copy h1 {
    font-size: clamp(18px, 9vw, 32px);
    line-height: 1.3;
  }

  .company-story {
    padding: 72px 20px 80px;
  }

  .story-folder {
    margin-bottom: 8px;
    font-size: 28px;
  }

  .story-intro h2,
  .story-question h2 {
    font-size: clamp(18px, 6.4vw, 20px);
    line-height: 1.45;
  }

  .story-intro p,
  .story-question p {
    margin-top: 22px;
    font-size: clamp(13px, 4.2vw, 13px);
    line-height: 1.7;
  }

  .story-divider {
    width: 10px;
    height: 55px;
    margin: 48px auto 40px;
  }

  .story-question h2 {
    width: 100%;
    min-height: 52px;
    padding: 12px 10px;
  }

  .story-question h3 {
    margin-top: 32px;
    font-size: clamp(18px, 4.8vw, 18px);
    line-height: 1.55;
  }

  .vision-card {
    margin-top: 56px;
    padding: 25px 10px;
    border-radius: 24px;
  }

  .vision-bulb {
    font-size: 30px;
  }

  .vision-content h2 {
    font-size: 21px;
  }

  .vision-content p,
  .vision-content strong {
    font-size: clamp(15px, 4.2vw, 15px);
    line-height: 1.65;
  }

  .vision-content p {
    margin-top: 24px;
  }

  .vision-content strong {
    margin-top: 20px;
  }
}

@media (max-width: 430px) {
  .mobile-copy {
    font-size: 14px;
  }

  .story-intro h2,
  .story-question h2 {
    font-size: clamp(18px, 3.24vw, 20px);
  }

  .story-question h3 {
    font-size: clamp(18px, 2.91vw, 18px);
  }
}

@media (max-width: 390px) {
  .company-story {
    padding-right: 16px;
    padding-left: 16px;
  }

  .vision-card {
    padding: 22px 8px;
    border-radius: 20px;
  }
}

@media (max-width: 618px) {
  .desktop-copy {
    display: none;
  }

  .mobile-copy {
    display: inline;
  }

  .story-intro h2,
  .story-question h2 {
    font-size: clamp(16px, 3.24vw, 20px);
  }

  .story-intro p,
  .story-question p {
    font-size: clamp(10px, 2.1vw, 13px);
  }

  .story-question h2 {
    width: clamp(260px, 69.74vw, 431px);
    min-height: clamp(42px, 8.9vw, 55px);
    padding: clamp(9px, 1.94vw, 12px) clamp(8px, 1.62vw, 10px);
  }

  .story-question h3 {
    font-size: clamp(15px, 2.91vw, 18px);
  }

  .vision-content p,
  .vision-content strong {
    font-size: clamp(12px, 2.43vw, 15px);
  }
}

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

  .company-scroll-arrow {
    transition: none;
  }
}
