/* ============================================================
   egrette — Quiet Luxury redesign
   Palette: warm ivory / deep green / warm gray / black
   Type: Jost + Noto Sans KR (modern sans), light weights
   ============================================================ */
:root {
  --paper:   #f6f3ec;   /* warm ivory (main bg) */
  --paper-2: #efeadf;   /* deeper ivory (alt) */
  --ink:     #23231f;   /* warm near-black */
  --ink-70:  #55524b;
  --ink-soft:#857f73;   /* warm gray */
  --green:   #2f3a31;   /* deep green (dark sections) */
  --green-2: #26302a;
  --line:    #ddd6c8;   /* warm hairline */
  --line-2:  #cec6b5;
  --white:   #ffffff;

  --sans: "Jost", "Noto Sans KR", -apple-system, "Helvetica Neue", sans-serif;
  --max: 1280px;
  --gut: clamp(20px, 5vw, 80px);
  --hdr-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
em { font-style: italic; }
[hidden] { display: none !important; }

/* shared eyebrow / heads */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}
.eyebrow--light { color: rgba(246,243,236,0.6); }

.section { padding: clamp(84px, 12vw, 168px) var(--gut); max-width: var(--max); margin: 0 auto; }
.section__head { max-width: 640px; margin: 0 auto clamp(48px, 7vw, 88px); text-align: center; }
.section__title {
  font-weight: 300;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: 18px;
}
.section__lead {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 17px);
}
.section__head--light .section__title { color: var(--paper); }
.section__head--light .section__lead { color: rgba(246,243,236,0.65); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
}
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: transparent; color: var(--ink); }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--ghostlight { border-color: rgba(246,243,236,0.5); color: var(--paper); }
.btn--ghostlight:hover { border-color: var(--paper); }

/* ===== Header ===== */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,243,236,0.9);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  max-width: var(--max); margin: 0 auto;
  height: var(--hdr-h); padding: 0 var(--gut);
  display: flex; align-items: center; gap: 30px;
}
.brand {
  font-size: 25px; letter-spacing: 0.14em; text-transform: lowercase;
  font-weight: 400; margin-right: auto;
}
.brand--logo {
  display: block; margin-right: auto;
  width: 128px; height: 40px;
  background: var(--logo, none) left center / contain no-repeat;
  text-indent: -9999px; overflow: hidden;
}
.mainnav { display: flex; gap: 34px; }
.mainnav a {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-70); position: relative; padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.mainnav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--ink); transition: width 0.35s var(--ease);
}
.mainnav a:hover { color: var(--ink); }
.mainnav a:hover::after { width: 100%; }
.hdr__utils { display: flex; align-items: center; }

/* hamburger */
.navtog {
  display: none; width: 24px; height: 14px; position: relative;
  background: none; border: none;
}
.navtog span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.navtog span:nth-child(1) { top: 0; }
.navtog span:nth-child(2) { bottom: 0; }
.navtog.is-open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.navtog.is-open span:nth-child(2) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; top: var(--hdr-h); left: 0; width: 100%;
  height: calc(100vh - var(--hdr-h)); background: var(--paper);
  padding: 30px var(--gut); display: flex; flex-direction: column;
}
.drawer a {
  font-size: 20px; font-weight: 300; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

/* ===== Kakao login button ===== */
.kakao-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fee500; color: #191600; border: none; border-radius: 6px;
  padding: 8px 13px; font-size: 12px; letter-spacing: 0.02em;
  transition: filter 0.2s var(--ease); white-space: nowrap;
}
.kakao-btn:hover { filter: brightness(0.95); }
.kakao-btn__icon { width: 15px; height: 15px; fill: #191600; }
.kakao-btn.is-loggedin { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.kakao-btn.is-loggedin .kakao-btn__icon { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: calc(100vh - var(--hdr-h));
  display: flex; align-items: flex-end;
  padding: 0 var(--gut) clamp(56px, 8vw, 100px);
  overflow: hidden; color: var(--paper);
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background-color: #2b352d;
  background-image:
    var(--img, none),
    radial-gradient(120% 120% at 72% 18%, rgba(150,170,150,0.14) 0%, transparent 55%),
    linear-gradient(160deg, #36443b 0%, #2b352d 48%, #1f2721 100%);
  background-size: cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.42) 100%); }
.hero__inner { max-width: 760px; }
.hero__eyebrow { font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.85; }
.hero__title {
  font-weight: 300; font-size: clamp(48px, 9.5vw, 118px);
  line-height: 1.02; letter-spacing: -0.02em; margin: 24px 0 0;
}
.hero__title em { font-style: italic; font-weight: 300; }
.hero__sub { margin-top: 26px; font-size: clamp(15px, 1.8vw, 18px); opacity: 0.9; max-width: 520px; }
.hero__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Featured groups ===== */
.groups { display: grid; grid-template-columns: repeat(4, 1fr); }
.group { position: relative; aspect-ratio: 3 / 4; overflow: hidden; display: block; }
.group__img {
  position: absolute; inset: 0;
  background-color: var(--tone, #ccc);
  background-image: var(--img, none);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  transition: transform 0.9s var(--ease);
}
.group::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,0.5) 100%);
}
.group:hover .group__img { transform: scale(1.05); }
.group__label {
  position: absolute; left: 26px; bottom: 26px; z-index: 1; color: var(--paper);
  display: flex; flex-direction: column; gap: 4px;
}
.group__label em { font-style: normal; font-size: 22px; font-weight: 400; letter-spacing: 0.01em; }
.group__label small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }

