/* Visual enhancement layer: icons and editorial inline media. Hero media lives in the base layout. */

.pillar-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.pillar-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(7, 24, 19, 0.9) 0%, rgba(7, 24, 19, 0.6) 50%, rgba(7, 24, 19, 0.14) 100%),
    linear-gradient(110deg, rgba(7, 24, 19, 0.34), rgba(7, 24, 19, 0.06));
}

.pillar-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 500ms ease;
}

.pillar-card:hover .pillar-card__media img {
  transform: scale(1.06);
}

.pillar-card > :not(.pillar-card__media) {
  position: relative;
  z-index: 1;
}

.pillar-card__icon,
.decision-steps__icon,
.info-section__icon {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 9px;
  object-fit: contain;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(23, 63, 52, 0.16);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(23, 26, 23, 0.09);
}

.pillar-card > .pillar-card__icon {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 1;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.94);
}

.item-visual img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.decision-steps li:has(.decision-steps__icon) {
  grid-template-columns: 48px 58px minmax(160px, 0.5fr) 1fr;
  gap: 16px;
}

.decision-steps__icon {
  grid-row: 1 / span 2;
}

.info-sections > section:has(.info-section__icon),
.info-sections > article:has(.info-section__icon) {
  grid-template-columns: 52px 76px minmax(0, 1fr);
  gap: 20px;
}

.info-section__icon {
  width: 48px;
  height: 48px;
  margin-top: 1px;
}

.editorial-inline-visual {
  max-width: var(--reading);
  margin: clamp(34px, 5vw, 54px) auto;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.editorial-inline-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.editorial-inline-visual figcaption {
  padding: 13px 16px 15px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .pillar-card > .pillar-card__icon {
    width: 44px;
    height: 44px;
  }

  .decision-steps li:has(.decision-steps__icon) {
    grid-template-columns: 44px 34px minmax(0, 1fr);
    gap: 10px;
  }

  .decision-steps__icon {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .decision-steps li:has(.decision-steps__icon) span {
    grid-column: 3;
  }

  .info-sections > section:has(.info-section__icon),
  .info-sections > article:has(.info-section__icon) {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .info-sections > section:has(.info-section__icon) > span,
  .info-sections > article:has(.info-section__icon) > span {
    grid-column: 2;
  }

  .info-sections > section:has(.info-section__icon) > div,
  .info-sections > article:has(.info-section__icon) > div {
    grid-column: 2;
  }

  .editorial-inline-visual {
    margin: 32px 0;
    border-radius: var(--radius-sm);
  }

  .editorial-inline-visual figcaption {
    padding: 11px 13px 13px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-card__media img {
    transition: none;
  }
}

/* Theme atmosphere: warm paper, restrained grain, and layered editorial surfaces. */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(243, 200, 75, 0.11), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(36, 99, 79, 0.08), transparent 30rem),
    linear-gradient(180deg, #f8f5ed 0%, var(--paper) 32%, #f3eee4 100%);
  background-attachment: fixed;
}

body::before {
  opacity: 0.34;
  background-image: url("../images/patterns/paper-grain-v1.svg");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
  mask-image: none;
}

.site-header {
  box-shadow: 0 12px 34px rgba(23, 26, 23, 0.045);
}

.section-shell {
  position: relative;
  isolation: isolate;
}

.section-shell:not(.section-shell--tight)::before {
  position: absolute;
  inset: 9% 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 94% 18%, rgba(36, 99, 79, 0.065), transparent 25%),
    radial-gradient(circle at 4% 82%, rgba(233, 87, 63, 0.045), transparent 22%);
}

.pillar-section {
  background-image:
    linear-gradient(120deg, rgba(255, 253, 248, 0.54), rgba(236, 230, 218, 0.72)),
    url("../images/patterns/paper-grain-v1.svg");
  background-size: auto, 180px 180px;
  background-blend-mode: normal, multiply;
}

.catalog-invite {
  background: #0b2f27;
}

.catalog-invite::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 29, 23, 0.97) 0%, rgba(7, 29, 23, 0.9) 43%, rgba(7, 29, 23, 0.44) 72%, rgba(7, 29, 23, 0.38) 100%),
    linear-gradient(0deg, rgba(7, 29, 23, 0.34), transparent 56%);
}

