:root {
  --ink: #211f1c;
  --ink-soft: #4a463f;
  --paper: #faf8f4;
  --paper-alt: #f1ede4;
  --line: #e4ddcf;
  --accent: #2f8f3a;
  --accent-dark: #24702c;
  --accent-olive: #8a9600;
  --accent-bright: #b5c400;
  --on-dark: #d7e37e;
  --white: #ffffff;
  --header-h: 76px;
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
img { max-width: 100%; display: block; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent-olive);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 300;
  margin-bottom: 48px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 200;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: flex;
  flex-direction: column;
  width: fit-content;
  gap: 2px;
  line-height: 1;
}

.logo-neo,
.logo-marble {
  font-family: 'Arial', 'Noto Sans KR', sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.logo-neo {
  font-size: 32px;
  -webkit-text-stroke: 0.014em var(--paper);
  display: flex;
  justify-content: space-between;
  color: var(--accent-bright);
}

.logo-marble {
  color: var(--accent);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}

.main-nav a.nav-two-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  text-align: center;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s var(--ease);
}

.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-cur { color: var(--ink); }
.lang-sep { color: var(--line); }
.lang-other { color: var(--ink-soft); opacity: .55; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}

.hamburger span {
  height: 2px;
  background: var(--ink);
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

.slides {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease);
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.marble-white {
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(255,255,255,0.9), transparent 55%),
    radial-gradient(80% 60% at 80% 75%, rgba(210,200,185,0.55), transparent 60%),
    linear-gradient(135deg, #f4f1ea 0%, #e9e3d6 45%, #d9d0bd 100%);
}

.marble-dark {
  background:
    radial-gradient(110% 80% at 80% 15%, rgba(120,105,85,0.5), transparent 55%),
    radial-gradient(70% 60% at 15% 80%, rgba(80,72,60,0.6), transparent 60%),
    linear-gradient(135deg, #2b2823 0%, #201d19 55%, #14120f 100%);
  color: var(--paper);
}

.marble-beige {
  background:
    radial-gradient(120% 90% at 85% 20%, rgba(255,250,240,0.8), transparent 55%),
    radial-gradient(80% 70% at 10% 80%, rgba(196,168,130,0.45), transparent 60%),
    linear-gradient(135deg, #ecdfc7 0%, #ddc9a3 55%, #c9ac7c 100%);
}

.slide-content {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.slide .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent-olive);
  margin-bottom: 20px;
}

.slide.marble-dark .eyebrow { color: var(--on-dark); }

.slide h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 300;
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 24px;
}

.slide-desc {
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 36px;
  color: var(--ink-soft);
}

.slide.marble-dark .slide-desc { color: #cfc9bd; }

.btn {
  display: inline-block;
  padding: 15px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 10px 16px;
}

.slide-nav.prev { left: 8px; }
.slide-nav.next { right: 8px; }

.slide-counter {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.counter-line {
  display: block;
  width: 64px;
  height: 1px;
  background: rgba(33,31,28,0.2);
  overflow: hidden;
}

.slide.marble-dark ~ .slide-counter .counter-line,
.hero:has(.slide.marble-dark.is-active) .counter-line {
  background: rgba(255,255,255,0.25);
}

.counter-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .5s var(--ease);
}

.counter-num {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.hero:has(.slide.marble-dark.is-active) .counter-num {
  color: var(--paper);
}

.counter-num #slideTotal { opacity: .5; }

/* ---------- Features ---------- */
.features {
  padding: 120px 0 100px;
}

.feature-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
}

.feature-list {
  border-top: 1px solid var(--line);
}

.feature-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding .2s var(--ease);
}

.feature-item:hover { padding-left: 10px; }

.feature-num {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--ink-soft);
  opacity: .5;
}

.feature-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
}

.feature-item.is-active .feature-num,
.feature-item.is-active .feature-name {
  color: var(--accent);
  opacity: 1;
}

.feature-panel {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: center;
}

.feature-visual {
  aspect-ratio: 4/5;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  transition: background 0.4s var(--ease);
}

