@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&family=Noto+Serif+KR:wght@400;500;600&display=swap');

/* ============================================================
   1. 변수 · 기본 초기화 (Variables & Reset)
   ============================================================ */
:root {
  --ink: #263342;
  --muted: #657078;
  --paper: #f7f5ef;
  --line: #dcded8;
  --orange: #f4ad79;
  --blue: #53789a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 헤더(sticky, 94px)와 정확히 일치 → 메뉴 클릭 시 섹션 위가 헤더 바로 아래에 붙는다 */
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #cf7b3d;
  outline-offset: 5px;
}

section,
article {
  /* 헤더 보정은 html의 scroll-padding-top(94px)이 이미 담당하므로
     여기서 다시 여백을 주면 이전 섹션(hero)이 상단에 비쳐 보인다 → 0 */
  scroll-margin-top: 0;
}

.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 10px;
}

.skip:focus {
  top: 10px;
}

/* ============================================================
   좌측 섹션 바로가기 내비 (Side Nav)
   ------------------------------------------------------------
   화면 좌측 중앙에 고정. 각 섹션에 대응하는 도트.
   스크롤로 도달한 섹션의 도트가 .active 로 강조된다.
   ============================================================ */
.side-nav {
  position: fixed;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.side-nav a {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

/* 도트 (기본) */
.side-nav .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: transparent;
  transition: background .25s, border-color .25s, transform .25s;
  flex: 0 0 auto;
}

/* 라벨 (평소엔 숨김, 호버/활성 시 표시) */
.side-nav .label {
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .25s, transform .25s;
}

.side-nav a:hover .label,
.side-nav a.active .label {
  opacity: 1;
  transform: translateX(0);
}

.side-nav a:hover .dot {
  border-color: var(--ink);
}

/* 활성 섹션 */
.side-nav a.active .dot {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.25);
}

.side-nav a.active {
  color: var(--ink);
}

/* 세션 네비 아래 배치하는 이미지
   ------------------------------------------------------------
   .side-nav 는 align-items:flex-end 라 도트와 이미지가 모두 우측 정렬된다.
   이미지의 x축 중심을 도트(지름 14px → 중심 7px)의 중심선에 맞추기 위해
   이미지를 오른쪽으로 (이미지너비/2 - 7px) 만큼 이동시킨다.
   translateX 의 % 는 요소 자기 너비 기준이므로 50% = 이미지너비/2. */
/* 이미지 + 텍스트 캡션 묶음 (텍스트 ← → 이미지) */
.side-nav .side-nav-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
}

/* 이미지를 감싸는 링크 — palyx 섹션으로 이동 */
.side-nav .side-nav-image-link {
  display: block;
  align-self: flex-end;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  /* 이미지 x축 중심을 도트 중심선(우측에서 7px)에 맞춘다.
     translateX 의 % 는 요소 자기 너비 기준 → 50% = 이미지너비/2.
     calc(50% - 7px) 로 이미지 크기가 바뀌어도 항상 도트 중심에 중앙 정렬된다. */
  transform: translateX(calc(50% - 7px));
}

.side-nav .side-nav-image {
  /* margin-top: 8px;
  max-width: 60px; */
  width: auto;
  height: auto;
  display: block;
  align-self: flex-end;
  /* 이동(transform)은 이미지를 감싼 링크(.side-nav-image-link)가 담당한다. */
}

/* 교대로 표시되는 텍스트 (두 문구를 한 자리에 겹치게 쌓아 크로스페이드)
   다른 네비 항목(라벨 ← 도트)처럼 텍스트가 이미지 바로 옆에 붙는다. */
.side-nav .side-nav-text {
  position: relative;
  height: 2.8em;
  min-width: 96px;
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--muted);
  /* 이미지가 translateX(40px)로 우측(도트 중심선)에 붙어 있으므로,
     텍스트도 같은 만큼 오른쪽으로 밀어 이미지 바로 옆에 붙인다.
     (이미지를 움직이는 게 아니라 텍스트를 움직여 붙인다.) */
  transform: translateX(40px);
}

.side-nav .side-nav-text .phrase {
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s ease, transform .6s ease;
}

/* 첫 문구: 0~50% 표시, 둘째 문구: 50~100% 표시 (7초 주기 교대) */
.side-nav .side-nav-text .phrase:nth-child(1) {
  animation: phraseSwap 7s ease-in-out infinite;
}

