/* 강원교육새음체 (눈누 · 무료, 출처 표기 권장, 폰트 판매만 금지) */
@font-face {
  font-family: "GangwonEducationSaeum";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEduSaeeum_OTFMediumA.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}
.wrap {
  width: 100%;
}
section[id] {
  scroll-margin-top: var(--header-h);
}
.inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.sec_title {
  margin-bottom: 60px;
  font-size: 2.2em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.sec_title span {
  color: var(--point-color);
}

/* header */
.hero {
  /* Juice 스타일: 차분한 초록 단색 바탕 + 화면을 채우는 크림색 이름 */
  --juice-green: #5ea85b;
  --juice-cream: #fffde8;
  --juice-ink: #161616;
  position: relative;
  /* 지금 초록 바탕 위에 균일한 은은한 모눈선 */
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--juice-green);
  overflow: hidden;
  height: 100vh;
  min-height: 560px;
}
/* 큰 이름 가운데에서 도는 네잎클로버 · 반짝이 */
.clover {
  --leaf-url: url("https://cdn.jsdelivr.net/gh/microsoft/fluentui-emoji@main/assets/Four%20leaf%20clover/Color/four_leaf_clover_color.svg");
  position: absolute;
  width: var(--s, 70px);
  height: var(--s, 70px);
  display: grid;
  place-items: center;
  animation: cloverSpin var(--spin, 14s) linear infinite, cloverGlow 2.6s ease-in-out infinite;
  animation-delay: 0s, var(--d, 0s);
}
.clover > .leaf { width: 100%; height: 100%; display: block; }
/* 잎 위를 지나가는 빛줄기 (클로버 모양으로만 보이게 마스크) */
.clover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 240, 170, 0.6) 54%, transparent 64%) 0 0 / 260% 100% no-repeat;
  -webkit-mask: var(--leaf-url) center / contain no-repeat;
  mask: var(--leaf-url) center / contain no-repeat;
  mix-blend-mode: screen;
  animation: leafShine 2.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes leafShine {
  0% { background-position: 130% 0; }
  55%, 100% { background-position: -30% 0; }
}
.clover .spark {
  position: absolute;
  font-size: calc(var(--s, 70px) * 0.16);
  color: #fff;
  right: 2%;
  top: 2%;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 2.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.clover .spark.s2 { font-size: calc(var(--s, 70px) * 0.1); left: 4%; right: auto; top: auto; bottom: 8%; animation-delay: calc(var(--d, 0s) + 1.1s); }
.clover .spark.s3 { font-size: calc(var(--s, 70px) * 0.12); color: #ffe9a3; right: auto; left: 18%; top: -4%; animation-delay: calc(var(--d, 0s) + 0.5s); }
.clover .spark.s4 { font-size: calc(var(--s, 70px) * 0.09); color: #fff; left: auto; right: -2%; top: auto; bottom: 22%; animation-delay: calc(var(--d, 0s) + 1.6s); }
@keyframes cloverSpin { to { transform: rotate(360deg); } }
@keyframes cloverGlow {
  0%, 100% { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22)) drop-shadow(0 0 12px rgba(220, 255, 230, 0.5)); }
  50% { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22)) drop-shadow(0 0 26px rgba(240, 255, 245, 0.85)); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
  45% { transform: scale(1) rotate(90deg); opacity: 1; }
  70% { transform: scale(0.5) rotate(140deg); opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .menu, .menu li a, .menu_btn span { transition: none !important; }
  .clover, .clover .spark, .clover::after { animation: none; }
  .clover .spark { opacity: 1; }
}.menu_btn { display: none; }
header {
  position: fixed;
  width: 100%;
  height: var(--header-h);
  z-index: 999;
}
.on {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}
.header_wrap {
  padding: 0 5vw;
  margin: 0 auto;
  height: 100%;
}
nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu li {
  height: 100%;
}
.menu li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1.1em;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.menu li a:hover,
.menu li a.active {
  color: var(--point-color);
}
.menu li a.active {
  font-weight: 600;
}
.logo a {
  font-weight: bold;
  font-size: 1.1em;
}
/* 첫 화면(헤더 배경이 없을 때): 초록 바탕 위 얇은 검정 글자 */
header:not(.on) .logo a,
header:not(.on) .menu li a {
  color: var(--juice-ink, #161616);
}
.menu li a,
.menu li a.active {
  font-weight: 300;
}
header:not(.on) .menu li a:hover,
header:not(.on) .menu li a.active {
  color: var(--juice-cream, #fffde8);
}

/* main visual */
.main {
  position: relative;
  height: 100%;
  padding: 0 clamp(16px, 2.3vw, 34px);
}
/* 상단 가운데 알림 띠 (예전 포트폴리오 링크) */
.notice_pill {
  position: absolute;
  left: 50%;
  top: calc(var(--header-h) + 40px);
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  background: #b9dfe0;
  color: var(--juice-ink);
  font-family: "DM Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s ease;
}
.notice_pill:hover,
.notice_pill:focus-visible { background: var(--juice-cream); }
.notice_pill i { transition: transform 0.25s ease; }
.notice_pill:hover i { transform: translateX(4px); }
/* 화면을 가득 채우는 크림색 이름 */
.big_name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  top: calc(var(--header-h) + 140px);
  text-align: center;
  font-family: "Bowlby One", sans-serif;
  font-size: 25vw;
  line-height: 0.8;
  white-space: nowrap;
  letter-spacing: -0.03em;
  color: var(--juice-cream);
  user-select: none;
}
/* 농구공 자리: 이름 가운데에 걸쳐 도는 클로버 */
.clover.big {
  --s: min(38vh, 20vw);
  --spin: 18s;
  left: 50%;
  top: calc(var(--header-h) + 140px + 10.5vw);
  margin-left: calc(var(--s) / -2);
  z-index: 1;
}
.main_txt {
  position: absolute;
  left: clamp(16px, 2.3vw, 34px);
  right: clamp(16px, 2.3vw, 34px);
  bottom: 15vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  pointer-events: none;
}
.main_hello {
  font-family: "GangwonEducationSaeum", sans-serif;
  font-size: clamp(1.7em, 3vw, 2.9em);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #333;
}
.main_role,
.main_contact {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--juice-ink);
}
.main_role { text-align: right; }
.main_contact {
  position: absolute;
  left: clamp(16px, 2.3vw, 34px);
  bottom: 22px;
}
.main_contact a:hover,
.main_contact a:focus-visible { text-decoration: underline; }
@media (max-width: 767px) {
  /* 모바일에서는 예전 포트폴리오 띠를 숨김 */
  .notice_pill { display: none; }
  .big_name { top: calc(var(--header-h) + 40px); font-size: 21.5vw; }
  /* 모바일: 클로버는 오른쪽 아래, 역할 목록은 숨김 */
  .clover.big { --s: 74vw; top: auto; bottom: 84px; left: auto; right: -2vw; margin: 0; }
  .main_role { display: none; }
  /* 모바일: SEOHEE 바로 아래에 인사 문구 */
  .main_txt { flex-direction: column; top: calc(var(--header-h) + 40px + 18vw + 28px); bottom: auto; }
  .main_role { text-align: left; }
}
/* about */
.about {
  padding-bottom: 100px;
}
.about_wrap {
  padding: 120px 0 80px;
}
.about_box {
  width: 90%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}
.about_inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.about_img {
  width: 34%;
  align-self: flex-start;
}
.about_img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}
.about_txt {
  width: 58%;
}
.about_txt h2 {
  padding-bottom: 1vw;
}
.about_txt h2 span {
  font-family: "Cafe24MeongiBlack", sans-serif;
  color: var(--point-color);
  font-size: 1.9em;
}
.about_txt p {
  padding-bottom: 1.5vw;
  word-wrap: break-word;
  letter-spacing: -0.2px;
}
.about_txt .mb40 {
  margin-bottom: 40px;
}
.about_txt .btn {
  color: var(--point-color);
}
.about_history {
  display: grid;
  gap: 36px;
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid #e5ece7;
}
.history_group h3 {
  margin-bottom: 12px;
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--point-color);
}
.history_group li {
  display: flex;
  gap: 20px;
  padding: 5px 0;
  font-size: 0.95em;
  line-height: 1.5;
}
.history_group .date {
  flex-shrink: 0;
  width: 170px;
  color: #888;
  font-variant-numeric: tabular-nums;
}

