/* ============================================================
   NXsweets — modern redesign
   Palette drawn from the brand mark: plum, leaf green, gold, cream
   ============================================================ */

:root {
  --cream: #faf6ec;
  --cream-deep: #f3ecdc;
  --paper: #fffdf7;
  --ink: #2a2040;
  --plum: #46295f;
  --plum-soft: #6b4d8a;
  --green: #1d6b45;
  --green-deep: #14522f;
  --sage: #93b392;
  --gold: #c9963c;
  --gold-soft: #e9d5a8;
  --white: #ffffff;

  --font-display: "Fraunces", "Noto Serif KR", Georgia, serif;
  --font-body: "Outfit", "Noto Sans KR", -apple-system, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(42, 32, 64, 0.07);
  --shadow-md: 0 12px 32px rgba(42, 32, 64, 0.11);
  --shadow-lg: 0 24px 60px rgba(42, 32, 64, 0.16);

  --container: 1180px;
  --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--green); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--plum);
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1.1em; }

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

::selection { background: var(--gold-soft); color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85em 1.7em;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, background 0.25s, color 0.25s;
}

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.98); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(29, 107, 69, 0.32);
}
.btn-primary:hover { background: var(--green-deep); color: var(--white); }

.btn-outline {
  border-color: var(--plum);
  color: var(--plum);
  background: transparent;
}
.btn-outline:hover { background: var(--plum); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--plum);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { background: var(--gold-soft); }

/* ---------- eyebrow / section heading ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.15rem; color: rgba(42, 32, 64, 0.75); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* backdrop-filter on the pseudo-element keeps it from becoming a
   containing block, so the fixed mobile nav can cover the viewport */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 246, 236, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.scrolled {
  border-bottom-color: rgba(42, 32, 64, 0.08);
  box-shadow: 0 6px 24px rgba(42, 32, 64, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img { height: 64px; width: auto; transition: transform 0.3s; }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--plum);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.brand-name small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sage);
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a {
  position: relative;
  padding: 0.55em 0.9em;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  border-radius: var(--r-pill);
  transition: color 0.2s, background 0.2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.25em;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s;
}

.main-nav a:hover { color: var(--plum); }
.main-nav a:hover::after { width: 55%; }

.main-nav a.active { color: var(--green); font-weight: 700; }
.main-nav a.active::after { width: 55%; background: var(--green); }

.main-nav .nav-kr {
  margin-left: 0.5rem;
  background: var(--plum);
  color: var(--white);
  font-weight: 600;
}
.main-nav .nav-kr::after { display: none; }
.main-nav .nav-kr:hover { background: var(--green); color: var(--white); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-soft), rgba(233, 213, 168, 0));
  opacity: 0.75;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(147, 179, 146, 0.4), rgba(147, 179, 146, 0));
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.35em; }
.hero h1 .accent { color: var(--green); font-style: italic; font-weight: 500; }

.hero-sub {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: rgba(42, 32, 64, 0.78);
  max-width: 34ch;
  margin-bottom: 1.8em;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-visual { position: relative; }

.hero-visual .frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.6deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--white);
}

.hero-visual .frame img { width: 100%; height: auto; }

.hero-visual .frame:hover { transform: rotate(0deg) scale(1.015); }

/* images that open in the lightbox */
.zoomable { cursor: zoom-in; }
.hero-visual .frame a, .split .media a.zoomable { display: block; height: 100%; }
.frame .zoom-hint {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  background: rgba(20, 82, 47, 0.85);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  top: -26px;
  left: -26px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
  z-index: 2;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}

/* ---------- benefits marquee ---------- */

.marquee {
  background: var(--green-deep);
  color: var(--cream);
  overflow: hidden;
  padding: 1.05rem 0;
  transform: rotate(-1.2deg) scale(1.02);
  box-shadow: var(--shadow-md);
}

.marquee-track {
  display: flex;
  gap: 3.2rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee span {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.marquee span::after { content: "✦"; color: var(--gold); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.split .media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.split .media img { width: 100%; height: 100%; object-fit: cover; }

.check-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.65rem; }

.check-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  flex: none;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.72em;
  display: inline-grid;
  place-items: center;
  transform: translateY(0.28em);
}

/* ---------- alternating band tints ---------- */

.band-tint { background: var(--cream-deep); }

.band-plum {
  background: linear-gradient(160deg, var(--plum), #33204a 70%);
  color: rgba(255, 255, 255, 0.92);
}

.band-plum h1, .band-plum h2, .band-plum h3 { color: var(--white); }
.band-plum .eyebrow { color: var(--gold-soft); }
.band-plum .section-head p { color: rgba(255, 255, 255, 0.75); }

.band-green {
  background: linear-gradient(150deg, var(--green), var(--green-deep) 75%);
  color: rgba(255, 255, 255, 0.92);
}

.band-green h1, .band-green h2, .band-green h3 { color: var(--white); }
.band-green .eyebrow { color: var(--gold-soft); }

/* ---------- feature cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(42, 32, 64, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--green), var(--green-deep));
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  font-size: 1.4rem;
}

.card h3 { font-size: 1.22rem; margin-bottom: 0.35em; }
.card p { margin: 0; font-size: 0.98rem; color: rgba(42, 32, 64, 0.72); }

/* badge chips (factory claims) */

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  padding: 0.85rem 1.3rem;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  backdrop-filter: blur(4px);
  transition: background 0.25s, transform 0.25s;
}

.chip:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }
.chip svg { flex: none; color: var(--gold-soft); }