.side-nav .side-nav-text .phrase:nth-child(2) {
  animation: phraseSwap 7s ease-in-out infinite;
  animation-delay: 3.5s;
}

@keyframes phraseSwap {
  0%   { opacity: 0; transform: translateY(6px); }
  8%   { opacity: 1; transform: translateY(0); }
  42%  { opacity: 1; transform: translateY(0); }
  50%  { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* 어두운 배경 섹션 위에 있을 때 텍스트도 밝은 색으로 */
.side-nav.on-dark .side-nav-text {
  color: #cfd6dd;
}

/* ---- 어두운 배경 섹션(hero 등) 위에 있을 때: 밝은 색으로 전환 ----
   JS 가 .side-nav 컨테이너에 .on-dark 를 부여하면 발동한다. */
.side-nav.on-dark a {
  color: #cfd6dd;
}

.side-nav.on-dark .dot {
  border-color: #cfd6dd;
}

.side-nav.on-dark a:hover .dot {
  border-color: #ffffff;
}

.side-nav.on-dark a.active {
  color: #ffffff;
}

.side-nav.on-dark a.active .dot {
  background: var(--orange);
  border-color: var(--orange);
}

/* 좁은 화면에서는 좌측 내비 숨김 (상단 nav 사용) */
@media (max-width: 1024px) {
  .side-nav {
    display: none;
  }
}

/* ============================================================
   2. 헤더 · 내비게이션 (Header & Nav)
   ============================================================ */
header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 5.5%;
  background: #111d2b;
  color: #f0eee9;
  border-bottom: 1px solid #ffffff26;
  /* 상단 고정: 스크롤 시에도 헤더가 항상 보이도록 sticky 처리 */
  position: sticky;
  top: 0;
  z-index: 100;
  /* 배경 전환을 부드럽게 (스크롤 시 반투명 효과) */
  transition: background-color .3s ease, backdrop-filter .3s ease;
}

/* 스크롤로 헤더가 콘텐츠 위에 겹칠 때(JS 가 .scrolled 부여):
   투명도 없이 항상 불투명 배경을 유지한다. */
header.scrolled {
  background: #111d2b;          /* 완전 불투명 */
}

.logo {
  font-family: Georgia, serif;
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 27px;
  line-height: 1;
}

/* .logo span {
  font-size: 13px;
  margin-left: 6px;
  color: #a2b8c8;
}

.logo small {
  display: block;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 400;
  margin-top: 9px;
  color: #bac2c8;
} */

nav {
  display: flex;
  gap: 35px;
  font-size: 13px;
}

/* 모바일 드롭다운 메뉴: 헤더(94px) 바로 아래에 고정 */
#mobile-nav {
  position: sticky;
  top: 94px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 5.5%;
  background: #111d2b;
  border-bottom: 1px solid #ffffff26;
  font-size: 14px;
}

#mobile-nav a {
  color: #f0eee9;
}

#mobile-nav a:hover {
  color: var(--orange);
}

nav a:hover {
  color: var(--orange);
}

.header-cta {
  border: 1px solid #ffffff4a;
  padding: 10px 17px;
  font-size: 12px;
}

.header-cta span {
  margin-left: 20px;
}

.menu {
  display: none;
}

/* ============================================================
   3. 히어로 (Hero)
   ============================================================ */