/* ===== About ===== */
.about { }
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.about__head { position: sticky; top: calc(var(--hdr-h) + 40px); }
.about__title { font-weight: 300; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.12; letter-spacing: -0.01em; margin-top: 18px; }
.about__body { max-width: 620px; }
.about__lead { font-size: clamp(19px, 2.2vw, 24px); font-weight: 300; line-height: 1.5; color: var(--ink); }
.about__body p { margin-top: 22px; color: var(--ink-70); }
.about__meta { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.about__meta div { display: flex; flex-direction: column; gap: 4px; }
.about__meta strong { font-weight: 500; font-size: 13px; letter-spacing: 0.06em; }
.about__meta span { font-size: 13px; color: var(--ink-soft); }

/* ===== About overlay (opens on nav click) ===== */
.about-overlay { position: fixed; inset: 0; z-index: 200; }
.about-overlay__backdrop { position: absolute; inset: 0; background: rgba(20,17,14,0.3); }
.about-overlay__panel {
  position: absolute; inset: 0; background: var(--paper);
  overflow-y: auto; animation: aboutfade 0.5s var(--ease);
}
@keyframes aboutfade { from { opacity: 0; } to { opacity: 1; } }
.about-overlay__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(84px, 12vw, 150px) var(--gut);
  align-items: start;
}
.about-overlay__close {
  position: fixed; top: 20px; right: clamp(18px, 5vw, 72px); z-index: 2;
  background: none; border: none; font-size: 34px; line-height: 1; color: var(--ink); cursor: pointer;
}
.about-overlay__close:hover { color: var(--ink-soft); }

/* ===== Journal article page ===== */
.article { max-width: 760px; margin: 0 auto; padding: clamp(30px, 4vw, 50px) var(--gut) clamp(80px, 11vw, 150px); }
.article__head { text-align: center; margin: clamp(24px, 3vw, 40px) 0 clamp(30px, 4vw, 48px); }
.article__title { font-weight: 300; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -0.01em; margin-top: 14px; }
.article__date { margin-top: 16px; font-size: 13px; letter-spacing: 0.1em; color: var(--ink-soft); }
.article__cover { margin: 0 0 clamp(30px, 4vw, 48px); }
.article__cover img { display: block; width: 100%; }
.article__body { font-size: clamp(15px, 1.6vw, 16px); line-height: 2; color: var(--ink-70); }
.article__detail { margin: clamp(36px, 5vw, 60px) 0 0; }
.article__detail img { display: block; width: 100%; }

/* ===== Product detail page ===== */
.pd { max-width: var(--max); margin: 0 auto; padding: clamp(30px, 4vw, 50px) var(--gut) clamp(80px, 11vw, 150px); }
.pd__back { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.pd__back:hover { color: var(--ink); }
.pd__top { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 76px); align-items: start; margin-top: clamp(24px, 3vw, 40px); }
.pd__media { position: relative; }
.pd__img { display: block; aspect-ratio: 4 / 5; background: var(--tone, #ddd6c8) center/cover no-repeat; }
.pd__info { position: sticky; top: calc(var(--hdr-h) + 30px); }
.pd__name { font-weight: 300; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.01em; margin-top: 14px; }
.pd__price { font-size: 17px; color: var(--ink-70); margin-top: 14px; }
.pd__material { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.pd__actions { margin-top: 34px; }
.pd__detail { margin: clamp(56px, 8vw, 110px) auto 0; max-width: 860px; }
.pd__detail img { display: block; width: 100%; }
.pd__empty { text-align: center; color: var(--ink-soft); padding: 80px 0; }
.pd__empty a { text-decoration: underline; }
@media (max-width: 760px) {
  .pd__top { grid-template-columns: 1fr; gap: 26px; }
  .pd__info { position: static; }
}

/* ===== Collection page ===== */
.coll-page { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 9vw, 120px) var(--gut) clamp(80px, 11vw, 150px); }
.coll-page__head { text-align: center; margin-bottom: clamp(30px, 4vw, 46px); }
.coll-page__title { font-weight: 300; font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.01em; margin-top: 14px; }
.cat-tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px;
  padding-bottom: clamp(30px, 4vw, 48px); margin-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}
.cat-tabs button {
  background: none; border: none; font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); padding: 6px 2px; cursor: pointer; position: relative;
  transition: color 0.25s var(--ease);
}
.cat-tabs button::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--ink); transition: width 0.3s var(--ease); }
.cat-tabs button:hover { color: var(--ink); }
.cat-tabs button.is-active { color: var(--ink); }
.cat-tabs button.is-active::after { width: 100%; }

