:root {
  --page-bg: #f7f4ed;
  --surface: #ffffff;
  --surface-soft: #f0ece3;
  --text: #171717;
  --muted: #57534e;
  --line: #d7d0c4;
  --accent: #a82c22;
  --accent-contrast: #ffffff;
  --header-bg: rgba(247, 244, 237, 0.96);
  --shadow: 0 24px 60px rgba(26, 22, 18, 0.1);
  color-scheme: light;
}

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

html {
  font-size: 20px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-weight: 500;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

body,
button,
summary {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
strong,
summary {
  line-height: 1.25;
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 30px;
  font-size: clamp(2.45rem, 5.2vw, 4.8rem);
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(2rem, 4vw, 3.55rem);
}

h3 {
  font-size: clamp(1.28rem, 2.2vw, 1.75rem);
}

em {
  color: var(--accent);
  font-style: normal;
}

a,
summary {
  min-height: 44px;
  cursor: pointer;
}

a {
  color: inherit;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 4px solid #f0b429;
  outline-offset: 4px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: #ffffff;
  color: #111111;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.brand,
.header-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  gap: 12px;
}

.brand > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid currentColor;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
}

.header-link {
  font-size: 0.8rem;
  font-weight: 800;
}

.scene {
  position: relative;
  padding: clamp(80px, 10vw, 150px) 0;
  border-bottom: 1px solid var(--line);
}

.scene-hero {
  padding: clamp(34px, 2.8vw, 46px) 0;
}

.scene-hero h1 {
  margin-bottom: 22px;
}

.shell {
  width: min(calc(100% - 48px), 1180px);
  max-width: 1180px;
  margin-inline: auto;
}

.scene-layout,
.compact-layout {
  display: grid;
  align-items: center;
  gap: clamp(46px, 7vw, 100px);
}

.scene-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.compact-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.scene-copy {
  min-width: 0;
}

.scene-copy > :last-child,
.scene-visual > :last-child,
.section-heading > :last-child {
  margin-bottom: 0;
}

.scene-label {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-lead,
.section-heading > p {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-scope-note {
  max-width: 48ch;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.scene-hero .fact-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 22px;
}

.scene-hero .fact-list li {
  padding-block: 10px;
}

.method-boundary {
  max-width: 76ch;
  margin: -28px 0 42px;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 48px;
  margin-bottom: clamp(44px, 6vw, 78px);
}

.section-heading h2 {
  margin-bottom: 0;
}

.scene-visual {
  margin-bottom: 0;
}

.scene-visual img,
.photo-grid img,
.media-card img {
  background: var(--surface-soft);
  object-fit: cover;
}

.scene-visual figcaption,
.photo-grid figcaption {
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.portrait-visual,
.book-visual {
  width: min(100%, 520px);
  justify-self: center;
}

.portrait-visual img,
.book-visual img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.fact-list,
.credential-grid,
.step-grid,
.method-grid,
.scenario-grid,
.support-grid,
.fit-grid,
.media-grid,
.photo-grid,
.quote-grid {
  padding: 0;
  list-style: none;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 38px 0;
  border-top: 1px solid var(--line);
}

.fact-list li {
  display: grid;
  gap: 3px;
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list span,
.credential-grid dt,
.detail-list span,
.support-grid span,
.course-price span {
  color: var(--muted);
  font-size: 0.78rem;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
  border-top: 2px solid var(--text);
}

.credential-grid div {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credential-grid dt {
  margin-bottom: 8px;
  font-weight: 800;
}

.credential-grid dd {
  margin: 0;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  font-size: 0.82rem;
  font-weight: 900;
  text-underline-offset: 6px;
}

.consult-cta {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.consult-cta:hover {
  background: transparent;
  color: var(--accent);
}

.phone-number {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 8px;
}

.media-card {
  display: grid;
  min-width: 0;
  align-content: start;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
}

.media-card img {
  aspect-ratio: 16 / 9;
}

.media-card strong,
.media-card span {
  padding-inline: 18px;
}

.media-card strong {
  padding-top: 18px;
}

.media-card span {
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 0.76rem;
}

.step-grid,
.method-grid,
.scenario-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 0;
}

.step-grid,
.scenario-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.step-grid li,
.method-grid li,
.scenario-grid li {
  min-width: 0;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-grid li > span,
.method-grid li > span,
.scenario-grid li > span {
  display: block;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 900;
}

.step-grid strong,
.method-grid strong,
.scenario-grid strong {
  display: block;
  margin-bottom: 10px;
}

.step-grid p,
.method-grid p,
.scenario-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.method-principles {
  margin-top: clamp(48px, 7vw, 84px);
}

.method-principles-heading {
  display: grid;
  max-width: 820px;
  margin-bottom: 28px;
  gap: 14px;
}

.method-principles-heading > * {
  margin-bottom: 0;
}

.method-principles-heading h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.method-principles-heading > p:last-child {
  max-width: 68ch;
  color: var(--muted);
}

.method-principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-principle-grid li {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
}

.principle-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin: 0;
  background: var(--surface);
}

.principle-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principle-chart {
  display: block;
  width: 100%;
  height: 150px;
  flex: 0 0 auto;
  background: var(--principle-chart-bg, #171717);
}

.principle-chart path,
.principle-chart rect,
.principle-chart circle {
  vector-effect: non-scaling-stroke;
}

.principle-chart-grid path {
  fill: none;
  stroke: var(--principle-grid, rgba(244, 241, 235, 0.11));
  stroke-width: 1;
}

.principle-baseline {
  fill: none;
  stroke: var(--principle-baseline, #d8b550);
  stroke-linecap: round;
  stroke-width: 3;
}

.principle-candles path {
  fill: none;
  stroke: var(--principle-candle-line, #d9d6d0);
  stroke-width: 1.5;
}

.principle-candles rect {
  stroke: none;
}

.candle-up {
  fill: var(--principle-candle-up, #e7e3dc);
}

.candle-down {
  fill: var(--principle-warning, #b93b35);
}

.regime-guide {
  fill: none;
  stroke: var(--principle-guide, rgba(244, 241, 235, 0.25));
  stroke-width: 1;
}

.regime-line {
  fill: none;
  stroke: var(--principle-candle-up, #e7e3dc);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.regime-line-down {
  stroke: var(--principle-warning, #b93b35);
}

.regime-line-flat {
  stroke: var(--principle-baseline, #d8b550);
}

.regime-point {
  fill: var(--principle-baseline, #d8b550);
  stroke: var(--principle-chart-bg, #171717);
  stroke-width: 2;
}

.regime-point-red {
  fill: var(--principle-warning, #b93b35);
}

.principle-price-line {
  fill: none;
  stroke: var(--principle-candle-up, #e7e3dc);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.distance-marker {
  fill: none;
  stroke: var(--principle-warning, #b93b35);
  stroke-dasharray: 5 4;
  stroke-width: 2;
}

.exit-point-halo {
  fill: var(--principle-warning-halo, rgba(185, 59, 53, 0.2));
  stroke: var(--principle-warning-ring, rgba(185, 59, 53, 0.52));
  stroke-width: 1;
}

.exit-point {
  fill: var(--principle-warning, #b93b35);
}

.principle-copy {
  display: flex;
  padding: clamp(24px, 3vw, 34px);
  flex: 1 1 auto;
  flex-direction: column;
}

.principle-copy > span {
  display: block;
  margin-bottom: 18px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.principle-copy h4 {
  margin-bottom: 12px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.principle-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.photo-grid figure {
  margin-bottom: 0;
}

.photo-grid img {
  aspect-ratio: 4 / 3;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.quote-grid blockquote {
  margin-bottom: 0;
  padding: 28px;
  border-top: 3px solid var(--accent);
  background: var(--surface);
}

.quote-grid strong {
  display: block;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.quote-grid p,
.quote-grid cite {
  color: var(--muted);
  font-size: 0.8rem;
}

.mid-consult {
  display: flex;
  justify-content: center;
}

.signal-panel,
.comparison-card,
.consult-card {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.signal-panel > p {
  color: var(--muted);
  font-size: 0.8rem;
}

.signal-panel > strong {
  display: block;
  margin-bottom: 28px;
  font-size: 1.2rem;
}

.signal-panel ol,
.market-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin-bottom: 0;
  background: var(--line);
  list-style: none;
}

.signal-panel li,
.market-flow li {
  padding: 18px 12px;
  background: var(--surface-soft);
  font-weight: 800;
  text-align: center;
}

.market-flow span {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
}

.detail-list,
.check-list,
.final-links {
  padding: 0;
  list-style: none;
}

.detail-list li,
.check-list li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.hts-visual img,
.hts-annotated img {
  aspect-ratio: 2560 / 1318;
  object-fit: cover;
}

.hts-annotated figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.crop-ai {
  overflow: hidden;
}

.crop-ai img {
  width: 150%;
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left center;
}

.support-photos img {
  aspect-ratio: 16 / 9;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 0;
  background: var(--line);
}

.support-grid li {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
}

.course-price {
  display: grid;
  gap: 4px;
  margin: 32px 0;
}

.course-price strong {
  color: var(--accent);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.curriculum {
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--line);
}

.curriculum summary,
.faq-list summary {
  display: flex;
  align-items: center;
  padding: 18px 0;
  font-weight: 900;
}

.curriculum ol {
  padding: 0 0 20px;
  list-style: none;
}

.curriculum li {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.curriculum span {
  color: var(--muted);
}

.comparison-card > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.comparison-card > p {
  color: var(--muted);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 42px;
}

.fit-grid article {
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.fit-grid li {
  margin-bottom: 12px;
}

.faq-list {
  border-top: 2px solid var(--text);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details > p,
.faq-list details > a {
  max-width: 74ch;
  margin-left: 0;
}

.faq-list details > a {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 800;
}

.final-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
}

.final-links a {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-underline-offset: 5px;
}

.consult-card {
  display: grid;
  gap: 12px;
}

.final-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.final-actions .consult-cta {
  width: 100%;
  margin-top: 0;
}

.final-actions .phone-cta {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.final-actions .phone-cta:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

.consult-card > strong {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.consult-card > span,
.consult-card > small {
  color: var(--muted);
}

.risk-notice {
  grid-column: 1 / -1;
  max-width: 82ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .scene-layout,
  .compact-layout,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .scene-layout,
  .compact-layout {
    gap: 42px;
  }

  .section-heading {
    align-items: start;
    gap: 20px;
  }

  .method-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

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

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

  .principle-chart {
    height: 132px;
  }
}

@media (max-width: 680px) {
  html {
    font-size: 18px;
  }

  .site-header {
    min-height: 60px;
    padding-inline: 16px;
  }

  .brand > span,
  .header-link {
    display: none;
  }

  .shell {
    width: min(calc(100% - 32px), 1180px);
  }

  .scene {
    padding: 72px 0;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .scene-hero {
    padding: 28px 0 56px;
  }

  .scene-hero h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .scene-hero .fact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-boundary {
    margin-top: -14px;
    margin-bottom: 32px;
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .fact-list,
  .credential-grid,
  .step-grid,
  .scenario-grid,
  .method-grid,
  .photo-grid,
  .fit-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .media-card strong,
  .media-card span {
    padding-inline: 16px;
  }

  .signal-panel ol,
  .market-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crop-ai img {
    width: 180%;
  }

  .curriculum li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .comparison-card > div,
  .site-footer .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .consult-cta {
    width: 100%;
    flex-direction: column;
  }
}

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