.hero {
  position: relative;
  color: #fff6ed;
  background: linear-gradient(90deg, #122035d9, #17233850), url('../images/hero_bg.png') center 57%/cover;
  /* background: url('../images/hero_bg.png') center center / cover no-repeat; */
  /* 헤더(sticky, 94px)가 흐름 안에 있으므로, 히어로가 100vh면 합쳐서 94px만큼
     화면을 넘침. 헤더 높이를 빼야 정확히 한 페이지(100vh)에 맞는다. */
  min-height: calc(100vh - 94px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-inner {
  max-width: 1440px;
  margin: auto;
  /* 아래 여백을 넉넉히 두어 텍스트 덩어리 전체를 위로 올린다. */
  padding: 60px 7% 180px;
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
}

/* 좌측: 제목·설명·버튼 */
.hero-copy {
  max-width: 640px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2.3px;
  font-weight: 600;
  color: #6d7980;
  margin: 0 0 22px;
}

.eyebrow.light {
  color: #e6c2a5;
}

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

h1 {
  font-weight: 500;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.4;
  letter-spacing: -3px;
  margin-bottom: 23px;
}

em {
  font-style: normal;
  color: #9e6141;
}

h1 em {
  font-family: 'Noto Serif KR', serif;
  font-weight: 400;
  color: #efbc96;
}

h2 {
  font-weight: 500;
  font-size: 42px;
  line-height: 1.5;
  letter-spacing: -1.8px;
  margin: 0;
}

.hero-description {
  font-size: 15px;
  color: #d2d4da;
  line-height: 2;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 49px;
  padding: 12px 23px;
  border: 0;
  font-size: 12px;
  font-weight: 600;
}

.warm {
  background: #edb98d;
  color: #25303c;
}

.warm:hover {
  background: #f8cda9;
}

.ghost {
  background: transparent;
  color: #e1d3c4;
  border: 1px solid #ffffff40;
  gap: 14px;
}

.ghost:hover {
  background: #ffffff14;
  border-color: #ffffff80;
}

.ghost .dl-arrow {
  font-size: 15px;
  line-height: 1;
}

.dark {
  background: var(--ink);
  color: white;
}

.dawn-note {
  justify-self: end;
  padding-left: 25px;
  border-left: 1px solid #fff4;
}

.dawn-note span {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  color: #e2b793;
}

.dawn-note p {
  font-size: 12px;
  color: #cccbd3;
  margin-top: 13px;
  line-height: 2;
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 7%;
  right: 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid #fff3;
  font-size: 9px;
  letter-spacing: 2px;
  color: #d2cbd0;
}

/* ============================================================
   4. 비즈니스 바로가기 · 제품 스트립 (Shortcuts & Strip)
   ============================================================ */
.business-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #edf0ec;
  padding: 0 5.5%;
}

.business-shortcuts a {
  position: relative;
  padding: 30px 23px;
  border-right: 1px solid #d6dbd7;
}

.business-shortcuts a:first-child {
  border-left: 1px solid #d6dbd7;
}

.business-shortcuts span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #6d777c;
  display: block;
  margin-bottom: 8px;
}

.business-shortcuts strong {
  font-size: 17px;
  font-weight: 500;
}

.business-shortcuts b {
  position: absolute;
  right: 18px;
  bottom: 33px;
  color: #698495;
  font-weight: 400;
}

.business-shortcuts a:hover {
  background: #e2e8e3;
}

.product-strip {
  padding: 15px 7%;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  background: #f0e7db;
  color: #5b574e;
  gap: 12px;
}

.product-strip b {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-right: 20px;
  color: #9a5d3a;
}

.product-strip a span {
  margin-left: 25px;
}

/* ============================================================
   5. 섹션 공통 · 비즈니스 그리드 (Section & Business Grid)
   ============================================================ */
.section {
  padding: 100px 7%;
  max-width: 1600px;
  margin: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 45px;
}

.intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 10px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.business-grid article {
  padding: 35px 40px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #faf9f5;
  transition: background .2s;
}

.business-grid article:hover {
  background: #f0f2ec;
}

.card-top {
  display: flex;
  justify-content: space-between;
  /* height: 64px; */
  align-items: flex-start;
  /* margin-bottom: 20px; */
}

.number {
  font-family: Georgia, serif;
  font-size: 18px;
  color: #87948f;
}

.diagram {
  width: 96px;
  height: 66px;
  position: relative;
  display: block;
}

.diagram i {
  position: absolute;
  display: block;
  border: 1.5px solid #8da6ad;
  background: rgba(141, 166, 173, 0.10);
  width: 38px;
  height: 38px;
  transform: rotate(-25deg);
  left: 0;
  top: 16px;
  transition: transform 0.4s ease, background 0.4s ease;
}

.diagram i:nth-child(2) {
  left: 29px;
  top: 0;
  border-color: #bd9f7e;
  background: rgba(189, 159, 126, 0.12);
}

.diagram i:nth-child(3) {
  left: 58px;
  top: 28px;
}

.solution i {
  border-radius: 50%;
  width: 46px;
  height: 46px;
}

.commerce i {
  transform: skewY(-20deg);
  width: 44px;
}

.application i {
  border-radius: 6px;
  transform: rotate(15deg);
  height: 54px;
  width: 32px;
}

/* 카드 hover 시 도형이 살짝 벌어지며 강조 */
article:hover .diagram i:nth-child(1) { transform: rotate(-25deg) translateX(-3px); }
article:hover .diagram i:nth-child(3) { transform: rotate(-25deg) translateX(3px); }

/* commerce는 skewY 형태 유지 */
article:hover .commerce i:nth-child(1) { transform: skewY(-20deg) translateX(-3px); }
article:hover .commerce i:nth-child(3) { transform: skewY(-20deg) translateX(3px); }

.business-grid .eyebrow {
  font-size: 9px;
  margin-bottom: 13px;
  color: #597687;
}

.business-grid h3 {
  font-weight: 500;
  font-size: 28px;
  line-height: 1.55;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.business-grid p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}

ul {
  padding: 0;
  list-style: none;
  margin: 20px 0 28px;
  font-size: 11px;
  color: #6b7374;
}

li:before {
  content: '—';
  margin-right: 9px;
  color: #ac8e71;
}

.card-actions {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}

.card-actions button,
.text-link {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

/* ============================================================
   6. PALYX 제품 섹션 (Palyx)
   ============================================================ */
.palyx {
  /* 배경은 풀폭으로 넓게 쓰되, 내용은 .palyx-inner 로 감싸 가운데 정렬한다. */
  max-width: none;
  background: radial-gradient(ellipse at 78% 90%, #51443f 0, transparent 45%), #192b3b;
  display: flex;
  justify-content: center;
  color: #eeeae4;
  overflow: hidden;
}

/* 내용 래퍼: 위아래 섹션(.section)과 동일한 max-width(1600px) 로 가운데 정렬.
   좌우 padding(7%)을 추가해 양옆 여백을 더 준다(내용이 너무 넓게 퍼지지 않게). */
.palyx-inner {
  width: 100%;
  /* max-width: 1600px; */
  padding: 0 6%;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 80px;
  align-items: center;
}

.palyx-word {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: Georgia, serif;
  font-size: 70px;
  letter-spacing: -4px;
  line-height: 1;
  margin: 32px 0;
}

.palyx-word span {
  font-size: 42px;
  color: #e5b28b;
  margin-left: 10px;
}

.palyx h2 {
  font-size: 40px;
  margin-bottom: 22px;
  font-weight: 400;
}

.palyx-copy {
  align-self: start;
  padding-top: 24px;
}

.palyx-copy > p:not(.eyebrow) {
  font-size: 13px;
  color: #b7c3ca;
  line-height: 2;
}

.actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin: 28px 0 12px;
}

.text-link {
  color: #e1d3c4;
  font-size: 11px;
}

.palyx small {
  font-size: 9px;
  color: #b7c3ca;
}

.palyx-visual {
  align-self: center;
  text-align: center;
}

.palyx-visual img {
  display: block;
  width: 100%;
  /* max-width: 560px; */
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  /* box-shadow: 0 24px 60px #00000040; */
}

.palyx-logo {
  display: inline-block;
  height: 72px;
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.orbit {
  width: 340px;
  height: 340px;
  border: 1px solid #71858a60;
  border-radius: 50%;
  margin: 0 auto 35px;
  position: relative;
  display: grid;
  place-items: center;
}

.orbit-inner {
  position: absolute;
  inset: 45px;
  border: 1px solid #c8a58340;
  border-radius: 50%;
}

.core {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 50% 100%, #cb8d6470, #344e60);
  border: 1px solid #c6b29e70;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 65px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 0 60px #d49c631a;
}

.core span {
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 2px;
  color: #d7c0a8;
  margin-top: 10px;
}

.orbit-label {
  position: absolute;
  background: #263c4b;
  border: 1px solid #7a8c8a60;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 10px;
  color: #dbd7ce;
  white-space: nowrap;
}

.l1 {
  top: 8px;
  left: 6px;
}

.l2 {
  right: -20px;
  top: 100px;
}

.l3 {
  bottom: 10px;
  right: 0;
}

.l4 {
  left: -25px;
  bottom: 90px;
}

.palyx-visual > p {
  font-size: 9px;
  letter-spacing: 2px;
  color: #c1b09f;
}

.palyx-visual small {
  letter-spacing: 0;
}

/* ============================================================
   7. 프로젝트 필터 · 목록 (Projects)
   ============================================================ */
.filters {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.filters button {
  border: 0;
  background: none;
  padding: 13px 0;
  color: #69757b;
  font-size: 12px;
  border-bottom: 2px solid transparent;
}

.filters button[aria-pressed=true] {
  color: #8f573b;
  border-color: #a26b48;
}

.section.projects {
  justify-content: flex-start;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 50px;
  /* 행 보더를 오른쪽 끝까지 연장하는擬似요소를 컨테이너 밖으로 잘라내기 위함 */
  position: relative;
  overflow: hidden;
}

/* 더보기 버튼 — 목록 아래 중앙 정렬 */
.project-more {
  display: block;
  margin: 28px auto 0;
  border: 1px solid var(--line);
  background: none;
  color: #69757b;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 12px 26px;
  cursor: pointer;
}

.project-more span {
  color: #8f573b;
}

.project-list article {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  /* 보더 연장擬似요소의 기준점 */
  position: relative;
}

/* 항목이 한 칸만 채운 행(홀수/필터)에서도 아래 보더를 행 전체 폭으로 이어준다.
   왼쪽 칸 항목의 보더를 오른쪽 칸 너비만큼 연장하고, 오른쪽 칸 항목의 연장선은
   컨테이너 밖으로 나가므로 overflow:hidden으로 잘려 보이지 않는다. */
.project-list article::after {
  content: "";
  position: absolute;
  left: 100%;
  bottom: -1px;
  width: 100%;
  border-top: 1px solid var(--line);
}

.project-list article > span {
  font-family: Georgia, serif;
  color: #7f8887;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.project-list small {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #8e644b;
}

.project-list h3 {
  font-weight: 500;
  font-size: 16px;
  margin: 5px 0 2px 0;
}

.project-list p {
  font-size: 13px;
  color: #758087;
  margin: 0;
}

.project-note {
  font-size: 11px;
  color: #747c7f;
  margin: 20px 0 0;
}

/* ============================================================
   8. 회사 소개 (About)
   ============================================================ */
.about {
  min-height: 100vh;
  display: grid;
  place-items: center;
  /* background: linear-gradient(#17283b9c, #22374dcc), url('../images/hero_bg.png') center center / cover no-repeat; */
  background: url('../images/hero_bg.png') center center / cover no-repeat;
  text-align: center;
  color: #eae7e0;
  /* bottom padding을 키워 중앙 정렬된 content 블록 전체를 위로 올린다 */
  padding: 95px 20px 320px;
}

.about-logo {
  display: block;
  margin: 40px auto 34px;
  /* max-width: 180px; */
  width: 100%;
  height: auto;
}

.about h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.8;
}

.about p:not(.eyebrow) {
  color: #ccd2d5;
  font-size: 12px;
  line-height: 2;
  margin: 25px 0;
}

.about-inner > span {
  font-family: Georgia, serif;
  color: #c4a78d;
  font-size: 11px;
  letter-spacing: 5px;
}

/* ============================================================
   9. 문의 · 폼 (Contact & Form)
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  align-content: end;
}

@media (min-width: 641px) {
  .contact {
    align-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
    /* 좌우를 안으로 모아 콘텐츠가 센터로 모이도록 */
    padding-left: 13%;
    padding-right: 13%;
    /* 마지막 섹션: html의 scroll-padding-top(94px)을 상쇄해
       앵커가 상단 0에 붙도록 → 아래 스크롤 여백 제거, 콘텐츠 중앙 */
    scroll-margin-top: -94px;
  }
}

.contact h2 {
  font-size: 50px;
}

.contact > div > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}

