/* eduwise.kr 2/2 — 구역(회사 소개 · 사업 내용 · 큰 화면 · 대표 소개 · 문의) · 발 · 드러남 · 좁은 화면. site.css 다음에 읽는다. */

.section {
  padding: 200px 0;
  background: var(--paper);
}

/* 메뉴로 이동하면 구역 위 여백을 건너뛰고 제목이 위쪽 메뉴(68px) 바로 아래 오게 */
.section {
  scroll-margin-top: calc(68px + 56px - 200px);
}

/* 같은 바탕이 이어지는 두 구역(회사 소개→사업 내용, 대표 소개→문의) 사이엔 여백을 한 번만 */
.section.is-joined {
  padding-bottom: 0;
}

.section-dark {
  background-color: var(--night);
  color: var(--on-brand);
}

.sec-head {
  margin-bottom: 120px;
}

.sec-no {
  margin-bottom: 24px;
  color: var(--muted);
}

.section-dark .sec-no,
.contact-sec .sec-no {
  color: var(--signal);
}

.huge {
  font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.22;
  text-wrap: balance;
}

.hl[data-draw] {
  background-size: 0% 0.07em;
}

.hl[data-draw].is-drawn,
.huge .hl {
  background-size: 100% 0.07em;
}

.huge .hl[data-draw]:not(.is-drawn) {
  background-size: 0% 0.07em;
}

/* ── 01 회사 소개: 소개 · 정체성 3칸 / 02 사업 내용: 사업 카드 ── */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: end;
}

.about-body {
  display: grid;
  gap: 24px;
  max-width: 30em;
  padding-bottom: 4px;
}

.about-lead {
  font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.4375rem);
  font-weight: 650;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.about-text {
  color: var(--muted);
  text-wrap: pretty;
}

/* 사업 카드 = 대상 · 형태 · 시작 */
.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.offer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--edge-light);
  border-radius: var(--radius-m);
  background: var(--night-2);
  color: var(--on-brand);
}

.offer-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .offer:hover .offer-img {
    transform: scale(1.015);
  }
}

.offer:hover,
.offer:focus-within {
  border-color: var(--brand);
}

.offer:focus-within {
  outline: 1px solid var(--brand);
  outline-offset: 4px;
}

.offer-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  padding: 32px 28px;
}

.offer-tag {
  color: var(--signal);
}

.offer h3 {
  font-size: clamp(1.5rem, 1.1rem + 0.75vw, 1.8125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.offer-lead {
  max-width: 30em;
  font-size: 1rem;
  text-wrap: pretty;
  color: color-mix(in srgb, var(--on-brand) 74%, transparent);
}

.offer-spec {
  margin: 4px 0 8px;
  border-top: 1px solid var(--edge-dark);
}

.offer-spec div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--edge-dark);
  font-size: 0.9375rem;
}

.offer-spec dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding-top: 3px;
  color: color-mix(in srgb, var(--on-brand) 62%, transparent);
}

.offer-spec dd {
  margin: 0;
  font-weight: 600;
}

/* 카드 '내용' 칸 키워드 칩 */
.offer-spec .row-tags {
  align-items: start;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--on-brand) 22%, transparent);
  background: color-mix(in srgb, var(--on-brand) 4%, transparent);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  color: color-mix(in srgb, var(--on-brand) 86%, transparent);
  max-width: 100%;
}

.offer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9375rem;
}

.offer-links a {
  display: inline-block;
  padding: 6px 0;
}

.offer-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* ── 큰 화면 한 장: 사진이 다가오고 글자가 떠오른다(--p는 site.js) ── */
.statement {
  position: relative;
  height: 170svh;
  background: var(--night);
  color: var(--on-brand);
}

.statement-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.statement-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(calc(1.3 - 0.3 * var(--p, 1)));
  opacity: calc(0.35 + 0.65 * var(--p, 1));
}

.statement-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--night) 70%, transparent), transparent 55%);
}

