/* ===============================
   MIJEON Homepage Draft Style
   =============================== */

:root {
  --ivory: #F7F1E8;
  --soft-white: #FFFCF7;
  --beige: #E8D8C3;
  --line: #D8CABB;
  --brown: #6B4E3D;
  --deep-brown: #2E2520;
  --gray-brown: #6F6258;
  --sage: #7D9277;
  --shadow: 0 18px 50px rgba(46, 37, 32, 0.10);
  --radius: 22px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--deep-brown);
  background: var(--soft-white);
  line-height: 1.65;
  word-break: keep-all;
}

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

button {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--beige);
}

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

h1 {
  margin-bottom: 28px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

p {
  color: var(--gray-brown);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 247, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 202, 187, 0.7);
}

.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brown);
  color: var(--ivory);
  font-weight: 800;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--gray-brown);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  color: var(--gray-brown);
}

.desktop-nav a:hover {
  color: var(--brown);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brown);
  color: var(--ivory);
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--deep-brown);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--soft-white);
}

.mobile-nav a {
  display: block;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(216, 202, 187, 0.55);
}

/* Buttons */
.button-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brown);
  color: var(--ivory);
}

.btn-secondary {
  border: 1px solid var(--brown);
  color: var(--brown);
  background: transparent;
}

.btn-light {
  background: var(--ivory);
  color: var(--deep-brown);
}

.btn-outline-light {
  border: 1px solid rgba(247, 241, 232, 0.65);
  color: var(--ivory);
}

/* Hero */
.hero {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 80% 10%, rgba(125, 146, 119, 0.18), transparent 34%),
    linear-gradient(180deg, var(--soft-white) 0%, var(--ivory) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}

.hero-description {
  max-width: 660px;
  margin-bottom: 34px;
  font-size: 19px;
}

.hero-visual {
  min-height: 520px;
}

.image-placeholder {
  height: 100%;
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(107, 78, 61, 0.12), rgba(125, 146, 119, 0.13)),
    var(--beige);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-placeholder span {
  display: block;
  color: var(--deep-brown);
  font-size: 26px;
  font-weight: 800;
}

.image-placeholder small {
  display: block;
  margin-top: 8px;
  color: var(--gray-brown);
}

.image-placeholder.small {
  min-height: 440px;
}

/* Section headings */
.section-heading {
  margin-bottom: 46px;
}

.section-heading.compact {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
}

.section-heading.split p {
  margin-bottom: 0;
}

/* Features */
.feature-band {
  background: var(--ivory);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.service-card,
.process-list article,
.mini-card {
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.78);
  border-radius: var(--radius);
}

.feature-card {
  padding: 28px;
}

.card-number {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--sage);
  font-weight: 800;
}

/* Portfolio */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  border: 1px solid var(--line);
  background: var(--soft-white);
  color: var(--gray-brown);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--brown);
  background: var(--brown);
  color: var(--ivory);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--soft-white);
  box-shadow: 0 10px 30px rgba(46, 37, 32, 0.06);
}

.portfolio-image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(107, 78, 61, 0.16), rgba(125, 146, 119, 0.15)),
    var(--beige);
  color: var(--gray-brown);
  font-weight: 700;
}

.portfolio-content {
  padding: 22px;
}

.portfolio-content span {
  display: block;
  margin-bottom: 8px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 700;
}

.portfolio-content h3 {
  margin-bottom: 8px;
}

.portfolio-content p {
  margin-bottom: 0;
  font-size: 15px;
}

/* Services */
.service-section {
  background: var(--ivory);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  padding: 30px;
}

.service-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brown);
  font-weight: 800;
}

/* Detail sections */
.two-column {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.two-column.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--deep-brown);
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage);
  font-weight: 900;
}

.oriental-section {
  background: var(--ivory);
}

.mini-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.mini-card {
  padding: 20px;
}

.mini-card strong,
.mini-card span {
  display: block;
}

.mini-card span {
  margin-top: 8px;
  color: var(--gray-brown);
  font-size: 15px;
}

/* Process */
.process-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.process-list article {
  padding: 24px;
}

.process-list span {
  display: block;
  margin-bottom: 30px;
  color: var(--sage);
  font-weight: 900;
}

.process-list h3 {
  font-size: 19px;
}

.process-list p {
  margin-bottom: 0;
  font-size: 15px;
}

/* Contact */
.contact-section {
  padding-top: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 62px;
  border-radius: 34px;
  background:
    radial-gradient(circle at right top, rgba(125, 146, 119, 0.32), transparent 38%),
    var(--deep-brown);
  color: var(--ivory);
}

.contact-card p {
  color: rgba(247, 241, 232, 0.82);
}

.contact-card h2 {
  color: var(--ivory);
}

/* Footer */
.site-footer {
  padding: 70px 0 86px;
  background: var(--deep-brown);
  color: var(--ivory);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 50px;
}

.footer-brand .brand-symbol {
  background: var(--ivory);
  color: var(--deep-brown);
}

.footer-brand .brand-text small,
.site-footer p {
  color: rgba(247, 241, 232, 0.72);
}

.site-footer h3 {
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: rgba(247, 241, 232, 0.78);
}

.copyright {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 241, 232, 0.18);
  color: rgba(247, 241, 232, 0.62);
  font-size: 14px;
}