.contact-mark {
  font-size: 10px;
  color: #7d888b;
  margin-top: 65px;
}

.contact-mark strong {
  display: block;
  letter-spacing: 2px;
  color: #53718a;
  font-family: Georgia, serif;
  font-size: 23px;
  margin-top: 9px;
}

label {
  display: block;
  font-size: 11px;
  margin-bottom: 24px;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #bdc4c2;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--ink);
  font-size: 13px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.submit-row small {
  font-size: 9px;
  color: #7a7771;
}

.gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

#form-status {
  font-size: 12px;
  color: #94603f;
  margin-top: 12px;
}

/* ============================================================
   10. 푸터 · 공통 (Footer & Misc)
   ============================================================ */
footer {
  background: #e8ebe5;
  border-top: 1px solid #d5dbd4;
  padding: 35px 7%;
  display: flex;
  gap: 35px;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #697a7d;
}

footer .logo {
  color: #547088;
  font-size: 23px;
}

footer a:last-child {
  font-size: 9px;
  letter-spacing: 1px;
}

/* 문의 섹션 진입 시: 푸터를 화면 하단 고정 레이어로 띄움 */
footer.floating {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(232, 235, 229, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 -10px 30px rgba(20, 30, 40, 0.12);
  animation: footer-rise 0.4s ease both;
}

@keyframes footer-rise {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

[hidden] {
  display: none !important;
}

/* ============================================================
   11. 반응형 (Responsive)
   ============================================================ */

/* ---- 태블릿 (<= 900px) ---- */
@media (max-width: 900px) {
  /* 헤더: 데스크톱 내비게이션 숨기고 햄버거 버튼 표시 */
  header nav {
    display: none;
  }

  .menu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #ffffff4a;
    color: #f0eee9;
    padding: 9px 14px;
    font-size: 12px;
  }

  .header-cta {
    display: none;
  }

  /* 비즈니스 바로가기: 4열 -> 2열 */
  .business-shortcuts {
    grid-template-columns: repeat(2, 1fr);
  }

  .business-shortcuts a {
    border-bottom: 1px solid #d6dbd7;
  }

  /* 비즈니스 그리드: 2열 -> 1열 */
  .business-grid {
    grid-template-columns: 1fr;
  }

  /* PALYX 내용 래퍼: 2열 -> 1열 */
  .palyx-inner {
    grid-template-columns: 1fr;
  }

  /* 수행이력 리스트: 2열 -> 1열 */
  .project-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  /* 섹션 헤더: 가로 정렬 -> 세로 정렬 */
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  /* 히어로: 좌우 2열 -> 한 열, 우측 dawn-note 숨김 */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    max-width: none;
  }

  .dawn-note {
    display: none;
  }

  .section {
    padding: 70px 6%;
    min-height: auto;
  }

  /* 푸터: 모바일 — 로고와 BACK TO TOP을 한 줄 좌우 양끝으로 */
  footer {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 12px;
    padding: 12px 5%;
    font-size: 9px;
  }

  footer .logo {
    font-size: 15px;
    flex: 0 0 auto;
    order: 1;
  }

  footer a:last-child {
    font-size: 8px;
    flex: 0 0 auto;
    order: 2;
    white-space: nowrap;
  }

  footer span {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  footer span br {
    display: none;
  }
}

/* ---- 모바일 (<= 640px) ---- */
@media (max-width: 640px) {
  .contact h2 {
    font-size: 36px;
  }

  header {
    height: 72px;
    padding: 0 5%;
  }

  /* 모바일 메뉴가 고정 헤더(72px) 아래에 붙도록 조정 */
  #mobile-nav {
    top: 72px;
  }

  html {
    /* 모바일 헤더(72px)와 정확히 일치 */
    scroll-padding-top: 72px;
  }

  section,
  article {
    /* 모바일도 동일: scroll-padding-top(72px)이 헤더 보정 담당 → 0 */
    scroll-margin-top: 0;
  }

  .logo {
    font-size: 22px;
  }

  /* 히어로 */
  .hero {
    min-height: 520px;
  }

  .hero-inner {
    padding: 60px 6% 80px;
  }

  h1 {
    letter-spacing: -1.5px;
    margin-bottom: 18px;
  }

  h2 {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .hero-bottom {
    left: 6%;
    right: 6%;
    font-size: 8px;
    letter-spacing: 1px;
  }

  /* 비즈니스 바로가기: 2열 -> 1열 */
  .business-shortcuts {
    grid-template-columns: 1fr;
  }

  .business-shortcuts a {
    border-right: 1px solid #d6dbd7;
  }

  .business-shortcuts a:first-child {
    border-left: 1px solid #d6dbd7;
  }

  /* 제품 스트립: 세로 정렬 */
  .product-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .product-strip b {
    margin-right: 8px;
  }

  .product-strip a span {
    margin-left: 10px;
  }

  /* 카드 */
  .business-grid article {
    padding: 28px 22px 22px;
  }

  /* 폼: 2열 -> 1열 */
  .form-row {
    grid-template-columns: 1fr;
  }

  .submit-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* 푸터: 로고와 BACK TO TOP 한 줄 좌우 양끝, 회사명/카피는 아래 줄 */
  footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 12px 5%;
    font-size: 9px;
  }

  footer .logo {
    font-size: 15px;
    flex: 0 0 auto;
    order: 1;
  }

  footer a:last-child {
    font-size: 8px;
    flex: 0 0 auto;
    order: 2;
    white-space: nowrap;
  }

  footer span {
    flex: 1 1 100%;
    order: 3;
    min-width: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  footer span br {
    display: none;
  }
}