/* ---------- process steps ---------- */

.steps { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4.5vw, 4rem);
  align-items: center;
}

.step:nth-child(even) .step-media { order: 2; }

.step-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.step-media img { transition: transform 0.6s; }
.step:hover .step-media img { transform: scale(1.04); }

.step-num {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  margin-bottom: 0.15em;
}

.step h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.step p { color: rgba(42, 32, 64, 0.78); margin: 0; }

.step .flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  align-items: center;
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green-deep);
}

.step .flow b {
  background: var(--white);
  border: 1px solid rgba(29, 107, 69, 0.25);
  padding: 0.3em 0.85em;
  border-radius: var(--r-pill);
  font-weight: 600;
}

/* ---------- stats ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.3rem;
  text-align: center;
}

.stat {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 2.1rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat .lbl { font-weight: 600; color: rgba(42, 32, 64, 0.68); margin-top: 0.4rem; }

/* ---------- gallery + lightbox ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.gallery a {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  display: block;
}

.gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }

.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery a:hover img { transform: scale(1.06); }

.gallery a::after {
  content: "⤢";
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(42, 32, 64, 0.65);
  color: var(--white);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery a:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 18, 40, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }
.lightbox img { max-width: min(1400px, 94vw); max-height: 88vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }

.lightbox-close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--plum);
  font-size: 1.3rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

/* ---------- video ---------- */

.video-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink);
  aspect-ratio: 16 / 9;
}

.video-frame video, .video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.video-card {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ink);
  aspect-ratio: 16 / 9;
}

.video-card video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-soft), transparent 70%);
  opacity: 0.7;
  z-index: -1;
}

.page-hero p.lead {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  color: rgba(42, 32, 64, 0.75);
  max-width: 56ch;
}

/* ---------- quote ---------- */

.pull-quote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-style: italic;
  font-weight: 500;
  color: var(--plum);
  line-height: 1.4;
  padding-left: 1.4em;
  border-left: 4px solid var(--gold);
  margin: 2rem 0;
}

/* ---------- spec table ---------- */

.spec-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }

.spec-table th, .spec-table td {
  text-align: left;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid rgba(42, 32, 64, 0.07);
  font-size: 0.98rem;
}

.spec-table th { font-weight: 600; color: var(--plum); width: 42%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-md);
}

.contact-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px dashed rgba(42, 32, 64, 0.15); }
.contact-row:last-child { border-bottom: none; }

.contact-row .icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--cream-deep);
  display: grid;
  place-items: center;
  color: var(--green);
}

.contact-row b { display: block; color: var(--plum); }
.contact-row span { color: rgba(42, 32, 64, 0.72); }

.form-grid { display: grid; gap: 1.1rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--plum);
  margin-bottom: 0.4rem;
}

.field input, .field textarea {
  width: 100%;
  padding: 0.9rem 1.15rem;
  border: 2px solid rgba(42, 32, 64, 0.12);
  border-radius: var(--r-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 107, 69, 0.12);
}

.form-note { font-size: 0.88rem; color: rgba(42, 32, 64, 0.6); margin: 0; }

.form-success {
  display: none;
  background: rgba(29, 107, 69, 0.1);
  border: 1px solid rgba(29, 107, 69, 0.35);
  color: var(--green-deep);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.2rem;
  font-weight: 600;
}
.form-success.show { display: block; }

/* ---------- terms list ---------- */

.terms-list { counter-reset: term; display: grid; gap: 1.2rem; }

.term {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
}

.term::before {
  counter-increment: term;
  content: counter(term, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  line-height: 1.1;
}

.term h3 { margin-bottom: 0.3em; font-size: 1.2rem; }
.term p { margin: 0; color: rgba(42, 32, 64, 0.75); }

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(201, 150, 60, 0.25), transparent 65%),
    linear-gradient(150deg, var(--green), var(--green-deep) 75%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 52ch; margin-inline: auto; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}

.footer-brand img { height: 64px; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 1rem; }

.footer-brand p { max-width: 34ch; font-size: 0.98rem; }

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover { color: var(--gold-soft); padding-left: 6px; }

.footer-contact p { margin: 0 0 0.55rem; display: flex; gap: 0.6rem; align-items: baseline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.4rem 0 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.reveal.in { opacity: 1; transform: none; }

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

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .step { grid-template-columns: 1fr; }
  .step:nth-child(even) .step-media { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery a:nth-child(1) { grid-column: span 2; grid-row: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--cream);
    flex-direction: column;
    justify-content: safe center;
    gap: 0.4rem;
    padding: calc(var(--header-h) + 1rem) 2rem 2rem;
    overflow-y: auto;
    display: none;
  }

  .main-nav.open { display: flex; animation: navFade 0.25s ease; }

  @keyframes navFade { from { opacity: 0; } to { opacity: 1; } }
  .main-nav a { font-size: 1.35rem; font-family: var(--font-display); }
  .main-nav .nav-kr { margin-left: 0; margin-top: 0.6rem; padding: 0.55em 1.4em; }

  .nav-toggle { display: inline-flex; position: relative; z-index: 210; }
  .nav-toggle.open { background: var(--green); }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery a:nth-child(1) { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-badge { width: 96px; height: 96px; font-size: 0.66rem; top: -18px; left: -10px; }
}