.feature-text p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
}

/* ---------- Statement ---------- */
.statement {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
}

.statement .section-eyebrow { color: var(--on-dark); }

.statement-inner { max-width: 860px; }

.statement-title {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 300;
  line-height: 1.45;
  margin-bottom: 28px;
}

.statement-desc {
  font-size: 16px;
  color: #cfc9bd;
  max-width: 680px;
  margin-bottom: 32px;
}

.link-more {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--on-dark);
  padding-bottom: 4px;
  color: var(--on-dark);
}

/* ---------- Cards ---------- */
.cards {
  padding: 120px 0;
}

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

.card {
  display: block;
}

.card-media {
  aspect-ratio: 4/3;
  border-radius: 4px;
  margin-bottom: 20px;
  transition: transform .35s var(--ease);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.card:hover .card-media { transform: scale(1.02); }

.card-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0 8px;
}

.card p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Gallery strip ---------- */
.gallery-strip {
  padding: 0 0 120px;
  scroll-margin-top: calc(var(--header-h) + 72px);
}

.gallery-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: -28px 0 40px;
  max-width: 640px;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ---------- CTA / Contact ---------- */
.cta {
  background: var(--paper-alt);
  padding: 120px 0;
}

.cta-inner {
  max-width: 760px;
}

.cta h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 300;
  margin-bottom: 18px;
}

.cta p {
  color: var(--ink-soft);
  margin-bottom: 40px;
  font-size: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form .btn {
  align-self: flex-start;
  border: none;
}

.form-note {
  font-size: 12px;
  color: var(--ink-soft);
  opacity: .7;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfc9bd;
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo .logo-marble {
  font-size: 22px;
}

.footer-logo .logo-neo {
  font-size: 44px;
  -webkit-text-stroke-color: var(--ink);
}

.footer-co {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #9a9588;
  margin-bottom: 6px;
}

.footer-brand p { font-size: 13px; color: #9a9588; }

.footer-info p {
  font-size: 13px;
  margin-bottom: 6px;
  color: #cfc9bd;
}

.footer-legal {
  font-size: 12px;
  color: #8a8578;
  text-align: right;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--paper);
    padding: 20px 32px 30px;
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }

  /* Primary menu items (Neomarble Solid Surfaces, Neomarble Features,
     Other Products, Gallery, Contact) vs. the brand/sub-category links
     nested under them (TS/SN/PT Brand, Acrylic/Stainless Sinks, Adhesive).
     Bigger + bolder for primary, smaller + lighter + indented for sub,
     so the two levels read as clearly different in the open mobile menu. */
  .main-nav.is-open > a,
  .main-nav.is-open > .nav-item > a {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .main-nav.is-open .dropdown a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    opacity: .6;
  }

  .feature-layout { grid-template-columns: 1fr; }
  .feature-panel {
    grid-template-columns: 160px 1fr;
    padding: 22px 4px 30px;
    border-bottom: 1px solid var(--line);
  }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-legal { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .slide-nav span { display: none; }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-visual { aspect-ratio: 16/9; }
}



[hidden] { display: none !important; }

/* Prev / Next arrows must stay readable on the dark slide */
.hero:has(.slide.marble-dark.is-active) .slide-nav { color: var(--paper); }

/* Color catalogue download popup */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(20, 19, 17, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border-radius: 6px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 60px rgba(20, 19, 17, 0.3);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-soft);
}

.modal-close:hover { color: var(--accent); }

.modal-title {
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.download-list { display: grid; gap: 10px; }

.download-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name icon" "meta icon";
  align-items: center;
  column-gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.download-list a:hover { border-color: var(--accent); transform: translateY(-1px); }

.dl-name { grid-area: name; font-family: 'Poppins', sans-serif; font-size: 17px; }
.dl-meta { grid-area: meta; font-size: 12px; color: var(--ink-soft); opacity: .8; }
.dl-icon { grid-area: icon; font-size: 20px; color: var(--accent); }

/* Horizontal dropdowns under NEOMARBLE SOLID SURFACES (TS / SN / PT) and OTHER PRODUCTS */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  display: flex;
  flex-direction: row;
  margin-top: 14px;
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(33, 31, 28, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

/* keeps the menu open while the pointer crosses the gap */
.dropdown::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -16px;
  height: 16px;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  text-align: center;
  white-space: nowrap;
}

.dropdown a::after { display: none; }
.dropdown a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .nav-item { flex-direction: column; align-items: center; }

  .dropdown {
    position: static;
    transform: none;
    margin: 6px 0 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    border: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
  }

  .dropdown::before { display: none; }
  .dropdown a { padding: 6px 12px; font-size: 13px; opacity: .75; }
}

/* Recycling process diagram (Eco-Friendly & Recyclable) */
.feature-diagram {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.diagram-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 24px;
}

.feature-diagram svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  font-family: 'Inter', sans-serif;
}

