/* ==========================================================================
   MEDIONE PHARM — Landing Page
   ========================================================================== */

:root {
  --navy: #063C78;
  --navy-2: #073B75;
  --navy-deep: #05305e;
  --blue: #0D67C8;
  --blue-2: #1575D1;
  --blue-light: #EAF5FF;
  --blue-lighter: #F3F9FF;
  --white: #FFFFFF;
  --text: #17324D;
  --text-sub: #5F7285;
  --line: #DDEAF6;
  --kakao: #FEE500;
  --kakao-text: #191919;

  --bg-alt-1: #F8FBFF;
  --bg-alt-2: #F2F8FE;

  --max-width: 1240px;
  --pad-pc: 24px;
  --pad-mobile: 20px;
  --header-height: 84px;

  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-soft: 0 10px 30px rgba(6, 60, 120, 0.08);
  --shadow-hover: 0 18px 40px rgba(6, 60, 120, 0.14);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "PretendardVariable", "Pretendard", "Noto Sans KR", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.script-font { font-family: "Caveat", cursive; }

/* ---------- Section base ---------- */
.section {
  padding: 110px 0;
  text-align: center;
  position: relative;
}
.section-white { background: var(--white); }
.section-blue-grad {
  background: linear-gradient(180deg, var(--bg-alt-2) 0%, var(--bg-alt-1) 100%);
}
.section-blue-light { background: #F5FAFF; }
.section-contact { background: #F7FBFF; }

.eyebrow {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.25;
}

.section-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-cta { margin-top: 52px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.cta-kakao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--kakao);
  color: var(--kakao-text);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 14px 26px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 6px 16px rgba(254, 229, 0, 0.35);
}
.cta-kakao:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(254, 229, 0, 0.45);
}
.kakao-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #191919;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.kakao-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--kakao);
}

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header-height);
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(6, 60, 120, 0.08);
}

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

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 34px;
}
.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 6px;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-cta { flex-shrink: 0; padding: 12px 22px; font-size: 14px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(6, 60, 120, 0.1);
  padding: 18px var(--pad-mobile) 26px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav-link {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-cta {
  display: flex;
  width: 100%;
  margin-top: 18px;
  padding: 15px;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.08) 30%,
    rgba(255,255,255,0) 55%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-pc);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.hero-content {
  width: 52%;
  max-width: 620px;
}

.hero-kicker {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.hero-title .hl { color: var(--blue); }

.hero-desc {
  margin-top: 26px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--text-sub);
}

.hero-cta-group { margin-top: 40px; }
.hero-cta {
  width: 290px;
  height: 64px;
  font-size: 16px;
}
.hero-cta-sub {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-sub);
}

.hero-script {
  font-family: "Caveat", cursive;
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.55;
  line-height: 1.35;
  text-align: right;
  position: relative;
  z-index: 2;
  margin-right: 12px;
}

/* ==========================================================================
   ABOUT — pinned scroll storytelling
   ========================================================================== */

/* Tall track that "spends" scroll distance while the stage stays pinned. */
.about-scroll-track {
  position: relative;
  height: 400vh;
}

/* The pinned viewport. Sits right under the sticky header. */
.about-sticky-stage {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-background-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 300px at 50% 0%, rgba(13, 103, 200, 0.04), transparent 70%);
}

/* Reference frame for the image placeholders — matches the site container
   so their offsets scale the same way the rest of the layout does. */
.about-stage-inner {
  position: absolute;
  inset: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-pc);
  pointer-events: none;
}

/* ---------- Center text column ---------- */
.about-center-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 88vw);
  max-width: 720px;
  text-align: center;
  z-index: 5;
}

/* Cumulative scroll-gated reveal (body copy, slogan, logo) — calmer, slower,
   fully reversible as the user scrolls back up through the track. */