/* ===== Category products (grid) ===== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.prod-card { display: flex; flex-direction: column; }
.prod-card__img {
  aspect-ratio: 4 / 5; background-color: var(--tone, #ddd6c8);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden; transition: transform 0.7s var(--ease);
}
.prod-card:hover .prod-card__img { transform: scale(1.03); }
.prod-card__name { font-size: 19px; font-weight: 400; margin-top: 16px; }
.prod-card__price { font-size: 14px; color: var(--ink-soft); margin-top: 5px; }
.prod-card__actions { margin-top: 14px; display: flex; gap: 10px; }
.prod-card__buy {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--ink); color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease); cursor: pointer; background: none;
}
.prod-card__buy:hover { background: var(--ink); color: var(--paper); }
.prod-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }
@media (max-width: 900px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .prod-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ===== Philosophy (Valextra legacy style) ===== */
.philo { max-width: none; background: var(--green); color: var(--paper); }
.philo .section__head { max-width: var(--max); margin-left: auto; margin-right: auto; }
.philo .philo-grid { max-width: 1024px; margin-left: auto; margin-right: auto; } /* 카드 약 20% 축소 */
.philo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.philo-card { position: relative; aspect-ratio: 4 / 5; perspective: 1200px; }
.philo-card__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.75s var(--ease); }
.philo-card.is-flipped .philo-card__inner { transform: rotateY(180deg); }
@media (hover: hover) { .philo-card:hover .philo-card__inner { transform: rotateY(180deg); } }
.philo-card__front, .philo-card__back {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.philo-card__front {
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: var(--paper);
  background-color: var(--tone, #555);
  background-image: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.5) 100%), var(--img, none);
  background-size: cover, cover; background-position: var(--imgpos, center); background-repeat: no-repeat;
}
.philo-card__back {
  transform: rotateY(180deg);
  background: #ffffff; color: #1a1a18;
  padding: clamp(20px, 2.2vw, 30px); text-align: left;
  display: flex; flex-direction: column; overflow-y: auto; cursor: pointer;
}
.philo-card__btitle { font-family: var(--sans); font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.04; letter-spacing: -0.015em; }
.philo-card__btext { margin-top: auto; padding-top: 16px; font-size: 12px; line-height: 1.7; color: #4a4a46; word-break: keep-all; overflow-wrap: break-word; }
.philo-card__more {
  background: none; border: none; color: var(--paper); font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  width: fit-content; padding: 0 0 3px; position: relative; cursor: pointer;
}
.philo-card__more::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 1px; background: currentColor; transition: width 0.4s var(--ease); }
.philo-card__more:hover::after { width: 100%; }