.rc-box { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.rc-reactor { fill: var(--paper-alt); stroke: var(--accent-olive); stroke-width: 2; }
.rc-chip { fill: var(--white); stroke: var(--line); stroke-width: 1; }
.rc-out { stroke-width: 2; }
.rc-out-green { fill: #eaf5ec; stroke: var(--accent); }
.rc-out-olive { fill: #f4f6d8; stroke: var(--accent-olive); }
.rc-t { font-size: 15px; font-weight: 600; fill: var(--ink); }
.rc-s { font-size: 12.5px; fill: var(--ink-soft); }
.rc-strong { font-weight: 500; fill: var(--ink); }
.rc-out-t { font-size: 16px; }
.rc-arrow { stroke: var(--ink-soft); stroke-width: 2; fill: none; }
.rc-arrow-head { fill: var(--ink-soft); }

/* ---------- MADE IN KOREA ---------- */
.made-in-korea {
  display: inline-block;
  padding: 6px 14px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: var(--accent);
  background: rgba(47, 143, 58, 0.06);
}

.footer-made {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 28px;
  margin-bottom: 44px;
}

.footer-made-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-made-text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(8.5px, 1.4vw, 15.5px);
  font-weight: 700;
  letter-spacing: 0.1232em;
  word-spacing: 0.208em;
  color: #f2c14e;
}

.footer-made-sub {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8a8578;
}

@media (max-width: 560px) {
  .made-in-korea { padding: 5px 10px; font-size: 9.5px; letter-spacing: 0.1em; }
}
/* header: MADE IN KOREA badge sits 61px from CONTACT (half of the previous gap) */
.header-inner { justify-content: flex-start; }
.main-nav { margin-left: auto; }
.header-actions { margin-left: 61px; }

@media (max-width: 1100px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 13px; letter-spacing: 0.02em; }
  .header-actions { margin-left: 22px; }
  .made-in-korea { padding: 5px 11px; font-size: 10.5px; letter-spacing: 0.1em; }
}

@media (max-width: 900px) {
  .header-actions { margin-left: auto; }
}
/* Project Gallery card: two photos cross-fade */
.card-media-fade { position: relative; }

.card-media-fade span {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
}

.card-media-fade .fade-a { animation: cardFadeA 9s ease-in-out infinite; }
.card-media-fade .fade-b { animation: cardFadeB 9s ease-in-out infinite; }

@keyframes cardFadeA { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cardFadeB { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .card-media-fade .fade-a { animation: none; opacity: 1; }
  .card-media-fade .fade-b { animation: none; }
}

/* footer e-mail addresses (two lines, aligned under each other) */
.footer-mail { display: flex; gap: 6px; }
.footer-mail span:first-child { white-space: nowrap; }

/* contact form: hidden spam trap + sending status */
.form-honey {
  position: absolute !important;
  left: -9999px;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.contact-form .btn:disabled { opacity: .6; cursor: wait; }

.form-status {
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.5;
}

.form-status.is-ok { background: #eaf5ec; color: #24702c; border: 1px solid #b9dcbf; }
.form-status.is-error { background: #fbeeee; color: #9a2a2a; border: 1px solid #e8c3c3; }