.catalog-invite__media,
.catalog-invite__media picture,
.catalog-invite__media img {
  width: 100%;
  height: 100%;
}

.catalog-invite__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.catalog-invite__media img {
  object-fit: cover;
  object-position: center;
}

.category-lenses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  background: transparent;
  list-style: none;
}

.category-lenses li {
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(31, 25, 18, 0.07);
}

.category-lenses figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #dcd6c9;
}

.category-lenses figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(9, 32, 26, 0.18));
}

.category-lenses img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.category-lens__copy {
  min-height: 160px;
  padding: 22px;
}

.category-lenses b {
  display: block;
  min-height: 28px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.category-lenses strong {
  display: block;
  font-size: 19px;
}

.category-lenses span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.category-next {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 300px;
  padding: 42px;
  margin-top: 34px;
  overflow: hidden;
  isolation: isolate;
  color: #fff9ee;
  background: #0b2f27;
  border-radius: var(--radius-md);
}

.category-next::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(7, 29, 23, 0.96) 0%, rgba(7, 29, 23, 0.86) 42%, rgba(7, 29, 23, 0.42) 72%, rgba(7, 29, 23, 0.52) 100%);
}

.category-next__media,
.category-next__media picture,
.category-next__media img {
  width: 100%;
  height: 100%;
}

.category-next__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.category-next__media img {
  object-fit: cover;
  object-position: center;
}

.category-next > :not(.category-next__media) {
  position: relative;
  z-index: 2;
}

.category-next h2,
.category-next p {
  margin: 0;
}

.category-next h2 {
  max-width: 560px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
}

.category-next p {
  margin-top: 4px;
  color: #dce5de;
  font-size: 14px;
}

.category-next .button {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--sun);
  border-color: var(--sun);
}

.editorial-card,
.category-lenses li {
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 253, 248, 0.12));
}

.category-lenses li {
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.62);
  transition: background-color 220ms ease, transform 220ms ease;
}

.info-sections > .info-section--icon {
  grid-template-columns: 52px 76px minmax(0, 1fr);
  gap: 20px;
  padding: 28px;
  margin-top: 14px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(245, 240, 229, 0.86)),
    url("../images/patterns/paper-grain-v1.svg");
  background-size: auto, 180px 180px;
  background-blend-mode: normal, multiply;
  border: 1px solid rgba(218, 211, 198, 0.9);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 50px rgba(31, 25, 18, 0.055), inset 0 1px rgba(255, 255, 255, 0.72);
}

.info-sections > .info-section--icon:last-child {
  border-bottom: 1px solid rgba(218, 211, 198, 0.9);
}

/* Shared pre-footer destination banner. */
.site-footer {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(180deg, #0b2f27 0%, #08251f 100%);
}

.footer-journey {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  isolation: isolate;
  background: #0b2f27;
}

.footer-journey::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 37, 31, 0.97) 0%, rgba(8, 37, 31, 0.86) 39%, rgba(8, 37, 31, 0.3) 72%, rgba(8, 37, 31, 0.48) 100%),
    linear-gradient(0deg, rgba(8, 37, 31, 0.58), transparent 58%);
}

.footer-journey__media,
.footer-journey__media picture,
.footer-journey__media img {
  width: 100%;
  height: 100%;
}

.footer-journey__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.footer-journey__media img {
  object-fit: cover;
  object-position: center;
}

.footer-journey__inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: min(100%, var(--max));
  min-height: 590px;
  padding: 68px 24px;
  margin: 0 auto;
}

.footer-journey .eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-journey .eyebrow::before {
  width: 30px;
  height: 2px;
  content: "";
  background: var(--coral);
}

.footer-journey h2 {
  max-width: 690px;
  margin: 0;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: clamp(48px, 5.7vw, 76px);
  font-weight: 520;
  line-height: 1.1;
  letter-spacing: -0.052em;
}

.footer-journey h2 span {
  white-space: nowrap;
}