/* marquee */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
  );
}
.marquee img {
  transition: all 0.2s ease;
}
.marquee img:hover {
  transform: scale(0.9);
}
.skill_wordmark {
  display: inline-flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 100px;
  color: var(--point-deep);
  font-family: "DM Mono", monospace;
}
.skill_wordmark > span {
  font-size: 2.2em;
  font-weight: 500;
  line-height: 1.2;
}
.skill_wordmark small {
  margin-top: 4px;
  font-size: 0.65em;
  letter-spacing: 0.1em;
}
.marquee_group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-width: 100%;
  justify-content: space-around;
  gap: var(--gap);
  animation: scroll-left 60s linear infinite;
}
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

/* work */
.work {
  position: relative;
  padding: 120px 0;
  background-color: var(--point-soft);
  /* 고정 배경 글자가 WORK 섹션 안에서만 보이도록 잘라냄 */
  clip-path: inset(0);
}
.work_bg_txt {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  font-size: 13vw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(47, 111, 78, 0.18);
  pointer-events: none;
  user-select: none;
}
.work .inner {
  position: relative;
  z-index: 1;
}
.work_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 30px;
}
.work_list a {
  display: block;
}
.work_thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(31, 74, 53, 0.08);
}
.work_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.work_view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(31, 74, 53, 0.75);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work_list a:hover .work_thumb img,
.work_list a:focus-visible .work_thumb img {
  transform: scale(1.05);
}
.work_list a:hover .work_view,
.work_list a:focus-visible .work_view {
  opacity: 1;
}
.work_txt h3 {
  margin-bottom: 8px;
  font-size: 1.35em;
  font-weight: 700;
  transition: color 0.3s ease;
}
.work_list a:hover .work_txt h3 {
  color: var(--point-color);
}
.work_txt p {
  color: #666;
  font-size: 0.95em;
}
.work_txt strong {
  color: var(--point-color);
  font-weight: 600;
}
.work_txt .work_note {
  margin-top: 6px;
  color: #666;
  font-size: 0.8em;
}
/* 썸네일 오른쪽 아래 상태 배지 (예: 리디자인 시안) */
.work_badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--point-color);
  box-shadow: 0 4px 12px rgba(31, 74, 53, 0.25);
  color: #fff;
  font-size: 0.8em;
  font-weight: 600;
}

