:root {
  color-scheme: light dark;
  --page: #f3f6f1;
  --surface: #fbfcf8;
  --surface-strong: #e6ece4;
  --ink: #111713;
  --muted: #56655d;
  --line: #cdd7d0;
  --accent: #1f4d39;
  --accent-strong: #143426;
  --accent-soft: #dbe8df;
  --shadow: 0 24px 70px rgba(20, 52, 38, 0.14);
  --radius-card: 8px;
  --radius-button: 999px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101713;
    --surface: #151f19;
    --surface-strong: #1c2a22;
    --ink: #edf4ee;
    --muted: #a9b7ad;
    --line: #314339;
    --accent: #82c69e;
    --accent-strong: #b7e2c8;
    --accent-soft: #1f3529;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(31, 77, 57, 0.08), transparent 540px),
    var(--page);
  color: var(--ink);
  font-family:
    Pretendard, SUIT, "Apple SD Gothic Neo", "Noto Sans KR", system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(31, 77, 57, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 77, 57, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(100% - 32px, 1280px);
  height: var(--header-height);
  margin: 0 auto;
  color: var(--ink);
  background: rgba(243, 246, 241, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(16, 23, 19, 0.78);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #f3f6f1;
  background: var(--accent-strong);
}

@media (prefers-color-scheme: dark) {
  .brand-mark {
    color: #101713;
    background: var(--accent-strong);
  }
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  min-width: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav-links a,
.site-footer a,
.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--accent);
}

.header-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-button);
  color: #f3f6f1;
  background: var(--accent-strong);
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.header-cta:hover {
  background: var(--accent);
}

.header-cta:active,
.button:active,
.plan-tab:active {
  transform: translateY(1px);
}