.statement-text {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 3.5vw, 48px);
  font-size: clamp(2rem, 1rem + 3.6vw, 4.5rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.statement-text span {
  transform: translateY(calc((1 - var(--p, 1)) * 60px));
  opacity: calc(var(--p, 1) * 1.6 - 0.2);
}

.statement-text span:nth-child(2) {
  transform: translateY(calc((1 - var(--p, 1)) * 120px));
  opacity: calc(var(--p, 1) * 1.6 - 0.45);
}

.statement-text span:nth-child(3) {
  transform: translateY(calc((1 - var(--p, 1)) * 180px));
  opacity: calc(var(--p, 1) * 2 - 0.7);
}

.statement-text em {
  font-style: normal;
  color: var(--signal);
}

/* ── 02 대표 ─────────────────────────────── */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  align-items: center;
}

.founder-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.founder-body {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.founder-body .sec-no {
  margin-bottom: 0;
}

.founder-role {
  margin-top: -8px;
  font-weight: 650;
  color: var(--signal);
}

.founder .quote {
  margin: 8px 0;
  max-width: 30em;
  padding-left: 22px;
  border-left: 3px solid var(--signal);
  font-family: var(--font-ko-serif);
  font-weight: 500;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem);
  line-height: 1.9;
  color: color-mix(in srgb, var(--on-brand) 86%, transparent);
}

/* 대표가 일하는 방식 3줄 — ss2ppl.kr에 없는 이야기 */
.ways {
  width: 100%;
  margin-top: 8px;
}

.ways-label {
  margin-bottom: 8px;
  color: var(--signal);
}

.ways-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--edge-dark);
}

.ways-list li:first-child {
  border-top: 1px solid color-mix(in srgb, var(--on-brand) 40%, transparent);
}

/* 번호 아래 영문 키워드 — 투자 · 통찰 · 레버리지 */
.ways-no {
  display: grid;
  align-content: start;
  gap: 4px;
  font-family: var(--font-latin-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--signal);
}

.ways-no em {
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--on-brand) 62%, transparent);
}

.ways-list b {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--on-brand);
  letter-spacing: -0.02em;
}

.ways-list p {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--on-brand) 70%, transparent);
}

.founder-cta {
  margin-top: 16px;
}

/* ── 03 문의 ─────────────────────────────── */
.contact-sec {
  position: relative;
  overflow: hidden;
  color: var(--on-brand);
  background: var(--night) url(/assets/img/ai-contact-halftone.webp) center bottom / cover no-repeat;
}

.contact-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--night) 10%, color-mix(in srgb, var(--night) 82%, transparent) 55%, color-mix(in srgb, var(--night) 55%, transparent));
}

.contact-sec .wrap {
  position: relative;
}

.mail-big {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.mail-big .mono {
  color: var(--signal);
}

.mail-addr {
  user-select: all;
  font-size: clamp(1.375rem, 1rem + 2vw, 2.75rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  border-bottom: 2px solid var(--signal);
}

.contact-alt {
  margin-top: 24px;
  color: color-mix(in srgb, var(--on-brand) 74%, transparent);
}

/* ── 발 ─────────────────────────────────── */
.foot {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background: var(--night);
  color: color-mix(in srgb, var(--on-brand) 60%, transparent);
  font-size: 0.875rem;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--edge-dark);
}

.foot-family {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot-family a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--dur-1) var(--ease-out);
}

.foot-family a:hover,
.foot-family a:focus-visible {
  color: var(--on-brand);
}

.foot-legal {
  margin-top: 20px;
  font-size: 0.75rem;
  line-height: 1.8;
}

