/* ==========================================================================
   STABLY - company.css  (회사소개 page only; every class is prefixed s-co-)

   1. Our story band
   2. Team
   3. History timeline
   4. Awards
   5. Responsive
   ========================================================================== */


/* 1. Our story band (full-bleed photo under the overlay header)
   -------------------------------------------------------------------------- */
/* Company page runs tighter than the home page: shorter section padding */
.s-section { --s-section-y: 80px; }

.s-co-story {
  min-height: clamp(560px, 66vh, 720px);
}
/* Overlay stays inside the brief's 30~60% range: 60% behind the copy on the
   left, easing to 40% so the trusses read on the right */
.s-co-story .s-band__bg::after {
  background: linear-gradient(90deg, rgba(11, 18, 32, .6) 0%, rgba(11, 18, 32, .5) 55%, rgba(11, 18, 32, .4) 100%);
}
/* Eyebrow in light gray rather than logo blue: the blue falls under 4.5:1 on
   the light steel behind it */
.s-co-story .s-label { color: var(--s-blue); }
.s-co-story .s-band__body { max-width: 760px; }
.s-co-story .s-band__bg img { object-position: 50% 30%; }   /* keep the buildings at the bottom of the photo out of frame */

/* Wordmark headline: one line down to 480px; the <br> splits it at phone widths */
.s-co-story .s-h1 {
  font-size: 60px;
  letter-spacing: -.01em;
}
.s-co-story__br { display: none; }
.s-co-story .s-h1 + .s-lead { margin-top: 28px; }
.s-co-story .s-lead + .s-lead { margin-top: 20px; }


/* 2. Team
   -------------------------------------------------------------------------- */
.s-co-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 40px;
  margin-top: 40px;
}

.s-co-member__photo {
  width: 128px;                 /* small portrait, not a hero image */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--s-radius);
  background: var(--s-bg-2);
}
.s-co-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s-co-member__photo--beomjun img  { object-position: center 16%; }
.s-co-member__photo--yeonsang img { object-position: center 28%; }
.s-co-member__photo--yoonho img   { object-position: center 20%; }
.s-co-member__photo--sehyun img   { object-position: center 25%; }

/* No photo yet (SPEC §3): initial on a circular gray background, inside the
   4:5 slot for row alignment */
.s-co-member__photo--empty {
  display: grid;
  place-items: center;
}
.s-co-member__initial {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--s-line);
  color: var(--s-ink-3);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.s-co-member__name {
  margin-top: 24px;
  font-size: 22px;
}
.s-co-member__title {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--s-ink-3);
}
.s-co-member__lines {
  margin-top: 20px;
  border-top: 1px solid var(--s-line);
}
.s-co-member__lines li {
  padding: 10px 0;
  border-bottom: 1px solid var(--s-line);
  font-size: 15px;
  line-height: 1.6;
  color: var(--s-ink-2);
}


/* 3. History timeline
   -------------------------------------------------------------------------- */
.s-co-timeline {
  --s-co-tl-date: 112px;   /* date column */
  --s-co-tl-rail: 40px;    /* column that carries the line and the dot */
  max-width: 880px;
  margin-top: 36px;
}
.s-co-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--s-co-tl-date) var(--s-co-tl-rail) 1fr;
  align-items: start;
  padding-bottom: 40px;
}
.s-co-timeline__item:last-child { padding-bottom: 0; }

/* the rail: a hairline running through the middle column, one dot per entry */
.s-co-timeline__item::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: -14px;
  left: calc(var(--s-co-tl-date) + var(--s-co-tl-rail) / 2);
  width: 1px;
  background: var(--s-line);
}
.s-co-timeline__item:last-child::before { display: none; }
.s-co-timeline__item::after {
  content: "";
  position: absolute;
  top: 9px;
  left: calc(var(--s-co-tl-date) + var(--s-co-tl-rail) / 2 - 5px);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--s-blue);
  box-shadow: 0 0 0 3px var(--s-bg-2);
}

.s-co-timeline__date {
  grid-column: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--s-ink);
  font-variant-numeric: tabular-nums;
}
.s-co-timeline__text {
  grid-column: 3;
  font-size: 17px;
  line-height: 1.7;
  color: var(--s-ink-2);
}
.s-co-timeline__text p + p { margin-top: 4px; }


/* 4. Awards (3 × 2, no borders, mark + name + one rank line)
   -------------------------------------------------------------------------- */
.s-co-awards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.s-co-award {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px 26px;
  border: 1px solid var(--s-line);
  border-radius: 6px;
  background: #fff;
}
.s-co-award__logo {
  display: grid;
  place-items: center;
  height: 72px;
  width: 100%;
}
.s-co-award__logo img {
  max-height: 64px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.s-co-award__name {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.s-co-award__rank {
  margin-top: 4px;
  font-size: 15px;
  color: var(--s-ink-2);
}
.s-co-award__desc {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--s-ink-3);
  text-wrap: balance;
}
.s-co-award__date {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  color: var(--s-ink-3);
}


/* 5. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .s-co-story .s-h1 { font-size: 48px; }

  .s-co-team { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; margin-top: 48px; }
  .s-co-member__name { font-size: 20px; }

  .s-co-awards { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
  .s-co-timeline { margin-top: 48px; }
}

@media (max-width: 767px) {
  .s-co-story { min-height: 0; }
  .s-co-story .s-h1 { font-size: 34px; }
  .s-co-story .s-h1 + .s-lead { margin-top: 20px; }
  .s-co-story .s-lead + .s-lead { margin-top: 16px; }

  .s-co-team { grid-template-columns: 1fr; gap: 48px; margin-top: 40px; }
  .s-co-member__initial { width: 80px; height: 80px; font-size: 28px; }
  .s-co-member__name { margin-top: 20px; }

  .s-co-timeline {
    --s-co-tl-date: 68px;
    --s-co-tl-rail: 32px;
    margin-top: 40px;
  }
  .s-co-timeline__item { padding-bottom: 28px; }
  .s-co-timeline__date { font-size: 15px; }
  .s-co-timeline__text { font-size: 16px; }

  .s-co-awards { gap: 14px; margin-top: 28px; }
  .s-co-award { padding: 24px 18px 20px; }
  .s-co-award__logo { height: 60px; }
  .s-co-award__logo img { max-height: 52px; max-width: 170px; }
  .s-section { --s-section-y: 56px; }
  .s-co-award__name { margin-top: 14px; font-size: 16px; }
}

@media (max-width: 479px) {
  .s-co-story__br { display: inline; }
  .s-co-awards { grid-template-columns: 1fr; gap: 14px; }
}

/* History: once the list scrolls into view (site.js adds .is-in), the entries
   appear top-to-bottom one after another and each rail segment draws downward. */
html.js .s-co-timeline__item {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .45s var(--s-ease), transform .45s var(--s-ease);
  transition-delay: calc(var(--i, 0) * 140ms);
}
html.js .s-co-timeline__item::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s linear;
  transition-delay: calc(var(--i, 0) * 140ms + 180ms);
}
html.js .s-co-timeline.is-in .s-co-timeline__item { opacity: 1; transform: none; }
html.js .s-co-timeline.is-in .s-co-timeline__item::before { transform: scaleY(1); }
html.js-late .s-co-timeline__item { opacity: 1; transform: none; }
html.js-late .s-co-timeline__item::before { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .s-co-timeline__item, html.js .s-co-timeline__item::before { opacity: 1; transform: none; transition: none; }
}

/* On light sections the oversized labels are navy, not blue */
.s-section .s-label--xl { color: var(--s-ink); }