/* Mobile fixed contact */
.mobile-fixed-contact {
  display: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero-grid,
  .two-column,
  .two-column.reverse,
  .section-heading.split,
  .contact-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .process-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .header-inner {
    height: 70px;
  }

  .brand-symbol {
    width: 38px;
    height: 38px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .button-row,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .image-placeholder,
  .image-placeholder.small {
    min-height: 300px;
    border-radius: 24px;
  }

  .feature-grid,
  .service-grid,
  .portfolio-grid,
  .mini-card-row,
  .process-list {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .service-card,
  .process-list article {
    padding: 24px;
  }

  .contact-card {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .site-footer {
    padding-bottom: 108px;
  }

  .mobile-fixed-contact {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--deep-brown);
    border-top: 1px solid rgba(247, 241, 232, 0.18);
  }

  .mobile-fixed-contact a {
    min-height: 56px;
    display: grid;
    place-items: center;
    color: var(--ivory);
    font-weight: 800;
  }

  .mobile-fixed-contact a + a {
    border-left: 1px solid rgba(247, 241, 232, 0.18);
  }
}


/* v2 additions: SVG logo and image assets */
.logo-brand img {
  width: 220px;
  height: auto;
}

.footer-brand img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.site-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--beige);
}

.hero-image {
  min-height: 520px;
}

img.portfolio-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--beige);
}

@media (max-width: 720px) {
  .logo-brand img {
    width: 170px;
  }

  .site-image,
  .hero-image {
    min-height: 300px;
    border-radius: 24px;
  }
}


/* v3 actual project photo refinements */
.hero-image {
  object-position: center center;
}

.portfolio-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(46, 37, 32, 0.11);
}

img.portfolio-image {
  filter: saturate(0.94) contrast(0.98);
}

.portrait-image {
  object-position: center center;
}


/* v4 portfolio data and filters */
.portfolio-card[hidden] {
  display: none;
}

.portfolio-content p {
  min-height: 1.65em;
}

@media (max-width: 720px) {
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .filter-button {
    flex: 0 0 auto;
  }
}


/* v5 project detail page */
.portfolio-link {
  display: block;
}

.project-page {
  background: var(--soft-white);
}

.project-hero {
  padding: 86px 0 0;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--soft-white) 100%);
}

.project-heading {
  padding-bottom: 52px;
}

.project-back {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--gray-brown);
  font-weight: 700;
}

.project-heading h1 {
  margin-bottom: 38px;
  font-size: clamp(52px, 7vw, 96px);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.project-meta div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-meta dt {
  margin-bottom: 8px;
  color: var(--gray-brown);
  font-size: 13px;
  font-weight: 700;
}

.project-meta dd {
  margin: 0;
  color: var(--deep-brown);
  font-weight: 700;
}

.project-cover-wrap {
  padding-bottom: 0;
}

.project-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.project-intro {
  padding-bottom: 64px;
}

.project-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: end;
}

.project-intro-grid p {
  margin-bottom: 0;
  font-size: 18px;
}

.project-gallery {
  padding-top: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  background: var(--beige);
}

.gallery-item.gallery-wide {
  grid-column: 1 / -1;
}

.gallery-item.gallery-wide img {
  aspect-ratio: 16 / 9;
}

.gallery-item.gallery-tall img {
  aspect-ratio: 4 / 5;
}

.gallery-item figcaption {
  margin-top: 12px;
  color: var(--gray-brown);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-contact {
  padding-bottom: 0;
}

.next-project-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

@media (max-width: 900px) {
  .project-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .project-hero {
    padding-top: 54px;
  }

  .project-heading h1 {
    font-size: 48px;
  }

  .project-meta {
    grid-template-columns: 1fr 1fr;
  }

  .project-cover {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-item.gallery-wide {
    grid-column: auto;
  }

  .gallery-item img,
  .gallery-item.gallery-wide img,
  .gallery-item.gallery-tall img {
    aspect-ratio: auto;
    max-height: none;
  }

  .next-project-inner {
    align-items: stretch;
    flex-direction: column;
  }
}


/* v6 technical project detail */
.project-subtitle {
  margin: -20px 0 34px;
  color: var(--brown);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
}

.technical-hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(125, 146, 119, 0.16), transparent 32%),
    linear-gradient(180deg, #F5F0E9 0%, var(--soft-white) 100%);
}

.technical-cover {
  object-position: center;
}

.technical-points {
  background: var(--ivory);
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.technical-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft-white);
}

.technical-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--sage);
  font-weight: 900;
}

.technical-card p {
  margin-bottom: 0;
}