/* ===== Collection ===== */
.coll-list { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 100px); }
.coll-item { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.coll-item--rev .coll-item__img { order: 2; }
.coll-item__img { aspect-ratio: 4 / 3; background-color: var(--tone, #ccc); background-image: var(--img, none); background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; transition: transform 0.9s var(--ease); }
.coll-item:hover .coll-item__img { transform: scale(1.015); }
.coll-item__text { display: flex; flex-direction: column; align-items: flex-start; }
.coll-item__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 300; letter-spacing: -0.01em; }
.coll-item__desc { margin-top: 16px; color: var(--ink-soft); max-width: 380px; }
.coll-item__link { margin-top: 26px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }

/* ===== Journal ===== */
.journal__titlelink { color: inherit; transition: opacity 0.25s var(--ease); }
.journal__titlelink:hover { opacity: 0.7; }
.journal__viewall { margin-top: 22px; }
.journal__viewall a { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.journal__viewall a:hover { color: var(--ink); }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.jcard { display: flex; flex-direction: column; }
.jcard__img { aspect-ratio: 4 / 5; background-color: var(--tone, #ccc); background-image: var(--img, none); background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; transition: transform 0.8s var(--ease); }
.jcard:hover .jcard__img { transform: scale(1.03); }
.jcard__cat { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 20px; }
.jcard__title { font-size: 21px; font-weight: 400; margin-top: 10px; }
.jcard__excerpt { margin-top: 8px; color: var(--ink-soft); font-size: 14.5px; }

/* ===== Contact ===== */
.contact { background: var(--paper-2); max-width: none; }
.contact__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact .section__head { text-align: left; margin: 0; }
.contact__info { margin-top: 40px; border-top: 1px solid var(--line); }
.contact__info li { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); gap: 20px; }
.contact__info span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.contact__info a { font-size: 15px; }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 26px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; font-weight: 300; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--line-2); padding: 10px 2px;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; }
.field--full .btn { width: fit-content; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--green); }

/* ===== Footer (YARN-style: centered mark + two-column info) ===== */
.footer { background: var(--green); color: rgba(246,243,236,0.78); padding: clamp(56px, 8vw, 96px) var(--gut) 44px; }
.footer__mark { text-align: center; }
.footer__logo {
  display: block; margin: 0 auto;
  width: min(140px, 44vw); height: clamp(82px, 12vw, 100px);
  background: var(--logo, none) center / contain no-repeat;
}
.footer__vline { width: 1px; height: clamp(70px, 11vw, 140px); background: rgba(246,243,236,0.25); margin: 22px auto; }

.footer__cols {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  border-top: 1px solid rgba(246,243,236,0.18);
  border-bottom: 1px solid rgba(246,243,236,0.18);
  padding: clamp(38px, 5vw, 56px) 0;
}
.footer__links { display: flex; gap: 26px; margin-bottom: 34px; }
.footer__links a { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); font-weight: 500; }
.footer__info p { font-size: 13.5px; line-height: 2; color: rgba(246,243,236,0.72); }
.footer__info b { color: var(--paper); font-weight: 500; }
.footer__info a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__sns { margin-top: 30px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); font-weight: 500; }
.footer__sns a { color: rgba(246,243,236,0.8); text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; text-transform: none; letter-spacing: 0.02em; }
.footer__block { margin-bottom: 28px; }
.footer__block h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); font-weight: 500; margin-bottom: 12px; }
.footer__block p { font-size: 13.5px; line-height: 2; color: rgba(246,243,236,0.72); }
.footer__block a { color: rgba(246,243,236,0.92); text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { margin-top: 30px; font-size: 12px; letter-spacing: 0.1em; color: rgba(246,243,236,0.5); }
.footer__secret { color: inherit; text-decoration: none; cursor: text; }
@media (max-width: 720px) {
  .footer__cols { grid-template-columns: 1fr; gap: 34px; }
}

/* ===== Modal (이용약관 등) ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20,22,18,0.55); }
.modal__dialog {
  position: relative; background: var(--paper);
  width: min(720px, 100%); max-height: 86vh; overflow-y: auto;
  border-radius: 6px; box-shadow: 0 30px 90px rgba(0,0,0,0.32);
  padding: clamp(30px, 5vw, 56px);
  animation: modalpop 0.3s var(--ease);
}
@keyframes modalpop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__x {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border: none; background: transparent;
  font-size: 24px; line-height: 1; color: var(--ink-70); border-radius: 50%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.modal__x:hover { background: rgba(0,0,0,0.07); color: var(--ink); }

.modal__body { color: var(--ink); }
.modal__body h1 { font-size: clamp(20px, 3vw, 26px); font-weight: 500; letter-spacing: 0.01em; }
.modal__body .modal__sub { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.modal__body hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.modal__body h3 { font-size: 15px; font-weight: 600; margin: 26px 0 8px; letter-spacing: 0.01em; }
.modal__body p { font-size: 13.5px; line-height: 1.95; color: var(--ink-70); margin: 8px 0; word-break: keep-all; }
.modal__body ol, .modal__body ul { margin: 6px 0 6px 4px; }
.modal__body li { font-size: 13.5px; line-height: 1.9; color: var(--ink-70); margin: 3px 0 3px 16px; list-style: decimal; word-break: keep-all; }
.modal__body ul li { list-style: disc; }
.modal__body .modal__note { font-size: 12.5px; color: var(--ink-soft); }
.modal__body b, .modal__body strong { font-weight: 600; color: var(--ink); }
.modal__body a { text-decoration: underline; }

/* ===== Back to top ===== */
.totop {
  position: fixed; right: clamp(16px, 3vw, 34px); bottom: clamp(16px, 3vw, 34px); z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--green); color: var(--paper); border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s var(--ease);
}
.totop span { font-size: 14px; line-height: 1; }
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--ink); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .groups { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 34px; }
  .about__head { position: static; }
  .philo-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --hdr-h: 62px; }
  .mainnav { display: none; }
  .navtog { display: block; }
  .brand { font-size: 22px; }
  .brand--logo { width: 106px; height: 33px; }
  .hero { align-items: flex-end; }
  .coll-item { grid-template-columns: 1fr; gap: 20px; }
  .coll-item--rev .coll-item__img { order: 0; }
  .journal-grid { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .groups { grid-template-columns: 1fr; }
  .philo-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