/* project */
.project {
  padding: 120px 0;
  background-color: var(--point-deep);
  color: #fff;
}
.project .sec_title span {
  color: var(--point-light);
}
.project_list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.project_list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.project_list .project_item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 32px 10px;
  color: #fff;
  transition: background-color 0.3s ease, padding 0.3s ease;
}
/* 마우스가 있는 기기에서만 호버 효과 (휴대폰에서 탭하면 줄이 밀린 채 남는 문제 방지) */
@media (hover: hover) and (pointer: fine) {
  .project_list .project_item:hover {
    padding-left: 24px;
    background-color: rgba(255, 255, 255, 0.06);
  }
  /* 마우스를 올린 줄은 연한 초록 → 흰색으로 바뀌며 강조 */
  .project_list .project_item:hover h3,
  .project_list .project_item:hover .project_tags {
    color: #fff;
  }
}
.project_list .project_item:focus-visible h3,
.project_list .project_item:focus-visible .project_tags {
  color: #fff;
}
.project_item h3 {
  flex: 1;
  font-size: 1.6em;
  font-weight: 500;
  color: var(--point-light);
  transition: color 0.4s ease;
}
.project_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--point-light);
  transition: color 0.4s ease;
}
/* 해시태그 하나가 '#'과 글자로 쪼개져 줄바꿈되지 않게 함 */
.project_tags span {
  white-space: nowrap;
}
.project_list .project_item:focus-visible {
  outline-color: var(--point-light);
}
.project_year {
  width: 80px;
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
}

/* project 호버 미리보기 (참고 사이트 방식)
   - 상자는 커서 중심에서 위아래로 열리고, 커서를 천천히 따라다님 (main.js)
   - 줄을 옮기면 이전 이미지는 접히고 새 이미지가 펼쳐지며 자연스럽게 교체됨 */