/* ── 드러남: JS가 있을 때만 숨겼다가 화면에 들어오면 보인다 ── */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .offers > .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .offers > .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── 좁은 화면 ─────────────────────────────── */
@media (max-width: 1080px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  /* 사업 카드: 그림 왼쪽 · 글 오른쪽 한 줄씩 */
  .offers {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .offer-img {
    height: 100%;
    aspect-ratio: auto;
  }

}

@media (max-width: 860px) {
  .ways-list li {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .top-nav {
    display: none;
  }

  .top .pill-btn {
    margin-left: auto;
  }

  /* 첫 화면: 사진 한 장 가득, 글은 그 위에 */
  .hero {
    display: block;
    height: 100svh;
    min-height: 600px;
  }

  .hero-left {
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 24px 24px 32px;
    background: none;
    pointer-events: none;
  }

  .hero-left::after {
    display: none;
  }

  .hero-left a {
    pointer-events: auto;
  }

  .hero-brand .mono {
    color: color-mix(in srgb, var(--on-brand) 72%, transparent);
  }

  .hero-mark {
    width: 36px;
    height: 36px;
  }

  .hero-claim {
    margin-top: 56px;
    max-width: 28em;
  }

  .hero-claim h1 {
    font-size: clamp(2.25rem, 1.3rem + 4vw, 3rem);
    color: var(--on-brand);
  }

  .hero-points {
    gap: 8px;
    margin-top: 22px;
    color: color-mix(in srgb, var(--on-brand) 86%, transparent);
    font-size: 0.9375rem;
  }

  /* 모바일 첫 화면은 사진 위라 버튼을 밝게 */
  .hero-cta {
    margin-top: 24px;
  }

  .hero-cta .pill-btn-ink {
    border-color: var(--on-brand);
    background: var(--on-brand);
    color: var(--ink);
  }

  .hero-right {
    position: absolute;
    inset: 0;
    padding: 24px;
  }

  .hero-right::before {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--night) 92%, transparent) 0%, color-mix(in srgb, var(--night) 55%, transparent) 34%, transparent 50%),
      linear-gradient(0deg, color-mix(in srgb, var(--night) 80%, transparent), transparent 30%);
  }

  .giant-ink {
    display: none;
  }

  .giant-cream {
    clip-path: none;
  }

  .giant {
    top: 66%;
    font-size: 25vw;
  }

  .scroll-cue {
    left: 24px;
    bottom: 22px;
    color: color-mix(in srgb, var(--on-brand) 75%, transparent);
  }

  .scroll-cue i {
    background: color-mix(in srgb, var(--on-brand) 25%, transparent);
  }

  .section {
    padding: 128px 0;
    scroll-margin-top: calc(68px + 32px - 128px);
  }

  .sec-head {
    margin-bottom: 64px;
  }

  /* 사업 카드는 위아래로 쌓는다 — 핵심은 옆으로 숨기지 않는다 */
  .offers {
    gap: 24px;
  }

  .offer {
    display: flex;
  }

  .offer-img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .offer-body {
    padding: 28px 24px 32px;
  }

  .statement {
    height: 160svh;
  }

  .statement-img {
    object-position: 80% center;
  }

  .statement-sticky::after {
    background: linear-gradient(180deg, color-mix(in srgb, var(--night) 75%, transparent), transparent 60%);
  }

  .statement-sticky {
    align-items: start;
    padding-top: 22svh;
  }

  .statement-text {
    font-size: clamp(1.75rem, 1rem + 3.4vw, 2.25rem);
    line-height: 1.35;
  }

  .founder {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .founder-photo {
    width: 100%;
    max-width: 400px;
  }

}

/* 태블릿 카드: 이미지가 본문보다 길어지지 않게 */
@media (min-width: 561px) and (max-width: 860px) {
  .offer {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .offer-img {
    height: 100%;
    aspect-ratio: auto;
  }
}

/* 움직임을 줄이면 스크롤 장면도 한 장으로 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .statement {
    height: auto;
  }

  .statement-sticky {
    position: relative;
  }

  .js .reveal,
  .statement-img,
  .statement-text span,
  .statement-text span:nth-child(n) {
    transform: none;
    opacity: 1;
  }

  .hl[data-draw]:not(.is-drawn),
  .huge .hl[data-draw]:not(.is-drawn) {
    background-size: 100% 0.07em;
  }
}

/* 아주 좁은 휴대폰: 키워드는 숨기고 번호만 — 항목마다 두 줄 유지 */
@media (max-width: 380px) {
  .ways-list li {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .ways-no em {
    display: none;
  }
}