.about-el {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.about-el.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Opening sequence (eyebrow / title / subtitle) — fast auto-playing stagger
   fired once on entry, decoupled from further scroll distance. The stagger
   itself lives in transition-delay below, not in JS timers. */
.about-start-el {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.about-start-el.is-active {
  opacity: 1;
  transform: translateY(0);
}
[data-about-step="title"].about-start-el { transition-delay: 0.15s; }
[data-about-step="subtitle"].about-start-el { transition-delay: 0.3s; }

.about-body-block {
  margin-top: 22px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text);
}

.about-final-message {
  margin-top: 28px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.6;
  color: var(--navy);
}

.about-logo-wrap {
  width: 220px;
  height: 58px;
  margin: 26px auto 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Final scene of the storytelling — its own transform recipe/duration. */
.about-logo-wrap.about-el {
  transition-duration: 0.5s;
  transform: translateY(15px) scale(0.96);
}
.about-logo-wrap.about-el.is-active {
  transform: translateY(0) scale(1);
}
.about-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---------- Image placeholders ---------- */
.about-image-frame {
  position: absolute;
  border-radius: 24px;
  background: linear-gradient(135deg, #F5FAFF 0%, #EAF5FF 100%);
  border: 1px solid rgba(13, 103, 200, 0.12);
  box-shadow: 0 20px 50px rgba(7, 59, 117, 0.08);
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.about-image-frame.is-active { opacity: 1; }

/* Rides the tail of the opening stagger (see .about-start-el) instead of a
   scroll threshold — appears right as START completes. */
.about-image-01 {
  left: 0;
  top: 10%;
  width: 230px;
  height: 150px;
  transform: translate(-45px, -15px) scale(0.94);
  transition-delay: 0.42s;
}
.about-image-01.is-active { transform: translate(0, 0) scale(1); }

.about-image-02 {
  right: 0;
  top: 4%;
  width: 210px;
  height: 270px;
  transform: translate(45px, -15px) scale(0.94);
}
.about-image-02.is-active { transform: translate(0, 0) scale(1); }

.about-image-03 {
  left: 24px;
  bottom: 4%;
  width: 190px;
  height: 240px;
  transform: translate(-40px, 25px);
}
.about-image-03.is-active { transform: translate(0, 0); }

.about-image-04 {
  right: 14px;
  bottom: 8%;
  width: 250px;
  height: 160px;
  transform: translate(40px, 25px);
}
.about-image-04.is-active { transform: translate(0, 0); }

/* Real photo living inside each placeholder — the frame above still owns
   all position/size/reveal motion; this only fills it. */
.about-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.about-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.product-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(8, 72, 130, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(20, 70, 110, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-align: left;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #F3F8FC;
  overflow: hidden;
  position: relative;
}
.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.4s var(--ease);
}
.product-media-cover img { object-fit: cover; }
.product-media-contain img { object-fit: contain; }
.product-card:hover .product-media img {
  transform: scale(1.025);
}

.product-body { padding: 26px 26px 28px; text-align: left; }
.product-category {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
}
.product-company {
  margin-top: 7px;
  font-size: 23px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.product-list {
  margin-top: 8px;
  font-size: 14.5px;
  color: #667B8E;
  line-height: 1.7;
}

/* ==========================================================================
   CSO RECRUITMENT — pinned stage, scroll-triggered card spread

   Same track+sticky pattern as ABOUT (see .about-scroll-track): a tall
   track spends scroll distance while .cso-sticky-stage stays pinned.
   Five cards start gathered near center; js/cso-scroll.js
   fires a single ~500ms transform transition to fan them out (or gather
   them back) the moment it sees a scroll in that direction — position is
   not tied to scroll distance. See js/cso-scroll.js for the state
   machine. The inner surface owns the design; the wrapper owns motion.
   ========================================================================== */
.cso-section {
  position: relative;
  background: #F3F9FF url("../public/0400.webp") center center / cover no-repeat;
}

.cso-scroll-track {
  position: relative;
  height: 240vh;
}

.cso-sticky-stage {
  background: url("../public/0400.webp") center center / cover no-repeat;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px var(--pad-pc) 0;
}

.cso-heading {
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  will-change: opacity, transform;
}

.cso-heading-title {
  margin-top: 14px;
  font-size: clamp(40px, 3.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1.2;
}

.cso-heading-sub {
  margin-top: 16px;
  font-size: clamp(18px, 1.2vw, 20px);
  line-height: 1.7;
  color: #526D85;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cso-cards-stage {
  position: relative;
  width: min(92vw, 1380px);
  flex: 1 1 auto;
  min-height: 0;
}

.cso-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 370px;
  border-radius: 22px;
  will-change: transform, opacity;
}

.cso-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  container-type: inline-size;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(74, 145, 220, 0.15);
  box-shadow: 0 20px 50px rgba(44, 100, 165, 0.13);
  overflow: hidden;
}

.cso-card-content {
  position: relative;
  z-index: 1;
  padding: 8.8cqw 4cqw 0;
  text-align: center;
}

.cso-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22.4cqw;
  height: 22.4cqw;
  margin: 0 auto 4.8cqw;
  border-radius: 50%;
  background: #EEF6FF;
  color: #2B8EEA;
}

.cso-card-icon svg {
  width: 12cqw;
  height: 12cqw;
}

.cso-card-title {
  color: #153D68;
  font-size: clamp(11px, 7.2cqw, 18px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.cso-card-description {
  margin-top: 3.6cqw;
  color: #607B95;
  font-size: clamp(8.5px, 5.2cqw, 13px);
  font-weight: 400;
  line-height: 1.6;
  white-space: pre-line;
  word-break: keep-all;
}

.cso-card-photo {
  position: absolute;
  inset: 52% 0 0;
}

.cso-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cso-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #FFFFFF 0%, rgba(255, 255, 255, 0.75) 12%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(to top, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.65) 12%, rgba(255, 255, 255, 0) 35%);
  pointer-events: none;
}

.cso-card-brand {
  position: absolute;
  z-index: 1;
  bottom: 4.4cqw;
  inset-inline: 0;
  color: #2B8EEA;
  font-size: clamp(10px, 4.4cqw, 11px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
}

.cso-closing-message {
  color: var(--navy);
  font-size: clamp(20px, 1.5vw, 26px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.035em;
}

.cso-closing-brand {
  margin-top: 20px;
  color: #2B8EEA;
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cso-cta-row {
  padding: 48px var(--pad-pc) 110px;
  text-align: center;
}

/* ==========================================================================
   WHY MEDIONE / PARTNER SUPPORT — pinned step story

   Same track+sticky pattern as about-scroll.js/cso-scroll.js: a tall track
   spends scroll distance while .partner-story-sticky stays pinned. The
   right-hand nav cards sit in fixed slots — only which one carries
   .is-active changes — and the left main card crossfades its visual/text
   in place (see js/partner-story.js) instead of being torn down.
   ========================================================================== */
.partner-story-track {
  position: relative;
  height: 380vh;
}

.partner-story-sticky {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.partner-story-heading { flex-shrink: 0; }
.partner-story-heading .section-title {
  font-size: clamp(40px, 3.2vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.partner-story-heading .section-sub { color: #5B7186; }

.partner-story-layout {
  max-width: var(--max-width);
  width: 100%;
  margin: 36px auto 0;
  padding: 0 var(--pad-pc);
  display: flex;
  align-items: stretch;
  gap: 24px;
  flex-shrink: 0;
}

.partner-story-main {
  flex: 0 0 76%;
  max-width: 76%;
  min-height: 440px;
  background: var(--white);
  border-radius: 26px;
  border: 1px solid rgba(13, 103, 200, 0.07);
  box-shadow: 0 15px 45px rgba(20, 70, 110, 0.05);
  overflow: hidden;
  display: flex;
}

.partner-story-visual {
  flex: 0 0 40%;
  position: relative;
  background: linear-gradient(135deg, #F1F8FF 0%, #E9F3FF 100%);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.partner-story-visual.is-leaving { opacity: 0; transform: translateY(-12px); }
.partner-story-visual.is-entering { opacity: 0; transform: translateY(18px); }

.partner-story-text {
  flex: 1;
  padding: 48px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.partner-story-text.is-leaving { opacity: 0; transform: translateY(-12px); }
.partner-story-text.is-entering { opacity: 0; transform: translateY(18px); }

.partner-story-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
}
.partner-story-title {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.partner-story-desc {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: #526D85;
  max-width: 480px;
}

.partner-story-nav {
  flex: 0 0 22%;
  max-width: 22%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.partner-nav-card {
  width: 100%;
  min-height: 66px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  background: #F3F6F9;
  color: #94A0AC;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.partner-nav-card:hover {
  background: #E9EEF3;
  transform: translateX(-2px);
}
.partner-nav-card.is-active {
  background: linear-gradient(135deg, #126FD3, #567AEF);
  color: #fff;
  box-shadow: 0 10px 25px rgba(13, 103, 200, 0.2);
  transform: scale(1.02);
}
.partner-nav-card.is-active:hover { transform: scale(1.02); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.map-embed {
  max-width: 1140px;
  margin: 44px auto 0;
  height: 460px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(60, 110, 170, 0.10);
  box-shadow: 0 20px 60px rgba(30, 80, 140, 0.10);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.address-card {
  margin-top: 52px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-soft);
}

.address-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.pin-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.address-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

.contact-links {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 14.5px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ==========================================================================
   BOTTOM CTA
   ========================================================================== */
.bottom-cta {
  background: linear-gradient(120deg, var(--navy-deep), var(--blue));
  padding: 56px 0;
}
.bottom-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-pc);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.bottom-cta-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  flex-shrink: 0;
}
.bottom-cta-text { flex: 1; text-align: left; padding: 0 20px; }
.bottom-cta-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.bottom-cta-sub {
  margin-top: 8px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.bottom-cta .cta-kakao { flex-shrink: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #052F5C;
  color: rgba(255,255,255,0.85);
  padding: 44px 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-pc);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-line1,
.footer-line2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255,255,255,0.70);
}
.footer-info-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 6px;
}
.footer-company {
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}
.footer-info {
  color: rgba(255,255,255,0.70);
}
.footer-sep {
  color: rgba(255,255,255,0.25);
}
.footer-email {
  color: rgba(255,255,255,0.70);
  text-decoration: none;
}
.footer-email:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-copy {
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}
.footer-right {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-right a { transition: color 0.2s ease; }
.footer-right a:hover { color: #fff; }
.footer-static-link { color: rgba(255,255,255,0.55); }

/* ==========================================================================
   FLOATING CONTACT BUTTONS
   ========================================================================== */
.fab-contact {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(20, 60, 110, 0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.fab-btn:hover {
  transform: translateY(-2px);
}
.fab-btn-label {
  font-size: 12px;
  font-weight: 700;
}

.fab-btn-phone {
  background: linear-gradient(135deg, #1268D8, #378CF1);
  color: #fff;
}
.fab-btn-phone:hover {
  box-shadow: 0 14px 32px rgba(18, 104, 216, 0.32);
}

.fab-btn-kakao {
  background: var(--kakao);
  color: var(--kakao-text);
}
.fab-btn-kakao:hover {
  box-shadow: 0 12px 26px rgba(254, 229, 0, 0.4);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 46px; }

  .partner-story-track { height: 430vh; }
  .partner-story-sticky { padding: 16px 0; }
  .partner-story-heading .section-title { font-size: clamp(26px, 3.4vw, 32px); }
  .partner-story-heading .section-sub { font-size: 15px; margin-top: 10px; }
  .partner-story-layout { flex-direction: column; margin-top: 18px; gap: 14px; }
  .partner-story-main { max-width: 100%; flex: none; flex-direction: column; min-height: 0; }
  .partner-story-visual { flex: 0 0 130px; }
  .partner-story-text { padding: 20px 24px; }
  .partner-story-label { font-size: 12px; }
  .partner-story-title { font-size: 22px; margin-top: 8px; }
  .partner-story-desc { font-size: 14px; line-height: 1.65; margin-top: 10px; }
  .partner-story-nav {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 14px;
    gap: 8px;
  }
  .partner-nav-card { flex: 1 1 calc(50% - 4px); min-height: 48px; font-size: 13.5px; padding: 0 16px; }

  .about-scroll-track { height: 360vh; }
  .about-center-wrapper { width: min(560px, 82vw); }
  .about-image-01 { width: 190px; height: 130px; }
  .about-image-02 { width: 175px; height: 220px; }
  .about-image-03 { width: 160px; height: 200px; left: 4px; }
  .about-image-04 { width: 205px; height: 135px; right: 0; }

  .cso-cards-stage { width: min(90vw, 1380px); }
  .cso-card { width: 195px; height: 290px; border-radius: 20px; }

  .map-embed { height: 400px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }

  .hero-script { display: none; }
  .hero-content { width: 62%; max-width: none; }
}

/* Mobile */
@media (max-width: 767px) {
  .container { padding: 0 var(--pad-mobile); }
  .header-inner { padding: 0 var(--pad-mobile); }

  .section { padding: 64px 0; }
  .section-title { font-size: 30px; }
  .section-sub { font-size: 15.5px; }

  .brand-logo { height: 34px; width: auto; }

  .hero {
    min-height: 720px;
    align-items: flex-start;
    padding-top: 64px;
  }
  .hero-bg { background-position: 68% center; }
  .hero-overlay {
    background: rgba(255,255,255,0.25);
  }
  .hero-inner { display: block; }
  .hero-content { width: 100%; max-width: none; }
  .hero-title { font-size: 38px; }
  .hero-desc { font-size: 15.5px; }
  .hero-cta { width: 100%; max-width: 320px; height: 58px; }

  .about-body-block br.br-pc,
  .section-sub br.br-pc,
  .cso-heading-sub br.br-pc,
  .hero-desc br.br-pc { display: none; }

  .about-scroll-track { height: 340vh; }
  .about-center-wrapper { width: 90vw; }
  .about-final-message { font-size: 17.5px; margin-top: 22px; }
  .about-logo-wrap { width: 170px; height: 44px; margin-top: 20px; }
  .about-logo { width: 170px; height: auto; }

  .about-image-frame { border-radius: 16px; }
  .about-image-01 { width: 92px; height: 64px; left: -6px; top: 6%; }
  .about-image-02 { width: 84px; height: 108px; right: -6px; top: 4%; }
  .about-image-03 { width: 78px; height: 96px; left: -4px; bottom: 4%; }
  .about-image-04 { width: 100px; height: 68px; right: -4px; bottom: 6%; }

  .product-grid { grid-template-columns: 1fr; gap: 20px; }

  .cso-sticky-stage { padding-top: 32px; }
  .cso-heading-title { font-size: 30px; margin-top: 10px; }
  .cso-heading-sub { font-size: 15.5px; }
  .cso-cards-stage { width: min(94vw, 1380px); }
  .cso-card { width: 160px; height: 238px; border-radius: 18px; }

  .partner-story-track { height: 480vh; }
  .partner-story-sticky { padding: 12px 0; }
  .partner-story-heading .section-title { font-size: 22px; }
  .partner-story-heading .section-sub { font-size: 13.5px; margin-top: 8px; }
  .partner-story-layout { margin-top: 14px; gap: 12px; }
  .partner-story-main { border-radius: 18px; }
  .partner-story-visual { flex-basis: 84px; }
  .partner-story-text { padding: 16px 18px; }
  .partner-story-label { font-size: 11.5px; }
  .partner-story-title { font-size: 18px; margin-top: 6px; }
  .partner-story-desc { font-size: 12.5px; line-height: 1.6; margin-top: 8px; max-width: none; }
  .partner-story-nav { grid-template-columns: repeat(2, 1fr); display: grid; gap: 8px; }
  .partner-nav-card { flex: none; min-height: 44px; font-size: 12px; padding: 0 12px; }

  .map-embed { margin-top: 28px; height: 320px; border-radius: 20px; }

  .fab-contact { right: 14px; bottom: 18px; gap: 10px; }
  .fab-btn { width: 58px; height: 58px; border-radius: 17px; }
  .fab-btn svg { width: 22px; height: 22px; }
  .fab-btn-label { font-size: 10.5px; }

  .address-card { flex-direction: column; align-items: stretch; padding: 26px 22px; }
  .address-card-left { text-align: left; }
  .btn-outline-navy { width: 100%; }

  .bottom-cta-inner { flex-direction: column; text-align: center; }
  .bottom-cta-text { text-align: center; padding: 0; }
  .bottom-cta .cta-kakao { width: 100%; max-width: 300px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-right { gap: 16px 22px; }

  .footer-line1,
  .footer-line2 { flex-direction: column; align-items: flex-start; row-gap: 6px; }
  .footer-sep-company,
  .footer-sep-line2 { display: none; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 32px; }
  .cso-card { width: 145px; height: 216px; border-radius: 16px; }
}

/* Short desktop/laptop viewports (e.g. common 1366x768 screens) — the
   side-by-side layout has plenty of horizontal room, but not enough
   vertical room for the full-size heading + 440px main card without
   the sticky stage's overflow:hidden clipping it. */
@media (min-width: 1025px) and (max-height: 820px) {
  .partner-story-heading .section-title { font-size: clamp(28px, 2.6vw, 36px); }
  .partner-story-heading .section-sub { font-size: 15px; margin-top: 10px; }
  .partner-story-layout { margin-top: 20px; }
  .partner-story-main { min-height: 340px; }
  .partner-story-text { padding: 30px 34px; }
  .partner-story-label { font-size: 12px; }
  .partner-story-title { font-size: 24px; margin-top: 8px; }
  .partner-story-desc { font-size: 14px; line-height: 1.65; margin-top: 10px; }
  .partner-nav-card { min-height: 52px; }
}

/* Same safety net for the stacked tablet/mobile layout on an unusually
   short window (e.g. a resized browser rather than a real device). */
@media (max-width: 1024px) and (max-height: 760px) {
  .partner-story-sticky { padding: 8px 0; }
  .partner-story-heading .section-sub { display: none; }
  .partner-story-layout { margin-top: 10px; gap: 8px; }
  .partner-story-visual { flex-basis: 64px; }
  .partner-story-text { padding: 12px 16px; }
  .partner-story-title { font-size: 16px; margin-top: 4px; }
  .partner-story-desc { -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
  .partner-nav-card { min-height: 38px; }
}