.project_preview {
  --pw: min(400px, calc(100vw - 40px));
  --ph: calc(var(--pw) * 0.625);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 997;
  width: var(--pw);
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
  transition: height 0.5s ease, opacity 0.5s ease 0.1s;
  will-change: transform;
}
.project_preview.show {
  height: var(--ph);
  opacity: 1;
  transition: height 0.5s ease 0.1s, opacity 0.5s ease;
}
.preview_image {
  height: 0;
  overflow: hidden;
  transition: height 1s ease;
}
.preview_image.on {
  height: 100%;
}
.preview_image img {
  display: block;
  width: var(--pw);
  height: var(--ph);
  object-fit: cover;
  transform: scale(1.3);
  transition: transform 1s ease-out 0.2s;
}
.preview_image.on img {
  transform: scale(1);
}

/* contact */
.contact {
  background:
    radial-gradient(circle at 12% 20%, rgba(159, 220, 184, 0.35), transparent 40%),
    radial-gradient(circle at 88% 85%, rgba(47, 111, 78, 0.16), transparent 45%),
    #fff;
}
.contact_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 160px 0 140px;
  text-align: center;
}
.contact_q {
  font-size: 2em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.contact .contact_mail {
  position: relative;
  font-size: clamp(1.6em, 6vw, 4.2em);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--point-color);
  word-break: break-all;
}
.contact_mail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: var(--point-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.contact_mail:hover::after,
.contact_mail:focus-visible::after {
  transform: scaleX(1);
}
.contact_desc {
  color: #555;
  line-height: 1.7;
}
.contact .contact_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  background-color: var(--point-color);
  color: #fff;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.contact .contact_btn:hover {
  background-color: var(--point-deep);
  transform: translateY(-2px);
}

/* footer */
.footer {
  padding: 30px 0;
  border-top: 1px solid #e5ece7;
  background-color: #fff;
}
.footer_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 70px;
  color: #999;
  font-size: 0.85em;
}
.footer_links {
  display: flex;
  gap: 30px;
}
.footer .footer_links a {
  color: #999;
  transition: color 0.3s ease;
}
.footer .footer_links a:hover {
  color: var(--point-color);
}

/* top button */
a.top_btn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--point-color);
  box-shadow: 0 6px 20px rgba(31, 74, 53, 0.25);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s,
    background-color 0.3s ease;
}
a.top_btn.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
a.top_btn:hover {
  background-color: var(--point-deep);
  color: #fff;
}

/* scroll reveal (main.js가 html에 .js를 붙였을 때만 숨김) */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
/* 2칸 배치: 오른쪽 카드가 살짝 늦게 등장 */
.js .work_list li:nth-child(even) {
  transition-delay: 0.15s;
}

@media (max-width: 1024px) {
  .menu {
    width: 60%;
  }
  .about_img {
    width: 40%;
  }
  .about_txt {
    width: 55%;
  }
}

