:root {
  --ink: #1f2522;
  --muted: #626c67;
  --paper: #fffdf8;
  --warm: #f6efe3;
  --line: #e6ded1;
  --green: #24483d;
  --green-soft: #e9f0eb;
  --red: #8f3f36;
  --gold: #ad7a2f;
  --blue: #35536b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 37, 34, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

img {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar__inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.topbar strong,
.topbar a {
  display: block;
}

.topbar strong {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.topbar div > a {
  color: var(--green);
  font-size: 19px;
  font-weight: 800;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar__button {
  min-height: 40px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--green);
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  background-image: url("./temple-lanterns.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__overlay {
  background: linear-gradient(90deg, rgba(18, 24, 22, 0.78), rgba(18, 24, 22, 0.45) 48%, rgba(18, 24, 22, 0.18));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 58px;
  color: var(--white);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.hero .eyebrow {
  color: #f0c674;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.05;
  font-weight: 900;
}

.hero__lead {
  max-width: 660px;
  margin-bottom: 16px;
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.45;
}

.hero__body {
  max-width: 590px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.hero__actions,
.inline-actions,
.consult__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(143, 63, 54, 0.22);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  border-color: rgba(255, 255, 255, 0.45);
}

.button--ghost {
  background: var(--white);
  color: var(--green);
  border-color: var(--line);
}

.trust-strip {
  width: min(900px, 100%);
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
}

.trust-strip li {
  min-height: 70px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-strip li:last-child {
  border-right: 0;
}

.section {
  padding: 92px 0;
}

.section--soft {
  background: var(--warm);
}

.section--green {
  background: var(--green);
  color: var(--white);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section__heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.section__heading--left {
  margin: 0;
  text-align: left;
}

.section__heading h2,
.purpose-layout h2,
.consult h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
}

.section__heading p,
.purpose-layout > div > p,
.principle-copy p,
.consult p {
  color: var(--muted);
  font-size: 17px;
}

.section--green .section__heading p {
  color: rgba(255, 255, 255, 0.78);
}

.section--green .eyebrow {
  color: #f0c674;
}

.steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
}

.steps li {
  min-height: 230px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(31, 37, 34, 0.06);
}

.steps span {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.4;
}

.steps p,
.completion-card__message,
.temple-list p,
.temple-grid p,
.faq-list p,
.footer p,
.note {
  margin-bottom: 0;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 54px;
  align-items: center;
}

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

.completion-card__header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.completion-card__header p {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.completion-card__header span {
  padding: 6px 10px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.completion-card dl {
  margin: 0 0 22px;
}

.completion-card dl div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #f0e8dc;
}

.completion-card dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.completion-card dd {
  margin: 0;
  font-weight: 900;
}

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

.intent-nav a {
  min-height: 70px;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.purpose-section {
  border-bottom: 1px solid var(--line);
}

.purpose-section--soft {
  background: #faf7f0;
}

.purpose-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: start;
}

.use-cases {
  margin: 28px 0;
  padding: 24px;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}

.use-cases h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.use-cases ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.use-cases li + li {
  margin-top: 8px;
}

.temple-list,
.temple-grid {
  display: grid;
  gap: 14px;
}

.temple-list {
  grid-template-columns: repeat(2, 1fr);
}

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

.temple-list article,
.temple-grid article {
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(31, 37, 34, 0.05);
}

.temple-list h3,
.temple-grid h3 {
  margin: 14px 0 4px;
  font-size: 21px;
}

.status {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.principle-copy {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.principle-copy p + p {
  margin-top: 16px;
}

.consult {
  background: var(--green);
  color: var(--white);
}

.consult__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.consult .eyebrow {
  color: #f0c674;
}

.consult p,
.consult a {
  color: rgba(255, 255, 255, 0.86);
}

.consult__badges {
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.consult__badges li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

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

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

.faq-list summary {
  min-height: 64px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

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

.faq-list p {
  padding: 18px 22px 22px;
}

.footer {
  padding: 42px 0 96px;
  background: #171c1a;
  color: var(--white);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer strong {
  font-size: 20px;
}

.footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer__links {
  margin-top: 10px;
  font-size: 14px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  min-height: 54px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(31, 37, 34, 0.28);
  font-weight: 900;
}

.completion-card__photo {
  margin-top: 20px;
  padding: 26px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed #cfb995;
  border-radius: var(--radius);
  background: #fbf4e8;
}

.completion-card__photo span {
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 900;
}

.completion-card__photo p,
.completion-card__note p {
  margin: 0;
  color: var(--muted);
}

.completion-card__note {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--green-soft);
}

.completion-card__note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
}

.status--available {
  color: var(--green);
  background: var(--green-soft);
}

.status--neutral {
  color: var(--blue);
  background: #e9eef2;
}

.temple-card[role="link"] {
  cursor: pointer;
}

.temple-card[role="link"]:focus-visible {
  outline: 3px solid rgba(173, 122, 47, 0.45);
  outline-offset: 3px;
}

.consult__actions {
  max-width: 320px;
  align-items: flex-start;
  flex-direction: column;
}

.consult__notice {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.contact-page {
  background: var(--warm);
}

.contact-hero {
  padding: 92px 0 72px;
  background: var(--green);
  color: var(--white);
}

.contact-hero__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
}

.contact-hero .eyebrow {
  color: #f0c674;
}

.contact-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.12;
}

.contact-hero p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.phone-panel,
.prep-card,
.inquiry-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.phone-panel {
  padding: 28px;
  color: var(--ink);
}

.phone-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.phone-panel > a:not(.button) {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 31px;
  font-weight: 900;
  line-height: 1.15;
}

.phone-panel p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 15px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: start;
}

.prep-card,
.inquiry-card {
  padding: 30px;
}

.prep-card h2,
.inquiry-card h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.prep-card p,
.inquiry-card > p {
  color: var(--muted);
}

.prep-card ul {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.prep-card li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.prep-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  display: inline-block;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

.prep-card__notice {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--green-soft);
}

.prep-card__notice strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
}

.prep-card__notice p {
  margin: 0;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.form-row--full,
.consent,
.inquiry-form button {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--ink);
  font-weight: 900;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8ccbb;
  border-radius: var(--radius);
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(36, 72, 61, 0.14);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

.consent input {
  margin-top: 5px;
}

.consent a {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.success-panel {
  margin-top: 24px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
}

.success-panel span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #f0c674;
  font-size: 12px;
  font-weight: 900;
}

.success-panel h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.success-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.success-panel .button {
  margin-top: 8px;
}

.comparison-page {
  background: var(--paper);
}

.comparison-main {
  min-height: 100vh;
}

.comparison-hero {
  padding: 72px 0 42px;
  background: var(--green);
  color: var(--white);
}

.comparison-hero .eyebrow {
  color: #f0c674;
}

.comparison-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.12;
}

.comparison-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.comparison-panel {
  min-width: 0;
}

.comparison-label {
  margin-bottom: 14px;
  color: var(--green);
  font-weight: 900;
}

.comparison-caption {
  margin: 16px 0 0;
  color: var(--muted);
}

.privacy-page {
  background: var(--paper);
}

.privacy-main {
  background: var(--paper);
}

.privacy-hero {
  padding: 72px 0 46px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.privacy-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
}

.privacy-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.privacy-content {
  max-width: 900px;
  display: grid;
  gap: 22px;
}

.privacy-content article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.privacy-content h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 32px);
}

.privacy-content p,
.privacy-content li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.privacy-content ul {
  padding-left: 20px;
}

.privacy-content li + li {
  margin-top: 6px;
}

.privacy-contact a {
  color: var(--green);
  font-weight: 900;
}

.back-link--light {
  margin-bottom: 24px;
  border-color: var(--line);
  color: var(--green);
}

.temple-list--single {
  grid-template-columns: 1fr;
}

.temple-card-rich {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.temple-card-rich__media {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(20, 26, 23, 0.08), rgba(20, 26, 23, 0.32)),
    url("./gatbawi-buddha.jpg") center 38% / cover;
}

.temple-card-rich__media .status {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 253, 248, 0.94);
}

.temple-card-rich__body {
  padding: 24px;
}

.temple-card-rich__meta {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.temple-card-rich__meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #b7aa99;
}

.temple-card-rich h3 {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.2;
}

.temple-card-rich p {
  color: var(--muted);
}

.temple-card-rich__tags {
  margin: 12px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.temple-card-rich__tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5efe5;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.temple-card-rich__story {
  margin-bottom: 18px;
}

.temple-card-rich__story p {
  margin: 0;
  line-height: 1.62;
}

.temple-card-rich__story p + p {
  margin-top: 8px;
}

.button--compact {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

.temple-list .temple-card,
.temple-grid .temple-card {
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(31, 37, 34, 0.08);
}

.temple-list .temple-card {
  min-height: 460px;
}

.temple-grid .temple-card {
  min-height: 520px;
}

.temple-card {
  --temple-image: url("./temple-lanterns.jpg");
  --temple-focus: center;
}

.temple-card__media {
  position: relative;
  min-height: 168px;
  background:
    linear-gradient(180deg, rgba(20, 26, 23, 0.04), rgba(20, 26, 23, 0.38)),
    var(--temple-image) var(--temple-focus) / cover;
}

.temple-card__media .status {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 253, 248, 0.94);
}

.temple-card__body {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.temple-card__meta {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.temple-card__meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #b7aa99;
}

.temple-list .temple-card h3,
.temple-grid .temple-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.temple-card__tags {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.temple-card__tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f5efe5;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.temple-list .temple-card__story,
.temple-grid .temple-card__story {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.temple-card__action {
  width: fit-content;
  margin-top: auto;
}

.temple-card--gatbawi {
  --temple-image: url("./gatbawi-buddha.jpg");
  --temple-focus: center 38%;
}

.temple-card--boriam {
  --temple-image: url("./img-boriam.png");
  --temple-focus: center;
}

.temple-card--bomunsa {
  --temple-image: url("./img-bomunsa-real-card.jpg");
  --temple-focus: center 38%;
}

.temple-card--naksansa {
  --temple-image: url("./img-naksansa.jpg");
  --temple-focus: center 32%;
}

.temple-card--doseonsa {
  --temple-image: url("./img-doseonsa.jpg");
  --temple-focus: center 35%;
}

.temple-card--jogyesa {
  --temple-image: url("./img-jogyesa.jpg");
  --temple-focus: center 42%;
}

.temple-card--bongeunsa {
  --temple-image: url("./img-bongeunsa.jpg");
  --temple-focus: center 45%;
}

.temple-card--sudeoksa {
  --temple-image: url("./img-sudeoksa.jpg");
  --temple-focus: center 40%;
}

.temple-card--magoksa {
  --temple-image: url("./img-magoksa.jpg");
  --temple-focus: center;
}

.temple-card--haeinsa {
  --temple-image: url("./img-haeinsa.jpg");
  --temple-focus: center 42%;
}

.temple-card--donghwasa {
  --temple-image: url("./img-donghwasa.jpg");
  --temple-focus: center 42%;
}

.temple-card--jikjisa {
  --temple-image: url("./img-jikjisa.jpg");
  --temple-focus: center 42%;
}

.temple-card--woljeongsa {
  --temple-image: url("./img-woljeongsa.jpg");
  --temple-focus: center 35%;
}

.temple-card--daeheungsa {
  --temple-image: url("./img-daeheungsa.jpg");
  --temple-focus: center 40%;
}

.temple-card--hyangiram {
  --temple-image: url("./img-hyangiram-real.jpg");
  --temple-focus: center 38%;
}

.temple-card--yonggungsa {
  --temple-image: url("./img-yonggungsa-real.jpg");
  --temple-focus: center 35%;
}

.temple-card--tongdosa {
  --temple-image: url("./img-tongdosa-real.jpg");
  --temple-focus: center 44%;
}

.temple-card--beopjusa {
  --temple-image: url("./img-beopjusa-real.jpg");
  --temple-focus: center 42%;
}

.temple-card--hwaeomsa {
  --temple-image: url("./img-hwaeomsa-real-wide-card.jpg");
  --temple-focus: center;
}

.temple-card--songgwangsa {
  --temple-image: url("./img-songgwangsa-real.jpg");
  --temple-focus: center 42%;
}

.detail-page {
  background: var(--paper);
}

.temple-detail {
  background: var(--paper);
}

.profile-header {
  padding: 54px 0 34px;
  background: linear-gradient(180deg, #faf6ed, var(--paper));
  border-bottom: 1px solid var(--line);
}

.profile-header .back-link {
  margin-bottom: 24px;
  border-color: var(--line);
  color: var(--green);
  background: var(--white);
}

.profile-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.74fr);
  gap: 34px;
  align-items: stretch;
}

.profile-header__copy {
  min-width: 0;
  padding: 10px 0;
}

.profile-header__copy h1 {
  margin-bottom: 16px;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1.08;
}

.profile-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.45;
}

.profile-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.profile-facts div {
  min-height: 58px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.profile-facts dd {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.profile-header__visual {
  --temple-image: url("./temple-lanterns.jpg");
  --temple-focus: center;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(31, 37, 34, 0.1);
}

.profile-header__image {
  flex: 1;
  min-height: 360px;
  background: var(--temple-image) var(--temple-focus) / cover;
}

.profile-header__visual p {
  margin: 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

.detail-subnav {
  position: sticky;
  top: 64px;
  z-index: 15;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.detail-subnav__inner {
  min-height: 54px;
  display: flex;
  gap: 18px;
  align-items: center;
  overflow-x: auto;
}

.detail-subnav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.detail-subnav__call {
  margin-left: auto;
  color: var(--green) !important;
  font-size: 17px !important;
}

.detail-body {
  padding: 52px 0 84px;
}

.detail-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-block {
  padding: 0 0 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.detail-block:last-child {
  margin-bottom: 0;
}

.detail-block h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
}

.detail-block p,
.detail-list,
.detail-steps p {
  color: var(--muted);
  font-size: 18px;
}

.detail-feature {
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(31, 37, 34, 0.07);
}

.detail-feature__story {
  max-width: 880px;
  margin-bottom: 26px;
}

.detail-feature__story p {
  margin-bottom: 16px;
  color: var(--ink) !important;
  font-size: clamp(18px, 1.45vw, 21px) !important;
  font-weight: 500;
  line-height: 1.78;
}

.detail-feature__story p:last-child {
  margin-bottom: 0;
}

.detail-feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.detail-feature__grid article {
  min-height: auto;
  padding: 0;
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid #eee3d2;
  border-radius: var(--radius);
}

.story-card__body {
  padding: 22px;
}

.story-card__image {
  min-height: 230px;
  border-bottom: 1px solid #eee3d2;
  background:
    linear-gradient(180deg, rgba(31, 37, 34, 0.02), rgba(31, 37, 34, 0.18)),
    var(--temple-image) var(--temple-focus) / cover;
}

.story-image--history {
  background-position: center center;
}

.story-image--symbol {
  background-position: center 36%;
}

.story-image--bomunsa-view {
  background-image:
    linear-gradient(180deg, rgba(31, 37, 34, 0.02), rgba(31, 37, 34, 0.18)),
    url("./img-bomunsa-real-card.jpg");
  background-position: center 38%;
}

.story-image--bomunsa-history {
  background-image:
    linear-gradient(180deg, rgba(255, 253, 248, 0.02), rgba(36, 72, 61, 0.28)),
    url("./img-bomunsa-seoksil.jpg");
  background-position: center 45%;
}

.story-image--bomunsa-symbol {
  background-image:
    linear-gradient(180deg, rgba(31, 37, 34, 0.02), rgba(31, 37, 34, 0.26)),
    url("./img-bomunsa-maae.jpg");
  background-position: center 34%;
}

.detail-feature__grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.detail-feature__grid h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.35;
}

.detail-feature__grid p,
.detail-feature__grid .detail-list {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.story-card--chart {
  background: #fbf4e8 !important;
}

.story-chart {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.story-chart__label {
  margin-bottom: 7px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.story-chart__label strong {
  color: var(--gold);
}

.story-chart__track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfcf;
}

.story-chart__track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--green);
}

.detail-list--compact {
  padding-left: 18px;
}

.detail-list--compact li + li {
  margin-top: 6px;
}

.detail-split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-muted-group {
  padding: 0;
  border-bottom: 0;
}

.detail-muted-group > details {
  border: 1px solid #eadfce;
  border-radius: var(--radius);
  background: #f8f2e8;
}

.detail-muted-group > details > summary {
  min-height: 72px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--green);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  list-style: none;
}

.detail-muted-group > details > summary::-webkit-details-marker {
  display: none;
}

.detail-muted-group > details > summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7c8b3;
  border-radius: 50%;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

.detail-muted-group > details[open] > summary::after {
  content: "-";
}

.detail-muted-group small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.detail-muted-group > details > p,
.detail-muted-group .detail-steps,
.detail-muted-group .faq-list {
  margin: 0 22px 22px;
}

.detail-muted-group > details > p {
  color: var(--muted);
  font-size: 16px;
}

.detail-sidebar {
  position: sticky;
  top: 136px;
}

.detail-consult-panel {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(31, 37, 34, 0.1);
}

.detail-consult-panel h2 {
  margin: 16px 0 10px;
  font-size: 25px;
  line-height: 1.25;
}

.detail-consult-panel p {
  color: var(--muted);
}

.temple-detail-hero {
  --temple-image: url("./temple-lanterns.jpg");
  --temple-focus: center;
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.temple-detail-hero__image,
.temple-detail-hero__overlay {
  position: absolute;
  inset: 0;
}

.temple-detail-hero__image {
  background: var(--temple-image) var(--temple-focus) / cover;
  transform: scale(1.02);
}

.temple-detail-hero__overlay {
  background:
    linear-gradient(180deg, rgba(20, 26, 23, 0.06), rgba(20, 26, 23, 0.84)),
    linear-gradient(90deg, rgba(20, 26, 23, 0.72), rgba(20, 26, 23, 0.16));
}

.temple-detail-hero__content {
  position: relative;
  z-index: 1;
  padding: 104px 0 64px;
}

.back-link {
  min-height: 44px;
  margin-bottom: 34px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.temple-detail-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.05;
}

.temple-detail-hero__lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}

.detail-status-card {
  width: min(720px, 100%);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.12);
  backdrop-filter: blur(10px);
}

.detail-status-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.detail-status-card .detail-actions {
  margin-top: 16px;
}

.detail-phone {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
}

.detail-phone span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 800;
}

.detail-phone a {
  color: var(--white);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.15;
}

.detail-phone--dark a {
  color: var(--green);
  font-size: 28px;
}

.detail-phone--dark span {
  color: var(--muted);
}

.detail-trust {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
}

.detail-trust--dark {
  margin: 18px 0 0;
  border-top-color: var(--line);
  color: var(--muted) !important;
  font-size: 14px !important;
}

.detail-cta-band {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.detail-cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.detail-cta-band h2,
.detail-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
}

.detail-cta-band p,
.detail-panel p,
.detail-list,
.detail-steps p,
.similar-card small {
  color: var(--muted);
  font-size: 17px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.detail-actions--left {
  justify-content: flex-start;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-panel {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(31, 37, 34, 0.06);
}

.detail-panel p:last-child {
  margin-bottom: 0;
}

.detail-list {
  margin: 0;
  padding-left: 21px;
}

.detail-list li + li {
  margin-top: 10px;
}

.detail-steps {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.detail-steps li {
  min-height: 82px;
  padding: 18px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-steps span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.detail-steps p {
  margin: 0;
}

.alert-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #d8c197;
  border-radius: var(--radius);
  background: #fff8eb;
}

.alert-panel strong {
  color: var(--green);
  font-size: 18px;
}

.alert-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.similar-card {
  position: relative;
  min-height: 280px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  isolation: isolate;
}

.similar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 26, 23, 0.04), rgba(20, 26, 23, 0.78));
}

.similar-card__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--temple-image) var(--temple-focus) / cover;
  transition: transform 180ms ease;
}

.similar-card:hover .similar-card__image {
  transform: scale(1.03);
}

.similar-card .status {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 253, 248, 0.94);
}

.similar-card strong {
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1.25;
}

.similar-card small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.sample-note {
  max-width: 760px;
  text-align: center;
}

.sample-note h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.sample-note p {
  color: var(--muted);
}

@media (max-width: 920px) {
  .topbar__inner {
    grid-template-columns: 1fr auto;
  }

  .topbar p {
    display: none;
  }

  .steps,
  .temple-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-column,
  .purpose-layout,
  .contact-hero__inner,
  .contact-grid,
  .comparison-grid,
  .detail-cta-band__inner,
  .detail-grid,
  .profile-header__grid,
  .detail-body__grid,
  .detail-split,
  .detail-feature__grid {
    grid-template-columns: 1fr;
  }

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

  .detail-actions {
    justify-content: flex-start;
  }

  .detail-sidebar {
    position: static;
  }

  .detail-subnav {
    top: 58px;
  }

  .consult__inner,
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .consult__actions {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .topbar__inner {
    width: min(100% - 24px, 1120px);
    min-height: 58px;
    gap: 10px;
    padding: 8px 0;
  }

  .topbar p {
    display: block;
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .topbar div > a {
    font-size: 16px;
  }

  .topbar__button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
  }

  .temple-detail-hero__content {
    padding: 74px 0 42px;
  }

  .temple-detail-hero h1 {
    font-size: 46px;
  }

  .temple-detail-hero__lead {
    font-size: 20px;
  }

  .profile-header {
    padding: 34px 0 24px;
  }

  .profile-header__copy h1 {
    font-size: 44px;
  }

  .profile-lead {
    font-size: 20px;
  }

  .profile-facts div {
    grid-template-columns: 92px 1fr;
  }

  .profile-header__visual {
    min-height: 300px;
  }

  .profile-header__image {
    min-height: 260px;
  }

  .detail-body {
    padding: 38px 0 66px;
  }

  .detail-block {
    margin-bottom: 34px;
    padding-bottom: 34px;
  }

  .detail-feature {
    padding: 24px;
  }

  .detail-feature__grid article {
    min-height: auto;
  }

  .detail-block p,
  .detail-list,
  .detail-steps p {
    font-size: 17px;
  }

  .detail-subnav__call {
    margin-left: 0;
  }

  .detail-phone a {
    font-size: 28px;
  }

  .hero__overlay {
    background: rgba(18, 24, 22, 0.72);
  }

  .hero__content {
    padding: 76px 0 36px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero__lead {
    font-size: 20px;
  }

  .trust-strip,
  .steps,
  .intent-nav,
  .temple-list,
  .temple-grid,
  .similar-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip li {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .trust-strip li:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 66px 0;
  }

  .steps li {
    min-height: auto;
  }

  .completion-card dl div {
    grid-template-columns: 92px 1fr;
  }

  .button {
    width: 100%;
  }

  .floating-call {
    left: 16px;
    right: 16px;
  }

  .contact-hero {
    padding: 64px 0 52px;
  }

  .contact-hero h1 {
    font-size: 42px;
  }

  .phone-panel > a:not(.button) {
    font-size: 27px;
  }

  .prep-card,
  .inquiry-card,
  .detail-panel {
    padding: 22px;
  }

  .inquiry-form {
    grid-template-columns: 1fr;
  }
}
