:root {
  --color-ink: #14231c;
  --color-ink-soft: #3a4a42;
  --color-muted: #5f6f66;
  --color-paper: #f3efe6;
  --color-paper-2: #e8e2d4;
  --color-surface: #faf8f3;
  --color-accent: #2f5d4a;
  --color-accent-deep: #1b3a2f;
  --color-accent-soft: #d7e4dc;
  --color-line: rgba(20, 35, 28, 0.14);
  --color-danger: #8a3b2d;
  --color-success: #1f5c3a;
  --font-display: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;
  --radius: 4px;
  --shadow: 0 18px 40px rgba(20, 35, 28, 0.08);
  --header-h: 4.25rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47, 93, 74, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 226, 212, 0.9), transparent 50%),
    linear-gradient(180deg, var(--color-paper) 0%, var(--color-surface) 40%, var(--color-paper-2) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: var(--color-accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.main { min-height: 60vh; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-accent-deep);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.site-header.is-open .site-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .site-header__toggle-bar:nth-child(2) { opacity: 0; }
.site-header.is-open .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent-deep);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  background: var(--color-accent-deep);
  color: var(--color-paper) !important;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-nav__cta:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

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

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

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

.btn--ghost {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-ink);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-deep);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero / sections */
.hero {
  position: relative;
  min-height: min(88vh, 46rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 35, 28, 0.82) 0%, rgba(20, 35, 28, 0.55) 45%, rgba(20, 35, 28, 0.25) 100%),
    linear-gradient(0deg, rgba(20, 35, 28, 0.45), transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
  color: var(--color-paper);
  animation: rise 0.8s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  line-height: 1.05;
}

.hero__text {
  max-width: 34rem;
  font-size: 1.1rem;
  color: rgba(242, 237, 228, 0.92);
}

.hero .btn--primary {
  background: var(--color-paper);
  color: var(--color-accent-deep);
}

.hero .btn--ghost {
  border-color: rgba(242, 237, 228, 0.45);
  color: var(--color-paper);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 40rem;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
}

.page-hero--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.page-hero__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fade-in 1s var(--ease) both;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.page-hero--compact {
  padding-bottom: 1rem;
}

.section {
  padding: 3.5rem 0;
}

.section--tint {
  background: rgba(215, 228, 220, 0.35);
  border-block: 1px solid var(--color-line);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* Offer preview */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.offer-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease);
}

.offer-item:hover { transform: translateY(-4px); }

.offer-item__media {
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.offer-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.offer-item:hover .offer-item__media img {
  transform: scale(1.04);
}

.offer-item h3 {
  color: var(--color-accent-deep);
  text-decoration: none;
}

.offer-item p {
  color: var(--color-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* Evidence / quotes */
.quote-stack {
  display: grid;
  gap: 1.5rem;
}

.quote {
  border-left: 3px solid var(--color-accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
}

.quote p {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
}

.quote footer {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2.5rem;
}

.story-block__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.story-block__media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
}

/* Lists / steps */
.check-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--color-accent);
}

.plain-list {
  color: var(--color-muted);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.steps__num {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent-deep);
  color: var(--color-paper);
  font-weight: 700;
  font-size: 0.9rem;
}

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

.facts h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.cta-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--color-line);
  background: rgba(250, 248, 243, 0.8);
  border-radius: var(--radius);
}

.cta-panel p {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-muted);
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.rate-table th {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}

.rate-note {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.factor-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.factor-list dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.factor-list dd {
  margin: 0.25rem 0 0;
  color: var(--color-muted);
}

/* Blog */
.post-list {
  display: grid;
  gap: 2rem;
}

.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: transform 0.25s var(--ease);
}

.post-card:hover { transform: translateX(4px); }

.post-card__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.post__cover {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.post__cover img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.post__body,
.post__back {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem 2rem;
}

.post__meta {
  color: var(--color-muted);
}

/* Prose */
.prose {
  max-width: 44rem;
}

.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }

.prose a { font-weight: 500; }

/* Forms */
.form {
  max-width: 36rem;
  display: grid;
  gap: 1.1rem;
}

.form__field {
  display: grid;
  gap: 0.35rem;
}

.form__field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  font: inherit;
  color: var(--color-ink);
}

.form__field textarea { min-height: 9rem; resize: vertical; }

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 2px solid var(--color-accent-soft);
  border-color: var(--color-accent);
}

.form__error {
  color: var(--color-danger);
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form__status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.form__status--success {
  background: rgba(31, 92, 58, 0.12);
  color: var(--color-success);
}

.form__status--error {
  background: rgba(138, 59, 45, 0.12);
  color: var(--color-danger);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-aside {
  padding: 1.5rem;
  background: rgba(215, 228, 220, 0.4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.contact-aside h2 {
  font-size: 1.1rem;
}

.contact-aside p {
  margin-bottom: 0.6rem;
  word-break: break-word;
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 2rem;
}

.review {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-line);
}

.review:last-child { border-bottom: 0; }

.review__service {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.review__author {
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* Approach timeline */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--color-accent-soft);
  display: grid;
  gap: 2rem;
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-accent-deep);
  border: 2px solid var(--color-paper);
}

/* Legal */
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.legal th,
.legal td {
  border: 1px solid var(--color-line);
  padding: 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgba(215, 228, 220, 0.45);
}

/* 404 */
.error-page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 6rem 1.25rem;
  text-align: center;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--color-line);
  background: var(--color-accent-deep);
  color: rgba(242, 237, 228, 0.88);
  padding: 3rem 1.25rem 2rem;
}

.site-footer a {
  color: rgba(242, 237, 228, 0.92);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-paper);
}

.site-footer__tag {
  color: rgba(242, 237, 228, 0.7);
  font-size: 0.92rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__nav a { text-decoration: none; }

.site-footer__copy {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(242, 237, 228, 0.15);
  font-size: 0.85rem;
  color: rgba(242, 237, 228, 0.55);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 40rem;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: rise 0.45s var(--ease) both;
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner__inner {
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.cookie-banner__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* Responsive */
@media (max-width: 900px) {
  .page-hero--split,
  .story-block,
  .contact-grid,
  .site-footer__inner,
  .offer-grid,
  .facts,
  .factor-list {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .site-header__toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(243, 239, 230, 0.98);
    border-bottom: 1px solid var(--color-line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .site-header.is-open .site-nav { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .hero { min-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