.technical-gallery {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.technical-main-photo {
  margin: 0;
}

.technical-main-photo img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.technical-main-photo figcaption {
  margin-top: 12px;
  color: var(--gray-brown);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.technical-note {
  max-width: 560px;
}

@media (max-width: 1000px) {
  .technical-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .technical-gallery {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 720px) {
  .technical-grid {
    grid-template-columns: 1fr;
  }

  .technical-main-photo img {
    min-height: 320px;
    border-radius: 24px;
  }
}


/* v7 completed portfolio detail pages */
.project-meta-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-link {
  height: 100%;
}

@media (max-width: 720px) {
  .project-meta-three {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   MIJEON v8 — Figma-based homepage and maintainable slider
   ========================================================= */

:root {
  --mj-warm-white: #fbf8f2;
  --mj-ivory: #f4eee5;
  --mj-sand: #e5d8c6;
  --mj-brown: #6f5543;
  --mj-deep: #252a27;
  --mj-graphite: #333936;
  --mj-sage: #72806a;
  --mj-sage-dark: #4e5d4c;
  --mj-muted: #625d56;
  --mj-line: #d8cec0;
  --mj-shadow: 0 20px 55px rgba(37, 42, 39, 0.10);
}

.home-page {
  background: var(--mj-warm-white);
  color: var(--mj-deep);
}

.home-page .container {
  width: min(1288px, calc(100% - 48px));
}

.home-page p {
  color: var(--mj-muted);
}

.home-page .site-header {
  background: rgba(251, 248, 242, 0.94);
  border-color: rgba(216, 206, 192, 0.75);
}

.home-page .header-inner {
  height: 84px;
}

.home-page .logo-brand img {
  width: 210px;
}

.home-page .desktop-nav {
  gap: 24px;
  color: var(--mj-graphite);
  font-size: 14px;
  font-weight: 600;
}

.home-page .header-cta {
  height: 46px;
  padding: 0 22px;
  background: var(--mj-deep);
  color: #fff;
}

.home-page .eyebrow {
  color: var(--mj-sage-dark);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.home-page .eyebrow.light {
  color: var(--mj-sand);
}

.home-page .btn {
  min-height: 54px;
  border-radius: 10px;
  padding-inline: 26px;
}

.home-page .btn-primary {
  background: var(--mj-deep);
}

.home-page .btn-secondary {
  border-color: var(--mj-brown);
  color: var(--mj-brown);
  background: transparent;
}

.home-page .btn-sage {
  background: var(--mj-sage);
  color: #fff;
}

.mj-hero {
  padding: 96px 0 104px;
  background: var(--mj-ivory);
}

.mj-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 0.8fr);
  gap: 78px;
  align-items: center;
}

.mj-hero-copy h1 {
  max-width: 720px;
  margin: 26px 0 28px;
  font-size: clamp(46px, 4.3vw, 68px);
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.mj-hero-description {
  max-width: 640px;
  margin-bottom: 34px;
  font-size: 17px;
  line-height: 1.78;
}

.mj-hero-media {
  min-height: 600px;
}

.mj-hero-media img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  box-shadow: var(--mj-shadow);
}

.mj-section {
  padding: 112px 0;
}

.mj-heading-row {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}

.mj-heading-row h2,
.mj-services h2,
.mj-process h2,
.mj-technical h2,
.mj-contact-card h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.mj-heading-copy {
  max-width: 520px;
  margin: 0 0 8px auto;
  font-size: 16px;
  line-height: 1.75;
}

.mj-difference-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mj-card {
  border: 1px solid var(--mj-line);
  border-radius: 18px;
  background: rgba(244, 238, 229, 0.62);
}

.mj-difference-card {
  min-height: 220px;
  padding: 28px;
}

.mj-difference-card span,
.mj-process-card span,
.mj-service-card > span {
  display: block;
  color: var(--mj-sage-dark);
  font-size: 12px;
  font-weight: 800;
}

.mj-difference-card h3 {
  margin-top: 48px;
  font-size: 20px;
}

.mj-difference-card p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.65;
}

.mj-project-section {
  overflow: hidden;
  background: var(--mj-ivory);
}

.mj-project-heading {
  margin-bottom: 26px;
}

.mj-project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-page .filter-row {
  margin: 0;
}

.home-page .filter-button {
  min-height: 38px;
  border-color: var(--mj-line);
  background: var(--mj-warm-white);
  color: var(--mj-muted);
}

.home-page .filter-button.active,
.home-page .filter-button:hover {
  border-color: var(--mj-deep);
  background: var(--mj-deep);
  color: #fff;
}

.mj-slider-controls {
  display: flex;
  gap: 8px;
}

.mj-slider-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--mj-line);
  border-radius: 50%;
  background: var(--mj-warm-white);
  color: var(--mj-deep);
  cursor: pointer;
  font-weight: 800;
}

.mj-slider-button:hover,
.mj-slider-button:focus-visible {
  border-color: var(--mj-sage-dark);
  background: var(--mj-sage-dark);
  color: #fff;
  outline: none;
}

.mj-slider-status {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 250px;
  margin: 24px 0 22px;
  color: var(--mj-muted);
  font-size: 12px;
}

.mj-slider-line {
  position: relative;
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: var(--mj-line);
}

.mj-slider-line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 16.66%;
  background: var(--mj-deep);
  transition: width 300ms ease;
}

.mj-project-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
}

.mj-project-viewport::-webkit-scrollbar {
  display: none;
}

.mj-project-viewport:active {
  cursor: grabbing;
}

.mj-project-viewport:focus-visible {
  outline: 2px solid var(--mj-sage-dark);
  outline-offset: 8px;
}

.mj-project-track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: max-content;
}

.mj-project-card {
  flex: 0 0 clamp(330px, 31vw, 410px);
  scroll-snap-align: start;
}

.mj-project-card > a {
  display: block;
  color: inherit;
}

.mj-project-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: var(--mj-sand);
}

.mj-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.mj-project-image i {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(37, 42, 39, 0.86);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  opacity: 0;
  transform: translateY(8px);
  transition: 250ms ease;
}

.mj-project-card a:hover .mj-project-image img,
.mj-project-card a:focus-visible .mj-project-image img {
  transform: scale(1.035);
}

.mj-project-card a:hover .mj-project-image i,
.mj-project-card a:focus-visible .mj-project-image i {
  opacity: 1;
  transform: translateY(0);
}