.footer-journey__lead {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.85;
}

.footer-journey__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.footer-journey .button {
  color: var(--green-deep);
  background: var(--paper);
  border-color: var(--paper);
}

.footer-journey .button:hover {
  color: var(--white);
  background: transparent;
}

.footer-journey .button--ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
}

.footer-journey__paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 610px;
  margin-top: 26px;
}

.footer-journey__paths a {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.footer-journey__paths img {
  width: 38px;
  height: 38px;
  padding: 8px;
  object-fit: contain;
  background: rgba(255, 253, 248, 0.95);
  border-radius: 50%;
}

.footer-journey__paths span,
.footer-journey__paths strong,
.footer-journey__paths small {
  display: block;
  min-width: 0;
}

.footer-journey__paths strong {
  font-size: 14px;
}

.footer-journey__paths small {
  margin-top: 1px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer__body {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  max-width: var(--max);
  padding: 76px 24px 30px;
  margin: 0 auto;
}

.site-footer__body::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("../images/patterns/paper-grain-v1.svg");
  background-size: 180px 180px;
  mix-blend-mode: screen;
}

.site-footer__body > * {
  position: relative;
  z-index: 1;
}

.footer-links a {
  transition: color 180ms ease, transform 180ms ease;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.footer-bottom .footer-legal,
.footer-bottom .copyright {
  padding: 0;
  margin: 0;
  border: 0;
}

.footer-bottom .footer-legal {
  max-width: 760px;
}

@media (hover: hover) {
  .category-lenses li:hover {
    background-color: rgba(255, 255, 255, 0.48);
    transform: translateY(-3px);
  }

  .category-lenses li:hover img {
    transform: scale(1.035);
  }

  .footer-journey__paths a:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
  }

  .footer-links a:hover {
    color: var(--white);
    transform: translateX(3px);
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  .info-sections > .info-section--icon {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 18px;
  }

  .info-sections > .info-section--icon > span,
  .info-sections > .info-section--icon > div {
    grid-column: 2;
  }

  .footer-journey,
  .footer-journey__inner {
    min-height: 760px;
  }

  .footer-journey::after {
    background:
      linear-gradient(0deg, rgba(7, 24, 19, 0.97) 0%, rgba(7, 24, 19, 0.84) 47%, rgba(7, 24, 19, 0.18) 78%, rgba(7, 24, 19, 0.16) 100%),
      linear-gradient(90deg, rgba(7, 24, 19, 0.12), rgba(7, 24, 19, 0.12));
  }

  .footer-journey__media img {
    object-position: center top;
  }

  .footer-journey__inner {
    align-content: end;
    padding: 42px 18px 30px;
  }

  .footer-journey .eyebrow {
    margin-bottom: 14px;
  }

  .footer-journey h2 {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1.12;
  }

  .catalog-invite::after {
    background:
      linear-gradient(180deg, rgba(7, 29, 23, 0.88) 0%, rgba(7, 29, 23, 0.78) 54%, rgba(7, 29, 23, 0.72) 100%),
      linear-gradient(90deg, rgba(7, 29, 23, 0.18), rgba(7, 29, 23, 0.18));
  }

  .catalog-invite__media img {
    object-position: center;
  }

  .footer-journey__lead {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.75;
  }

  .footer-journey__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
  }

  .footer-journey__actions .button {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 12px;
    text-align: center;
  }

  .footer-journey__paths {
    gap: 6px;
    margin-top: 18px;
  }

  .footer-journey__paths a {
    flex-direction: column;
    gap: 5px;
    padding: 8px 5px;
    text-align: center;
  }

  .footer-journey__paths img {
    width: 34px;
    height: 34px;
    padding: 7px;
  }

  .footer-journey__paths strong {
    font-size: 13px;
  }

  .footer-journey__paths small {
    font-size: 9px;
  }

  .site-footer__body {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 54px 18px 24px;
  }

  .footer-brand strong {
    font-size: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .footer-bottom .copyright {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-lenses li,
  .category-lenses img,
  .footer-journey__paths a,
  .footer-links a {
    transition: none;
  }
}