.section-shell {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 48px;
  min-height: calc(86dvh - var(--header-height));
  padding: 48px 0 34px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 22px;
  font-size: 4.75rem;
  line-height: 1.03;
  font-weight: 850;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 830;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 820;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-sub {
  max-width: 520px;
  margin-bottom: 30px;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button-primary {
  color: #f3f6f1;
  background: var(--accent-strong);
}

.button-primary:hover {
  background: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .button-primary {
    color: #101713;
    background: var(--accent-strong);
  }

  .button-primary:hover {
    color: #101713;
    background: var(--accent);
  }
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(251, 252, 248, 0.52);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

@media (prefers-color-scheme: dark) {
  .button-secondary {
    background: rgba(21, 31, 25, 0.7);
  }

  .button-secondary:hover {
    color: var(--accent-strong);
  }
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(280px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(243, 246, 241, 0.48);
  border-radius: var(--radius-card);
  color: #f3f6f1;
  background: rgba(17, 23, 19, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note span {
  margin-top: 6px;
  color: rgba(243, 246, 241, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100% - 32px, 1280px);
  margin: 0 auto 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--line);
}

.proof-band div {
  padding: 26px;
  background: var(--surface);
}

.proof-band span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 850;
}

.proof-band strong {
  font-size: 1.02rem;
  line-height: 1.45;
}

.lifestyle-section,
.plan-section,
.process-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 38px;
}

.section-heading p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.04rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: minmax(190px, auto);
  gap: 14px;
}

.bento-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.bento-tile p {
  margin-bottom: 0;
}

.bento-large {
  grid-row: span 2;
}

.bento-large img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.bento-large div,
.bento-text {
  padding: 26px;
}

.bento-accent {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 26px;
  color: #f3f6f1;
  background:
    linear-gradient(135deg, rgba(20, 52, 38, 0.98), rgba(31, 77, 57, 0.78)),
    var(--accent-strong);
}

.bento-accent span {
  margin-bottom: 12px;
  color: rgba(243, 246, 241, 0.74);
  font-size: 0.92rem;
}

.bento-accent strong {
  font-size: 1.65rem;
  line-height: 1.12;
}

.bento-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.image-story {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  align-items: stretch;
  gap: 42px;
  width: min(100% - 32px, 1400px);
  margin: 54px auto 96px;
  padding: 0 0 0 60px;
  background: var(--surface-strong);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.image-story-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.image-story-copy {
  align-self: center;
  max-width: 420px;
  padding: 58px 44px 58px 0;
}

.text-link {
  display: inline-flex;
  margin-top: 6px;
  color: var(--accent-strong);
  font-weight: 850;
}

.plan-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
}

.plan-copy p {
  max-width: 580px;
}

.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 18px;
}

.plan-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.plan-tab.is-active,
.plan-tab:hover {
  color: #f3f6f1;
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

@media (prefers-color-scheme: dark) {
  .plan-tab.is-active,
  .plan-tab:hover {
    color: #101713;
    border-color: var(--accent-strong);
    background: var(--accent-strong);
  }
}

.plan-panel {
  min-height: 152px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.plan-panel p {
  margin-bottom: 0;
}

.plan-visual {
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.plan-visual img {
  width: 100%;
  aspect-ratio: 1513 / 1039;
  object-fit: cover;
}

.gallery-section {
  padding: 88px 0;
  background: var(--surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  grid-auto-rows: 280px;
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}

.gallery-tall {
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

.process-list {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
}

.process-item {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.process-item:nth-child(2) {
  background: var(--accent-soft);
}

.process-item p {
  margin-bottom: 0;
}

.consult-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: 52px;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 86px 0 96px;
}

.consult-copy {
  align-self: start;
  position: sticky;
  top: 104px;
}

.consult-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 20px;
}

.consult-form label {
  display: grid;
  gap: 8px;
}

.consult-form label span {
  font-weight: 820;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--page);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.consult-form textarea {
  resize: vertical;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 77, 57, 0.16);
}

.consult-form small {
  color: var(--muted);
  line-height: 1.45;
}

.form-status {
  min-height: 28px;
  margin: 18px 0 16px;
  color: var(--accent-strong);
  font-weight: 750;
}

.form-status.is-error {
  color: #a0352b;
}

.form-button {
  width: 100%;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.reveal {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 700ms ease,
      transform 700ms ease;
  }

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

  .hero-media img {
    transform: scale(1.012);
    animation: heroSettle 1300ms ease forwards;
  }

  @keyframes heroSettle {
    to {
      transform: scale(1);
    }
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .hero-note {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 1040px) {
  h1 {
    font-size: 3.65rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding-top: 36px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .bento-grid,
  .plan-section,
  .consult-section {
    grid-template-columns: 1fr;
  }

  .image-story {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .image-story-copy {
    max-width: 680px;
    padding: 0 30px 34px;
  }

  .image-story-media img {
    min-height: 420px;
  }

  .consult-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: min(100% - 24px, 1280px);
    height: 66px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .section-shell,
  .proof-band,
  .image-story,
  .consult-section,
  .site-footer {
    width: min(100% - 24px, 1280px);
  }

  h1 {
    font-size: 2.85rem;
    line-height: 1.07;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
  }

  .hero-note {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: min(280px, calc(100% - 24px));
    padding: 14px;
    border-radius: var(--radius-card);
    background: var(--accent-strong);
  }

  .proof-band,
  .process-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .proof-band {
    margin-bottom: 58px;
  }

  .lifestyle-section,
  .plan-section,
  .process-section {
    padding: 54px 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-row: auto;
  }

  .bento-large img,
  .bento-image img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .image-story {
    margin: 26px auto 58px;
  }

  .image-story-media img {
    min-height: 300px;
  }

  .gallery-section {
    padding: 60px 0;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .gallery-grid img,
  .gallery-tall,
  .gallery-wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .consult-section {
    padding: 58px 0 68px;
  }

  .consult-form {
    padding: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.35rem;
  }

  .brand span:last-child {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .button {
    padding-inline: 18px;
  }
}
