/* =========================================================
   (주)CM 중앙문화 — cmjoongang.kr
   Pure CSS. No external resources.
   ========================================================= */

/* ---------- Font ---------- */
@font-face {
  font-family: 'Pretendard';
  src: url('fonts/Pretendard-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('fonts/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('fonts/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('fonts/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('fonts/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --green: #16281E;
  --green-2: #1B3026;
  --green-3: #233B2E;
  --ivory: #FAF9F6;
  --ivory-2: #F4F2EC;
  --paper: #FFFFFF;
  --ink: #16281E;
  --muted: #6B766D;
  --muted-2: #8A948B;
  --sage: #8FA394;
  --line: rgba(22, 40, 30, 0.10);
  --line-2: rgba(22, 40, 30, 0.16);
  --line-light: rgba(250, 249, 246, 0.18);
  --beige: #DAD5C7;

  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;

  --container: 1280px;
  --pad: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, dt, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--green); color: var(--ivory); }

:focus-visible {
  outline: 2px solid #2F6B4F;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--green);
  color: var(--ivory);
  padding: 10px 16px;
  font-size: 13px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  padding: clamp(72px, 9vw, 128px) 0;
  scroll-margin-top: 74px;
}
.pc-only { display: inline; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 22px;
}
.eyebrow-light { color: #9DB3A4; }

h1 {
  font-size: clamp(36px, 4.9vw, 64px);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: -0.032em;
}

.rule {
  display: block;
  width: 52px;
  height: 2px;
  background: #4E8B69;
  margin: 30px 0;
}

.fine {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
  white-space: nowrap;
}
.btn-solid { background: var(--green); color: var(--ivory); border-color: var(--green); }
.btn-solid:hover { background: var(--green-3); border-color: var(--green-3); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--green); border-color: var(--green); color: var(--ivory); }
.btn-ghost { border-color: rgba(250, 249, 246, 0.38); color: var(--ivory); background: transparent; }
.btn-ghost:hover { background: rgba(250, 249, 246, 0.09); border-color: rgba(250, 249, 246, 0.7); }
.btn-sm { padding: 11px 18px; font-size: 12.5px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(22, 40, 30, 0.05);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav ul { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #3C4A40;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.3s var(--ease);
}
.nav ul a:hover { color: var(--green); }
.nav ul a:hover::after,
.nav ul a.is-active::after { width: 100%; }
.nav ul a.is-active { color: var(--green); }

.nav-tel {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.nav-tel-label { font-size: 10px; letter-spacing: 0.16em; color: var(--muted-2); }
.nav-tel-num { font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; }
.nav-tel:hover { background: var(--green); border-color: var(--green); color: var(--ivory); }
.nav-tel:hover .nav-tel-label { color: #9DB3A4; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--green);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 99;
  background: var(--ivory);
  padding: 24px var(--pad) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  animation: menuIn 0.32s var(--ease);
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.mobile-menu nav ul { border-top: 1px solid var(--line); }
.mobile-menu nav li { border-bottom: 1px solid var(--line); }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 4px;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.mobile-menu nav a em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}
.mobile-menu-foot {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.mobile-menu-foot .btn { width: 100%; margin-bottom: 10px; }
.mm-addr { font-size: 12.5px; line-height: 1.8; color: var(--muted-2); }
.mm-tel { font-weight: 600; color: var(--green); font-size: 16px; letter-spacing: 0.01em; }
.mm-mail { font-size: 14px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--green);
  color: var(--ivory);
  padding: calc(76px + clamp(52px, 6.6vw, 92px)) 0 clamp(36px, 5vw, 56px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(94, 140, 110, 0.28) 0%, rgba(94, 140, 110, 0) 55%),
    radial-gradient(80% 60% at 8% 100%, rgba(78, 120, 96, 0.16) 0%, rgba(78, 120, 96, 0) 60%);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(250, 249, 246, 0.045) 1px, transparent 1px);
  background-size: 100% 96px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 85%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero-copy h1 { color: var(--ivory); }
.hero-lead {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.85;
  color: #D7DED8;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.hero-sub {
  margin-top: 8px;
  font-size: 14px;
  color: #9DB3A4;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero .btn-solid { background: var(--ivory); color: var(--green); border-color: var(--ivory); }
.hero .btn-solid:hover { background: #FFFFFF; border-color: #FFFFFF; transform: translateY(-1px); }
.hero .btn-ghost:hover { transform: translateY(-1px); }

/* Collage */
.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: auto auto;
  column-gap: clamp(12px, 1.6vw, 20px);
  row-gap: clamp(14px, 2vw, 22px);
  align-items: start;
  perspective: 1200px;
}
.collage-card {
  position: relative;
  background: var(--paper);
  padding: 9px 9px 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  will-change: transform;
}
.collage-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 4px 11px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--green);
  line-height: 1.4;
}
.collage-card figcaption span {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
}
.collage-media { overflow: hidden; background: #FFFFFF; }
.collage-media img { width: 100%; height: 100%; object-fit: cover; }
.c1 { grid-column: 1; grid-row: 1; width: 100%; transform: rotate(-2.2deg); z-index: 1; }
.c1 .collage-media { aspect-ratio: 4 / 2.8; }
.c2 { grid-column: 2; grid-row: 1 / span 2; width: 100%; margin-top: 5%; transform: rotate(1.6deg); z-index: 2; }
.c2 .collage-media { aspect-ratio: 3 / 4; }
.c3 { grid-column: 1; grid-row: 2; width: 62%; transform: rotate(-1deg); z-index: 3; }
.c3 .collage-media { aspect-ratio: 3 / 3.7; }
.collage-card:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 40px 70px -22px rgba(0, 0, 0, 0.6); }

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(32px, 3.8vw, 48px);
  border-top: 1px solid var(--line-light);
  padding-top: 26px;
}
.hero-stats > div {
  padding: 0 24px;
  border-left: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-stats > div:first-child { border-left: 0; padding-left: 0; }
.hero-stats dt {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ivory);
}
.hero-stats dt sup {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #9DB3A4;
  vertical-align: super;
  margin-left: 3px;
}
.hero-stats dd {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9DB3A4;
}
.hero-stats dd em {
  display: block;
  font-style: normal;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: -0.005em;
  text-transform: none;
  color: #6F8A78;
}

/* ---------- About ---------- */
.about { background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 96px);
}
.about-body p {
  font-size: 15.5px;
  line-height: 1.95;
  color: #4B564D;
  max-width: 520px;
  letter-spacing: -0.005em;
}
.about-body .about-mark {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.about-mark .en {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
}
.about-mark span:last-child {
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}
.quote {
  margin-top: 40px;
  padding-left: 24px;
  border-left: 1px solid var(--line-2);
}
.quote p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
  font-weight: 300;
}
.quote footer {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.values { display: flex; flex-direction: column; }
.value {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.value:last-child { border-bottom: 1px solid var(--line); }
.value-num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--sage);
  margin-bottom: 10px;
}
.value h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.value p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 460px;
}