.mj-project-card a:focus-visible {
  outline: 2px solid var(--mj-sage-dark);
  outline-offset: 5px;
}

.mj-project-info {
  position: relative;
  display: block;
  padding-top: 18px;
}

.mj-project-info small {
  display: block;
  margin-bottom: 8px;
  color: var(--mj-sage-dark);
  font-size: 13px;
  font-weight: 700;
}

.mj-project-info strong {
  display: block;
  padding-right: 80px;
  font-size: 20px;
}

.mj-project-info time {
  position: absolute;
  right: 0;
  bottom: 2px;
  color: var(--mj-muted);
  font-size: 13px;
}

.mj-services {
  background: var(--mj-warm-white);
}

.mj-services-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(560px, 1.25fr);
  gap: 90px;
  align-items: start;
}

.mj-services-intro > p:last-child {
  max-width: 400px;
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.72;
}

.mj-service-list {
  display: grid;
  gap: 14px;
}

.mj-service-card {
  display: grid;
  grid-template-columns: 44px 1fr 36px;
  gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 22px 28px;
  border: 1px solid var(--mj-line);
  border-radius: 17px;
  background: var(--mj-ivory);
  transition: 220ms ease;
}

.mj-service-card:hover,
.mj-service-card:focus-visible {
  border-color: var(--mj-sage);
  background: #edf0e9;
  transform: translateX(4px);
  outline: none;
}

.mj-service-card h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.mj-service-card p {
  margin: 0;
  font-size: 15px;
}

.mj-service-card b {
  color: var(--mj-brown);
  font-size: 20px;
}

.mj-technical {
  padding: 112px 0;
  background: var(--mj-deep);
  color: #fff;
}

.mj-technical-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(450px, 1fr);
  gap: 78px;
  align-items: center;
}

.mj-technical-image img {
  width: 100%;
  min-height: 660px;
  object-fit: cover;
  border-radius: 28px;
  filter: brightness(1.06);
}

.mj-technical-copy h2 {
  color: #fff;
}

.mj-technical-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 26px 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.72;
}

.mj-technical-copy ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 32px 0 38px;
  list-style: none;
}

.mj-technical-copy li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.mj-technical-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mj-sage);
}

.mj-process {
  background: var(--mj-ivory);
}

.mj-process > .container > h2 {
  margin: 16px 0 48px;
}

.mj-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mj-process-card {
  min-height: 180px;
  padding: 25px;
  background: var(--mj-warm-white);
}

.mj-process-card h3 {
  margin-top: 36px;
  font-size: 19px;
}

.mj-process-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.mj-contact-section {
  background: var(--mj-warm-white);
}

.mj-contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 64px;
  border-radius: 26px;
  background: var(--mj-sage-dark);
}

.mj-contact-card h2 {
  color: #fff;
}

.mj-contact-card p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.mj-contact-actions {
  display: grid;
  gap: 12px;
  min-width: 230px;
}

.home-page .site-footer {
  background: var(--mj-deep);
}

.home-page .mobile-fixed-contact {
  display: none;
}

@media (max-width: 1100px) {
  .home-page .desktop-nav,
  .home-page .header-cta {
    display: none;
  }

  .home-page .mobile-menu-button {
    display: block;
  }

  .mj-hero-grid,
  .mj-services-grid,
  .mj-technical-grid,
  .mj-contact-card {
    grid-template-columns: 1fr;
  }

  .mj-hero-media {
    min-height: auto;
  }

  .mj-hero-media img {
    height: min(70vw, 620px);
  }

  .mj-heading-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mj-heading-copy {
    margin-left: 0;
  }

  .mj-difference-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mj-technical-image img {
    min-height: 520px;
  }
}