/* 태블릿 이하: PROJECT 1줄 = 제목 + 연도, 2줄 = 해시태그 */
@media (max-width: 900px) {
  .project_list .project_item {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 24px 4px;
  }
  .project_item h3 {
    font-size: 1.25em;
  }
  .project_year {
    order: 2;
    width: auto;
  }
  .project_tags {
    order: 3;
    flex-basis: 100%;
    font-size: 0.9em;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }
  .header_wrap {
    padding: 0 16px;
  }
  /* 햄버거 버튼: 검정 사각형 + 두 줄 → 누르면 X로 바뀜 */
  .menu_btn {
    position: relative;
    z-index: 2;
    display: block;
    width: 42px;
    height: 42px;
    border: 0;
    background: var(--juice-ink, #161616);
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .menu_btn span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #fffde8;
    transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1), top 0.45s cubic-bezier(0.7, 0, 0.2, 1);
  }
  .menu_btn span:nth-child(1) { top: 16px; }
  .menu_btn span:nth-child(2) { top: 24px; }
  .menu_btn:hover span:nth-child(1) { transform: translateX(-3px); }
  .menu_btn:hover span:nth-child(2) { transform: translateX(3px); }
  header.menu_open .menu_btn { background: var(--point-deep); }
  header.menu_open .menu_btn span:nth-child(1) { top: 20px; transform: rotate(45deg); }
  header.menu_open .menu_btn span:nth-child(2) { top: 20px; transform: rotate(-45deg); }
  /* 메뉴가 열리면 헤더의 흐림 효과를 꺼서 전체 화면 메뉴가 헤더 안에 갇히지 않게 함 */
  header.menu_open { backdrop-filter: none; background: transparent; box-shadow: none; }
  header.menu_open .logo { position: relative; z-index: 2; }
  /* 전체 화면 메뉴: 오른쪽 위 버튼에서 원이 퍼지듯 열림 */
  .menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    padding: var(--header-h) 24px 40px;
    background: #fffde8;
    clip-path: circle(0 at calc(100% - 37px) 32px);
    visibility: hidden;
    transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.7s;
  }
  header.menu_open .menu {
    clip-path: circle(150% at calc(100% - 37px) 32px);
    visibility: visible;
    transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s;
  }
  .menu li {
    height: auto;
    overflow: hidden;
  }
  .menu li a,
  header:not(.on) .menu li a {
    display: block;
    height: auto;
    padding: 4px 0;
    font-family: "Dela Gothic One", sans-serif;
    font-size: clamp(2.4em, 12vw, 3.4em);
    font-weight: 400;
    line-height: 1.1;
    color: var(--point-deep);
    text-shadow: none;
    transform: translateY(110%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1), color 0.25s ease;
  }
  header.menu_open .menu li a { transform: translateY(0); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s, color 0.25s ease; }
  header.menu_open .menu li:nth-child(2) a { transition-delay: 0.32s, 0s; }
  header.menu_open .menu li:nth-child(3) a { transition-delay: 0.39s, 0s; }
  header.menu_open .menu li:nth-child(4) a { transition-delay: 0.46s, 0s; }
  .menu li a:hover,
  .menu li a.active,
  header:not(.on) .menu li a:hover,
  header:not(.on) .menu li a.active { color: #5ea85b; }
  .sec_title {
    margin-bottom: 36px;
    font-size: 1.6em;
  }
  .about {
    padding-bottom: 60px;
  }
  .about_wrap {
    padding: 80px 0 50px;
  }
  .about_inner {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .about_img {
    width: 70%;
    max-width: 320px;
    align-self: center;
  }
  .about_txt {
    width: 100%;
  }
  .about_txt h2 {
    padding-bottom: 12px;
  }
  .about_txt p {
    padding-bottom: 14px;
    font-size: 0.9em;
  }
  .about_txt p br {
    display: none;
  }
  .about_history {
    gap: 28px;
    margin-top: 40px;
    padding-top: 36px;
  }
  .history_group li {
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
    font-size: 0.9em;
  }
  .history_group .date {
    width: auto;
    font-size: 0.9em;
  }
  .marquee img {
    width: auto;
    height: 60px;
  }
  .skill_wordmark {
    min-width: 76px;
    height: 60px;
  }
  .skill_wordmark > span {
    font-size: 1.6em;
  }
  .work,
  .project {
    padding: 80px 0;
  }
  .work_list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .js .work_list li:nth-child(n) {
    transition-delay: 0s;
  }
  .contact_inner {
    gap: 22px;
    padding: 100px 0 90px;
  }
  .contact_q {
    font-size: 1.25em;
  }
  .contact_desc {
    font-size: 0.9em;
  }
  .footer_inner {
    flex-direction: column;
    gap: 12px;
    padding-right: 0;
  }
  a.top_btn {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media print {
  header {
    position: absolute;
  }
  a.top_btn,
  .project_preview,
  .work_bg_txt {
    display: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee_group,
  .main_txt p:first-child::after {
    animation: none;
  }
  .marquee {
    justify-content: center;
    mask-image: none;
  }
  .marquee_group {
    flex-shrink: 1;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
  }
  .marquee_group[aria-hidden="true"] {
    display: none;
  }
  .js .reveal,
  .js .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .project_preview,
  .project_preview.show,
  .preview_image,
  .preview_image img {
    transition: none;
  }
  .preview_image img {
    transform: none;
  }
  .project_list .project_item {
    transition: background-color 0.3s ease;
  }
}
/* 화면에는 안 보이고 스크린리더만 읽는 글자 */
.blind { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 로고 앞 고정 네잎클로버 */
.logo a { display: inline-flex; align-items: center; gap: 8px; }
.logo_clover { width: 1.6em; height: 1.6em; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18)); }
.logo_clover { width: 2.2em; height: 2.2em; transition: transform 0.4s ease; }
.logo a:hover .logo_clover { transform: rotate(20deg) scale(1.08); }