.fsc-card {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.fsc-card img { width: 104px; height: auto; flex: 0 0 auto; }
.fsc-card h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.fsc-card p { font-size: 12.5px; line-height: 1.8; color: var(--muted); }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line-2);
}
.timeline li {
  position: relative;
  padding: 34px 32px 0 0;
  border-right: 1px solid var(--line);
}
.timeline li:last-child { border-right: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.timeline .year {
  display: block;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}
.timeline .year em { font-style: normal; font-size: 0.42em; color: var(--muted-2); margin-left: 2px; letter-spacing: 0; }
.timeline h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 5px; }
.timeline p { font-size: 12.5px; color: var(--muted-2); }

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 400px;
  padding-bottom: 6px;
  letter-spacing: -0.005em;
}

/* ---------- Products ---------- */
.products { background: var(--ivory-2); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #4B564D;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filter span { font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted-2); transition: color 0.25s; }
.filter:hover { border-color: var(--green); color: var(--green); }
.filter.is-active { background: var(--green); border-color: var(--green); color: var(--ivory); }
.filter.is-active span { color: #9DB3A4; }

.grid-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1px solid rgba(22, 40, 30, 0.06);
  padding: 0;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -26px rgba(22, 40, 30, 0.45); }
.card-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: #F6F5F2;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card-media img { transform: scale(1.035); }
.card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px 18px;
}
.card-cat {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.card-name { font-size: 14.5px; font-weight: 600; letter-spacing: -0.012em; }
.card-brand { font-size: 11px; letter-spacing: 0.08em; color: #9AA49B; text-transform: uppercase; }

/* CTA tile */
.card-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 100%;
  padding: 28px;
  background: var(--green);
  color: var(--ivory);
  border: 1px solid var(--green);
  text-align: left;
  transition: background-color 0.3s;
}
.card-cta:hover { background: var(--green-3); }
.card-cta .cta-top { font-size: 10px; letter-spacing: 0.2em; color: #9DB3A4; }
.card-cta h3 {
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.025em;
  margin-top: auto;
}
.card-cta p { font-size: 13px; color: #C3CEC5; line-height: 1.8; }
.card-cta .cta-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ivory);
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}
.card-cta .cta-arrow::after { content: "→"; transition: transform 0.3s; }
.card-cta:hover .cta-arrow::after { transform: translateX(5px); }

.grid-note {
  padding: 60px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.forms-note {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.forms-note p { font-size: 13px; color: var(--muted); letter-spacing: 0.01em; }
.forms-note strong { font-weight: 600; color: var(--ink); margin-right: 4px; }
.forms-note p > span { margin: 0 10px; color: var(--beige); }
.forms-note .fine { font-size: 12px; }

/* ---------- Facilities ---------- */
.facilities { background: var(--green); color: var(--ivory); }
.facilities h2 { color: var(--ivory); }
.facilities .section-desc { color: #A9BAAE; }

.fac-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  grid-template-areas:
    "main glue"
    "main thom"
    "wide wide";
  gap: clamp(12px, 1.6vw, 20px);
}
.fac { position: relative; margin: 0; min-width: 0; }
.fac-main { grid-area: main; }
.fac:nth-of-type(2) { grid-area: glue; }
.fac:nth-of-type(3) { grid-area: thom; }
.fac-wide { grid-area: wide; }
.fac-media {
  overflow: hidden;
  background: #0F1D16;
  aspect-ratio: 4 / 3;
}
.fac-main .fac-media { aspect-ratio: 4 / 4.55; }
.fac-wide .fac-media { aspect-ratio: 21 / 8; }
.fac-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.9s var(--ease), filter 0.6s;
}
.fac:hover .fac-media img { transform: scale(1.03); filter: saturate(1) contrast(1.02); }
.fac figcaption {
  padding: 18px 2px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  align-items: baseline;
}
.fac-num {
  grid-column: 1 / -1;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #7E9A88;
  margin-bottom: 4px;
}
.fac h3 { font-size: 15.5px; font-weight: 500; letter-spacing: -0.012em; color: var(--ivory); }
.fac-en {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7E9A88;
  text-align: right;
  white-space: nowrap;
}
.fac-desc { grid-column: 1 / -1; font-size: 12.5px; color: #9DB3A4; margin-top: 4px; }

/* ---------- Clients ---------- */
.clients { background: var(--ivory); }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logo-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  transition: background-color 0.3s;
}
.logo-grid li:hover { background: var(--paper); }
.logo-grid img {
  max-height: 54px;
  max-width: 80%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.66;
  transition: filter 0.35s, opacity 0.35s;
}
.logo-grid li:hover img { filter: grayscale(0); opacity: 1; }
.clients-fine { margin-top: 22px; text-align: right; }

/* ---------- Contact ---------- */
.contact { background: var(--ivory); padding-top: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: start;
}
.contact-left { display: flex; flex-direction: column; gap: 28px; }

.map-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
}
.map { display: block; width: 100%; height: auto; }
.map text { font-family: var(--font); }
.map-caption {
  font-size: 11px;
  color: var(--muted-2);
  padding: 8px 4px 2px;
  letter-spacing: 0.01em;
}

.route { display: flex; flex-direction: column; }
.route-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.route-row:last-of-type { border-bottom: 1px solid var(--line); }
.route-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--green);
}
.route-row p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.route-row em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 3px;
}
.route-addr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  flex-wrap: wrap;
}
.route-addr h3 { font-size: 12px; letter-spacing: 0.14em; color: var(--muted-2); margin-bottom: 6px; }
.route-addr p { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.person {
  padding: 20px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.3s, transform 0.3s;
}
.person:hover { border-color: var(--line-2); transform: translateY(-2px); }
.person-role { font-size: 10px; letter-spacing: 0.14em; color: var(--muted-2); }
.person h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; margin-top: 2px; }
.person a {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-top: 6px;
  transition: color 0.2s;
}
.person a:hover { color: var(--green); }
.person-key { background: var(--green); border-color: var(--green); color: var(--ivory); }
.person-key .person-role { color: #9DB3A4; }
.person-key a { color: #C3CEC5; }
.person-key a:hover { color: #FFFFFF; }

.direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.direct a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--ivory-2);
  transition: background-color 0.25s, border-color 0.25s;
}
.direct a:hover { background: var(--paper); border-color: var(--line-2); }
.direct span { font-size: 10px; letter-spacing: 0.14em; color: var(--muted-2); }
.direct strong { font-size: 15px; font-weight: 600; letter-spacing: 0.005em; }

/* Form */
.contact-right { position: sticky; top: 100px; }
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 60px -50px rgba(22, 40, 30, 0.5);
}
.form-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.form-head h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 8px; }
.form-head p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #4B564D;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #FCFBF8;
  border: 1px solid #E3E0D6;
  border-radius: 2px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #AEB5AD; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #6E9A80;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(110, 154, 128, 0.12);
}
.field.has-error input { border-color: #B4564A; background: #FDF7F6; }
.field-error { font-size: 11.5px; color: #B4564A; margin-top: 6px; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #6B766D;
  border-bottom: 1.5px solid #6B766D;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select { padding-right: 38px; cursor: pointer; }
.select-wrap select:invalid { color: #AEB5AD; }

.form-card form .btn { margin-top: 6px; }
.form-note {
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.7;
  margin-top: 12px;
  text-align: center;
}

.form-done { text-align: center; animation: doneIn 0.4s var(--ease); }
@keyframes doneIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.done-mark {
  width: 46px;
  height: 46px;
  margin: 4px auto 18px;
  border-radius: 50%;
  background: rgba(78, 139, 105, 0.12);
  color: #2F6B4F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.form-done h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.form-done > p { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 22px; }
.summary {
  text-align: left;
  border-top: 1px solid var(--line);
  margin-bottom: 22px;
}
.summary > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.summary dt { color: var(--muted-2); font-size: 11.5px; letter-spacing: 0.04em; }
.summary dd { color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.form-done .btn { margin-bottom: 10px; }
.link-btn {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 6px;
}
.link-btn:hover { color: var(--green); }
.form-side-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.8;
}
.form-side-note a { color: var(--green); border-bottom: 1px solid var(--line-2); }

/* ---------- Footer ---------- */
.footer {
  background: var(--green);
  color: #C3CEC5;
  padding: clamp(56px, 7vw, 84px) 0 calc(28px + env(safe-area-inset-bottom));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.7fr;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-light);
}
.footer-logo {
  display: inline-block;
  background: #FFFFFF;
  padding: 12px 16px;
  border-radius: 2px;
}
.footer-logo img { height: 26px; width: auto; }
.footer-tag {
  margin-top: 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7E9A88;
  line-height: 1.9;
}
.footer-info dl { display: flex; flex-direction: column; gap: 9px; }
.footer-info dl > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 12.5px; }
.footer-info dt { color: #7E9A88; font-size: 11px; letter-spacing: 0.04em; padding-top: 1px; }
.footer-info dd { color: #C3CEC5; }
.footer-info dd span { color: #7E9A88; font-size: 11.5px; margin-left: 4px; }
.footer-info a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }

.footer-nav { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.footer-nav nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 13px; color: #C3CEC5; transition: color 0.2s; }
.footer-nav a:hover { color: #FFFFFF; }
.footer-domain { font-size: 11px; letter-spacing: 0.18em; color: #7E9A88; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  font-size: 11px;
  color: #6F8A78;
  flex-wrap: wrap;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 20, 15, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  width: min(1040px, 100%);
  max-height: min(88vh, 760px);
  background: var(--paper);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.42s var(--ease);
  overflow: hidden;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250, 249, 246, 0.92);
  border: 1px solid var(--line);
  transition: background-color 0.25s, transform 0.25s;
}
.modal-close:hover { background: #FFFFFF; transform: rotate(90deg); }
.modal-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--green);
}
.modal-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.modal-media {
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-right: 1px solid var(--line);
  min-height: 0;
}
.modal-media img { width: 100%; height: 100%; max-height: 640px; object-fit: contain; }

.modal-body {
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.modal-cat { font-size: 10.5px; letter-spacing: 0.18em; color: var(--sage); margin-bottom: 10px; }
.modal-body h3 { font-size: clamp(22px, 2.2vw, 27px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.4; }
.modal-brand { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-top: 8px; }
.modal-desc { font-size: 14px; line-height: 1.9; color: #4B564D; margin-top: 22px; }
.modal-forms {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.modal-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.modal-pager { display: flex; align-items: center; gap: 6px; }
.modal-pager button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 14px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.modal-pager button:hover { background: var(--green); color: var(--ivory); border-color: var(--green); }
.modal-pager span { font-size: 11px; letter-spacing: 0.1em; color: var(--muted-2); margin-left: 6px; }

/* ---------- Reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); }
  .nav { gap: 28px; }
  .nav ul { gap: 26px; }
}

@media (max-width: 1024px) {
  :root { --pad: 22px; }
  .nav ul { display: none; }
  .nav { gap: 0; }
  .nav-tel { display: none; }
  .menu-btn { display: block; }
  .header-inner { height: 68px; }
  .mobile-menu { inset: 68px 0 0 0; }
  .section { scroll-margin-top: 68px; }

  .hero { padding-top: calc(68px + 60px); }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 40px; }
  .collage { width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-body p { max-width: none; }

  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .fac-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "main glue"
      "main thom"
      "wide wide";
  }
  .fac-main .fac-media { aspect-ratio: 3 / 4.2; }
  .fac-wide .fac-media { aspect-ratio: 16 / 7; }

  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-right { position: static; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-desc { max-width: 560px; padding-bottom: 0; }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 640px; }
  .collage { max-width: 540px; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  body { font-size: 15px; }
  .pc-only { display: none; }

  .header-inner { height: 62px; }
  .mobile-menu { inset: 62px 0 0 0; }
  .brand img { height: 26px; }
  .section { scroll-margin-top: 62px; }
  .hero { padding-top: calc(62px + 48px); }
  .collage { max-width: 460px; }

  h1 { font-size: clamp(32px, 9vw, 42px); line-height: 1.3; }
  h2 { font-size: clamp(25px, 7.2vw, 32px); }
  .rule { margin: 24px 0; width: 42px; }

  .hero-actions { margin-top: 32px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .collage { max-width: none; }
  .c1 { width: 100%; }
  .c2 { width: 100%; margin-top: 4%; }
  .c3 { display: none; }
  .collage-card { padding: 7px 7px 0; }
  .collage-card figcaption { font-size: 9.5px; padding: 7px 2px 8px; }
  .collage-card figcaption span { font-size: 7.5px; letter-spacing: 0.12em; }

  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px 0; margin-top: 44px; padding-top: 22px; }
  .hero-stats > div { padding: 0 18px; }
  .hero-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid rgba(250,249,246,0.12); padding-top: 18px; }
  .hero-stats dt { font-size: 24px; }
  .hero-stats dd { font-size: 9.5px; letter-spacing: 0.16em; }
  .hero-stats dd em { font-size: 11px; }

  .section { padding: 64px 0; }
  .about-body p { font-size: 14.5px; }
  .quote { margin-top: 28px; padding-left: 18px; }
  .fsc-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .fsc-card img { width: 88px; }

  .timeline { grid-template-columns: 1fr; border-top: 0; margin-top: 44px; }
  .timeline li { border-right: 0; border-top: 1px solid var(--line); padding: 22px 0 4px; }
  .timeline li::before { top: -4px; }
  .timeline .year { font-size: 30px; margin-bottom: 8px; }

  .filters {
    gap: 6px; margin-bottom: 24px; overflow-x: auto; flex-wrap: nowrap;
    padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; padding: 9px 15px; font-size: 12.5px; }

  .grid-products { gap: 10px; }
  .card { padding: 0; }
  .card-body { padding: 12px 12px 14px; gap: 3px; }
  .card-name { font-size: 12.5px; line-height: 1.4; }
  .card-cat { font-size: 9px; letter-spacing: 0.1em; }
  .card-brand { font-size: 9.5px; letter-spacing: 0.05em; }
  .card-cta { padding: 20px 16px; }
  .card-cta h3 { font-size: 19px; }

  .forms-note { flex-direction: column; gap: 8px; }
  .forms-note p > span { display: none; }

  .fac-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "glue" "thom" "wide";
  }
  .fac-main .fac-media,
  .fac .fac-media,
  .fac-wide .fac-media { aspect-ratio: 4 / 3; }
  .fac figcaption { padding-top: 14px; }
  .fac-en { display: none; }
  .fac h3 { font-size: 14.5px; }
  .fac-desc { font-size: 12px; }

  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-grid li { aspect-ratio: 3 / 2; padding: 12px; }
  .logo-grid img { max-height: 34px; }
  .clients-fine { text-align: left; }

  .people { grid-template-columns: 1fr 1fr; }
  .person-key { grid-column: 1 / -1; }
  .direct { grid-template-columns: 1fr; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 22px 18px; }

  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-info dl > div { grid-template-columns: 84px 1fr; font-size: 12px; }
  .footer-nav { flex-direction: row; align-items: flex-end; }
  .footer-nav nav { gap: 8px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    width: 100%;
    max-height: 92vh;
    animation: sheetIn 0.4s var(--ease);
  }
  @keyframes sheetIn {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  .modal-media { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); max-height: 40vh; }
  .modal-media img { max-height: 34vh; }
  .modal-body { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .modal-desc { margin-top: 16px; font-size: 13.5px; }
  .modal-actions { padding-top: 22px; }
  .modal-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .hero-stats dt { font-size: 22px; }
  .people { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