@media (max-width: 720px) {
  .home-page {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .home-page .container {
    width: min(100% - 40px, 1288px);
  }

  .home-page .header-inner {
    height: 76px;
  }

  .home-page .logo-brand img {
    width: 170px;
  }

  .home-page .mobile-menu-button {
    width: 44px;
    height: 44px;
  }

  .mj-hero {
    padding: 64px 0 0;
  }

  .mj-hero-grid {
    gap: 34px;
  }

  .mj-hero-copy h1 {
    margin-top: 24px;
    font-size: 38px;
    line-height: 1.2;
  }

  .mj-hero-description {
    font-size: 16px;
    line-height: 1.75;
  }

  .mj-hero-copy .button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mj-hero-copy .btn {
    width: 100%;
    padding-inline: 14px;
  }

  .mj-hero-media {
    margin-inline: -20px;
  }

  .mj-hero-media img {
    width: 100%;
    height: 340px;
    border-radius: 20px 20px 0 0;
    box-shadow: none;
  }

  .mj-section,
  .mj-technical {
    padding: 76px 0;
  }

  .mj-heading-row h2,
  .mj-services h2,
  .mj-process h2,
  .mj-technical h2,
  .mj-contact-card h2 {
    font-size: 31px;
  }

  .mj-difference-grid,
  .mj-process-grid {
    grid-template-columns: 1fr;
  }

  .mj-difference-card {
    min-height: 148px;
    padding: 22px;
  }

  .mj-difference-card h3 {
    margin-top: 24px;
    font-size: 18px;
  }

  .mj-project-toolbar {
    align-items: flex-end;
  }

  .home-page .filter-row {
    flex-wrap: nowrap;
    width: calc(100vw - 130px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-page .filter-row::-webkit-scrollbar {
    display: none;
  }

  .mj-slider-controls {
    flex-shrink: 0;
  }

  .mj-slider-button {
    width: 38px;
    height: 38px;
  }

  .mj-slider-status {
    width: 180px;
  }

  .mj-project-viewport {
    width: calc(100vw - 20px);
    margin-right: -20px;
  }

  .mj-project-card {
    flex-basis: 84vw;
    max-width: 360px;
  }

  .mj-project-info small,
  .mj-project-info time {
    font-size: 12px;
  }

  .mj-project-info strong {
    font-size: 19px;
  }

  .mj-services-grid {
    gap: 40px;
  }

  .mj-service-card {
    grid-template-columns: 34px 1fr 24px;
    min-height: 100px;
    padding: 19px;
  }

  .mj-service-card h3 {
    font-size: 18px;
  }

  .mj-service-card p {
    font-size: 14px;
  }

  .mj-technical-grid {
    gap: 40px;
  }

  .mj-technical-image img {
    min-height: 410px;
    border-radius: 20px;
  }

  .mj-technical-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .mj-technical-copy li {
    font-size: 14px;
  }

  .mj-process-card {
    min-height: 138px;
    padding: 21px;
  }

  .mj-process-card h3 {
    margin-top: 22px;
    font-size: 18px;
  }

  .mj-contact-card {
    padding: 30px 22px;
    border-radius: 20px;
  }

  .mj-contact-actions {
    min-width: 0;
  }

  .home-page .mobile-fixed-contact {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--mj-deep);
    box-shadow: 0 -8px 30px rgba(37, 42, 39, 0.14);
  }

  .home-page .mobile-fixed-contact a {
    min-height: 58px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
  }

  .home-page .mobile-fixed-contact a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   MIJEON v9 — slider stability and text clipping fixes
   ========================================================= */

.home-page {
  overflow-x: hidden;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p,
.home-page li,
.home-page strong,
.home-page small,
.home-page time,
.home-page .btn {
  max-width: 100%;
  overflow-wrap: break-word;
}

.home-page .desktop-nav a,
.home-page .header-cta,
.home-page .filter-button,
.home-page .mobile-fixed-contact a {
  white-space: nowrap;
}

.home-page .btn {
  min-width: 0;
  height: auto;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.mj-hero-copy,
.mj-heading-row > *,
.mj-services-intro,
.mj-service-card > div,
.mj-technical-copy,
.mj-contact-card > * {
  min-width: 0;
}

.mj-card,
.mj-difference-card,
.mj-process-card,
.mj-service-card {
  height: auto;
  overflow: visible;
}

.mj-project-viewport {
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
}

.mj-project-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}

.mj-project-track {
  padding-right: 1px;
}

.mj-project-card {
  min-width: 0;
}

.mj-project-info {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 7px;
  min-height: 78px;
  padding-top: 18px;
}

.mj-project-info small {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.mj-project-info strong {
  min-width: 0;
  padding-right: 0;
  line-height: 1.42;
}

.mj-project-info time {
  position: static;
  align-self: end;
  white-space: nowrap;
  line-height: 1.42;
}

.mj-service-card {
  grid-template-columns: minmax(34px, 44px) minmax(0, 1fr) 36px;
}

.mj-service-card h3,
.mj-service-card p,
.mj-difference-card h3,
.mj-difference-card p,
.mj-process-card h3,
.mj-process-card p {
  height: auto;
  overflow: visible;
}

.mj-technical-copy li,
.site-footer p,
.site-footer a {
  overflow-wrap: anywhere;
}

.mj-slider-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

@media (max-width: 1260px) {
  .home-page .desktop-nav {
    gap: 16px;
    font-size: 13px;
  }

  .home-page .logo-brand img {
    width: 190px;
  }
}

@media (max-width: 1160px) {
  .home-page .desktop-nav,
  .home-page .header-cta {
    display: none;
  }

  .home-page .mobile-menu-button {
    display: block;
  }
}

@media (max-width: 720px) {
  .mj-hero-copy h1,
  .mj-heading-row h2,
  .mj-services-intro h2,
  .mj-technical-copy h2,
  .mj-contact-card h2 {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  /* Remove rigid desktop line breaks and allow natural wrapping. */
  .mj-hero-copy h1 br,
  .mj-heading-row h2 br,
  .mj-services-intro h2 br,
  .mj-technical-copy h2 br,
  .mj-contact-card h2 br {
    display: none;
  }

  .mj-hero-copy h1 {
    font-size: clamp(32px, 9.6vw, 38px);
  }

  .mj-project-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .home-page .filter-row {
    width: 100%;
    min-width: 0;
  }

  .mj-project-card {
    flex-basis: min(84vw, 360px);
  }

  .mj-project-info {
    min-height: 82px;
    column-gap: 10px;
  }

  .mj-project-info strong {
    font-size: 18px;
  }

  .mj-project-info small,
  .mj-project-info time {
    font-size: 12px;
  }

  .mj-service-card {
    grid-template-columns: 30px minmax(0, 1fr) 22px;
  }

  .mj-service-card h3,
  .mj-difference-card h3,
  .mj-process-card h3 {
    word-break: keep-all;
  }

  .mj-technical-copy li {
    font-size: 14px;
    line-height: 1.65;
  }

  .site-footer p,
  .site-footer a {
    font-size: 13px;
    line-height: 1.65;
  }
}

@media (max-width: 360px) {
  .home-page .container {
    width: min(100% - 28px, 1288px);
  }

  .mj-hero-media {
    margin-inline: -14px;
  }

  .mj-hero-copy .button-row {
    grid-template-columns: 1fr;
  }

  .mj-project-toolbar {
    grid-template-columns: 1fr;
  }

  .mj-slider-controls {
    margin-left: auto;
  }

  .mj-project-card {
    flex-basis: 86vw;
  }

  .home-page .mobile-fixed-contact a {
    font-size: 14px;
  }
}


/* =========================================================
   MIJEON v10 — exact wordmark, faster autoplay, full drag area
   ========================================================= */

.logo-brand img {
  display: block;
  width: 230px;
  max-width: 100%;
  height: auto;
}

.mj-project-viewport,
.mj-project-viewport *,
.mj-project-card,
.mj-project-card a,
.mj-project-image,
.mj-project-image img,
.mj-project-info {
  -webkit-user-drag: none;
  user-select: none;
}

.mj-project-viewport {
  cursor: grab;
}

.mj-project-viewport.is-dragging,
.mj-project-viewport.is-dragging * {
  cursor: grabbing !important;
}

.mj-project-card a {
  cursor: inherit;
}

@media (max-width: 1260px) {
  .home-page .logo-brand img {
    width: 200px;
  }
}

@media (max-width: 720px) {
  .home-page .logo-brand img {
    width: 160px;
  }
}


/* =========================================================
   MIJEON v11 — A안 로고 및 모바일 한글 줄바꿈 보정
   ========================================================= */

.logo-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  width: auto !important;
  min-width: max-content;
  color: #2f2b27;
  text-decoration: none;
}

.logo-brand .brand-symbol-a {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
}

.logo-brand .brand-symbol-a svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.logo-brand .brand-symbol-a circle {
  fill: #f7f1e8;
  stroke: #d8cabb;
  stroke-width: 1.5;
}

.logo-brand .brand-leaf {
  fill: #74866f;
}

.logo-brand .brand-vein {
  fill: none;
  stroke: #fffdf8;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.logo-brand .brand-wordmark {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.logo-brand .brand-wordmark strong {
  color: #2f2b27;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.105em;
  line-height: 1;
}

.logo-brand .brand-wordmark small {
  color: #6e6259;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
}

/* 푸터 전용 밝은 로고 */
.site-footer .footer-brand {
  margin-bottom: 20px;
}

.site-footer .footer-brand .brand-symbol-a circle {
  fill: rgba(247, 241, 232, 0.11);
  stroke: rgba(247, 241, 232, 0.42);
}

.site-footer .footer-brand .brand-leaf {
  fill: #9aaa92;
}

.site-footer .footer-brand .brand-wordmark strong {
  color: #fffdf8;
}

.site-footer .footer-brand .brand-wordmark small {
  color: rgba(255, 253, 248, 0.74);
}

/* 이전 이미지 로고 규칙 무효화 */
.logo-brand img,
.footer-brand img {
  display: none !important;
  filter: none !important;
}

/* 한글 단어가 중간에서 잘리지 않도록 처리 */
.home-page p,
.home-page li,
.home-page h1,
.home-page h2,
.home-page h3,
.home-page strong,
.home-page small,
.project-page p,
.project-page li,
.project-page h1,
.project-page h2,
.project-page h3,
.project-page strong,
.project-page small {
  word-break: keep-all;
  overflow-wrap: normal;
}

/* 이메일·영문·주소처럼 긴 문자열만 안전하게 줄바꿈 */
.site-footer p,
.site-footer a,
.project-page .project-meta,
.home-page .mj-project-info time {
  overflow-wrap: anywhere;
}

/* 모바일에서 비정상적으로 벌어지는 글자 간격 방지 */
.home-page p,
.project-page p {
  text-align: left;
  text-justify: auto;
}

.mj-hero-description,
.mj-heading-copy,
.mj-difference-card p,
.mj-service-card p,
.mj-technical-copy p,
.mj-technical-copy li,
.mj-process-card p,
.mj-contact-card p,
.project-page main p,
.project-page main li {
  letter-spacing: -0.015em;
  line-height: 1.72;
}

@media (max-width: 720px) {
  .logo-brand {
    gap: 9px;
  }

  .logo-brand .brand-symbol-a {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .logo-brand .brand-wordmark strong {
    font-size: 17px;
    letter-spacing: 0.09em;
  }

  .logo-brand .brand-wordmark small {
    font-size: 9px;
  }

  .mj-hero-description,
  .mj-heading-copy,
  .mj-difference-card p,
  .mj-service-card p,
  .mj-technical-copy p,
  .mj-technical-copy li,
  .mj-process-card p,
  .mj-contact-card p,
  .project-page main p,
  .project-page main li {
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: normal;
    letter-spacing: -0.018em;
    line-height: 1.72;
  }

  .mj-technical-copy li,
  .mj-project-info small {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .logo-brand .brand-symbol-a {
    flex-basis: 35px;
    width: 35px;
    height: 35px;
  }

  .logo-brand .brand-wordmark strong {
    font-size: 16px;
  }
}


/* =========================================================
   MIJEON v12 — 최초 제안 A안 심볼 적용
   사람 + 공간(M) + 자연·치유(잎사귀)
   ========================================================= */

.logo-brand-a {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  width: auto !important;
  min-width: max-content;
  color: #8b6548;
  text-decoration: none;
}

.brand-symbol-mijeon-a {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
}

.brand-symbol-mijeon-a svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-symbol-mijeon-a .a-person {
  fill: #a8774e;
}

.brand-symbol-mijeon-a .a-m-left {
  fill: none;
  stroke: #a8774e;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-symbol-mijeon-a .a-m-right {
  fill: none;
  stroke: #8a9b77;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-symbol-mijeon-a .a-leaf-back {
  fill: #80946d;
}

.brand-symbol-mijeon-a .a-leaf-front {
  fill: #8b684d;
}

.brand-symbol-mijeon-a .a-leaf-vein-back,
.brand-symbol-mijeon-a .a-leaf-vein-front {
  fill: none;
  stroke: #fdf9f1;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.brand-wordmark-a {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.brand-wordmark-a strong {
  color: #8b6548;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1;
}

.brand-wordmark-a small {
  color: #71645b;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: nowrap;
}

/* v11 임시 원형 심볼은 표시하지 않음 */
.brand-symbol-a,
.brand-wordmark {
  display: none !important;
}

/* 푸터 전용 밝은 조합 */
.site-footer .logo-brand-a {
  color: #fffaf2;
}

.site-footer .brand-symbol-mijeon-a .a-person,
.site-footer .brand-symbol-mijeon-a .a-m-left {
  fill: #cda17b;
  stroke: #cda17b;
}

.site-footer .brand-symbol-mijeon-a .a-m-right {
  stroke: #aab99b;
}

.site-footer .brand-symbol-mijeon-a .a-leaf-back {
  fill: #aab99b;
}

.site-footer .brand-symbol-mijeon-a .a-leaf-front {
  fill: #c39a78;
}

.site-footer .brand-wordmark-a strong {
  color: #fffaf2;
}

.site-footer .brand-wordmark-a small {
  color: rgba(255, 250, 242, 0.74);
}

@media (max-width: 720px) {
  .logo-brand-a {
    gap: 8px;
  }

  .brand-symbol-mijeon-a {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .brand-wordmark-a strong {
    font-size: 17px;
    letter-spacing: 0.13em;
  }

  .brand-wordmark-a small {
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .brand-symbol-mijeon-a {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .brand-wordmark-a strong {
    font-size: 16px;
  }
}


/* =========================================================
   MIJEON v13 — 푸터 A안 로고 렌더링 보정
   ========================================================= */

.site-footer .footer-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  width: auto !important;
  min-width: max-content;
  margin-bottom: 22px;
  padding: 0;
  background: transparent;
}

/* 사람을 나타내는 점 */
.site-footer .footer-brand .a-person {
  fill: #cda17b !important;
  stroke: none !important;
}

/* M을 이루는 왼쪽·오른쪽 선 */
.site-footer .footer-brand .a-m-left {
  fill: none !important;
  stroke: #cda17b !important;
  stroke-width: 5.5 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.site-footer .footer-brand .a-m-right {
  fill: none !important;
  stroke: #aab99b !important;
  stroke-width: 5.5 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* 치유를 나타내는 잎사귀 */
.site-footer .footer-brand .a-leaf-back {
  fill: #aab99b !important;
  stroke: none !important;
}

.site-footer .footer-brand .a-leaf-front {
  fill: #c39a78 !important;
  stroke: none !important;
}

/* 잎맥 */
.site-footer .footer-brand .a-leaf-vein-back,
.site-footer .footer-brand .a-leaf-vein-front {
  fill: none !important;
  stroke: #fffaf2 !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
}

/* 푸터 워드마크 */
.site-footer .footer-brand .brand-wordmark-a {
  display: grid !important;
  gap: 4px;
  min-width: 0;
}

.site-footer .footer-brand .brand-wordmark-a strong {
  color: #fffaf2 !important;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1;
  white-space: nowrap;
}

.site-footer .footer-brand .brand-wordmark-a small {
  color: rgba(255, 250, 242, 0.82) !important;
  font-size: 9.5px;
  line-height: 1.3;
  white-space: nowrap;
}

/* 기존의 푸터 이미지 반전 규칙이 영향을 주지 않도록 차단 */
.site-footer .footer-brand svg {
  filter: none !important;
  opacity: 1 !important;
}

@media (max-width: 720px) {
  .site-footer .footer-brand {
    gap: 9px;
    margin-bottom: 18px;
  }

  .site-footer .footer-brand .brand-symbol-mijeon-a {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .site-footer .footer-brand .brand-wordmark-a strong {
    font-size: 17px;
    letter-spacing: 0.13em;
  }

  .site-footer .footer-brand .brand-wordmark-a small {
    font-size: 8px;
  }
}


/* =========================================================
   MIJEON v14 — 통합 점검 및 푸터 로고 최종 정리
   ========================================================= */

/* 고정 헤더에 섹션 제목이 가려지지 않게 처리 */
#about,
#dental,
#oriental,
#equipment,
#maintenance,
#portfolio,
#contact {
  scroll-margin-top: 104px;
}

/* 푸터에서는 최초 A안에 가까운 세로형 단색 조합 사용 */
.site-footer .footer-brand {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: max-content !important;
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  text-align: center;
}

.site-footer .footer-brand .brand-symbol-mijeon-a {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
}

/* 어두운 푸터에서는 한 가지 아이보리 계열로 통일 */
.site-footer .footer-brand .a-person {
  fill: #f4eee5 !important;
  stroke: none !important;
}

.site-footer .footer-brand .a-m-left,
.site-footer .footer-brand .a-m-right {
  fill: none !important;
  stroke: #f4eee5 !important;
  stroke-width: 5.3 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.site-footer .footer-brand .a-leaf-back,
.site-footer .footer-brand .a-leaf-front {
  fill: #f4eee5 !important;
  stroke: none !important;
}

.site-footer .footer-brand .a-leaf-vein-back,
.site-footer .footer-brand .a-leaf-vein-front {
  fill: none !important;
  stroke: #252a27 !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
}

.site-footer .footer-brand .brand-wordmark-a {
  display: grid !important;
  justify-items: center;
  gap: 5px;
}

.site-footer .footer-brand .brand-wordmark-a strong {
  color: #fffaf2 !important;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
}

.site-footer .footer-brand .brand-wordmark-a small {
  color: rgba(255, 250, 242, 0.72) !important;
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  white-space: nowrap;
}

/* 프로젝트가 JS 실행 전에도 자연스럽게 보이도록 함 */
.mj-project-track:empty {
  min-height: 360px;
}

/* 긴 한국어 설명은 단어 단위로 줄바꿈 */
.home-page p,
.home-page li,
.project-page p,
.project-page li {
  word-break: keep-all;
  overflow-wrap: normal;
}

/* 이메일과 긴 영문 기술명만 예외적으로 줄바꿈 */
.site-footer p,
.site-footer a,
.mj-technical-copy li,
.mj-project-info small {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  #about,
  #dental,
  #oriental,
  #equipment,
  #maintenance,
  #portfolio,
  #contact {
    scroll-margin-top: 88px;
  }

  .site-footer .footer-brand {
    gap: 6px;
    margin-bottom: 20px;
  }

  .site-footer .footer-brand .brand-symbol-mijeon-a {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .site-footer .footer-brand .brand-wordmark-a strong {
    font-size: 19px;
  }

  .site-footer .footer-brand .brand-wordmark-a small {
    font-size: 8.5px;
  }
}


/* =========================================================
   MIJEON v15 — 상세 페이지 문의·푸터 메뉴 통일
   ========================================================= */

.project-page .contact-actions {
  display: grid;
  gap: 12px;
  min-width: 230px;
}

.project-page .contact-actions .btn {
  width: 100%;
  min-width: 0;
}

.project-page .site-footer .footer-grid > div:nth-child(2) {
  display: grid;
  align-content: start;
  gap: 8px;
}

.project-page .site-footer .footer-grid > div:nth-child(2) a {
  display: block;
  width: fit-content;
}

@media (max-width: 720px) {
  .project-page .contact-actions {
    width: 100%;
    min-width: 0;
  }

  .project-page .mobile-fixed-contact {
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================================================
   MIJEON v18 — 회사소개·실적 및 프로젝트 클릭 개선
   ========================================================= */

.mj-about {
  background: var(--mj-warm-white);
}

.mj-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.9fr);
  gap: 86px;
  align-items: center;
}

.mj-about-copy {
  min-width: 0;
}

.mj-about-copy h2 {
  margin: 16px 0 26px;
  font-size: clamp(36px, 3.5vw, 52px);
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.mj-about-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 0 14px;
  color: var(--mj-muted);
  font-size: 16px;
  line-height: 1.78;
  word-break: keep-all;
}

.mj-about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mj-about-stat {
  display: grid;
  align-content: end;
  min-height: 176px;
  padding: 26px;
  border: 1px solid var(--mj-line);
  border-radius: 18px;
  background: var(--mj-ivory);
}

.mj-about-stat strong {
  color: var(--mj-deep);
  font-size: clamp(28px, 2.7vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.mj-about-stat span {
  margin-top: 12px;
  color: var(--mj-muted);
  font-size: 15px;
  font-weight: 700;
}

/* 카드 전체를 실제 링크로 인식 */
.mj-project-card > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer !important;
  text-decoration: none;
}

/* 이미지와 View Project 표시는 클릭을 가로채지 않음 */
.mj-project-image img,
.mj-project-image i {
  pointer-events: none;
}

/* 드래그 중에만 grabbing 커서 사용 */
.mj-project-viewport:not(.is-dragging) .mj-project-card > a {
  cursor: pointer !important;
}

.mj-project-viewport.is-dragging .mj-project-card > a {
  cursor: grabbing !important;
}

/* View Project가 클릭 가능한 카드의 일부임을 더 명확하게 표시 */
.mj-project-image i {
  z-index: 2;
  box-shadow: 0 8px 22px rgba(37, 42, 39, 0.18);
}

@media (max-width: 1100px) {
  .mj-about-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }
}

@media (max-width: 720px) {
  .mj-about-grid {
    gap: 36px;
  }

  .mj-about-copy h2 {
    font-size: 31px;
  }

  .mj-about-copy h2 br {
    display: none;
  }

  .mj-about-copy > p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.75;
  }

  .mj-about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .mj-about-stat {
    min-height: 134px;
    padding: 19px;
  }

  .mj-about-stat strong {
    font-size: 27px;
  }

  .mj-about-stat span {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .mj-about-stats {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   MIJEON v19 — 회사소개 실적 영역 제거
   ========================================================= */

.mj-about-grid {
  grid-template-columns: minmax(0, 760px) !important;
  justify-content: start;
  gap: 0 !important;
}

.mj-about-copy {
  max-width: 760px;
}

.mj-about-stats,
.mj-about-stat {
  display: none !important;
}
