﻿/* =========================================================
   LCX — Forest Hope / flat picture-book portfolio
   black line • low-saturation macaron • mossy forest
   ========================================================= */
:root {
  --ink: #2b2b2b;
  --sky: #dff3f7;
  --sky-2: #cdebf2;
  --sea: #b7dfe2;
  --sea-2: #a8d5d9;
  --sand: #f8e7c3;
  --sand-2: #f3ddb4;
  --cream: #fffaf0;
  --pink: #f5ccd5;
  --pink-2: #f9dde2;
  --blue: #cfe7f1;
  --yellow: #f9e9b8;
  --lilac: #e4d9ef;
  --mint: #e2f2e7;
  --muted: #747474;
  --display: "Arial Rounded MT Bold", "Trebuchet MS", "Microsoft YaHei", sans-serif;
  --sans: "Trebuchet MS", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --line: 2.5px solid var(--ink);
  --ease: cubic-bezier(.22, .8, .28, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--sky); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sky);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--pink); color: var(--ink); }

.container { width: min(1180px, 90vw); margin-inline: auto; }

/* ---------- topbar / progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 500;
  background: rgba(43, 43, 43, .08);
  pointer-events: none;
}
.progress i { display: block; height: 100%; width: 0; background: var(--pink); border-right: 2px solid var(--ink); }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 400;
  height: 64px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 250, 240, .94);
  border-bottom: var(--line);
  transition: height .3s ease, background .3s ease;
}
.topbar.is-scrolled { height: 56px; background: var(--cream); }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand b {
  font-family: var(--display);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 400;
}
.brand b sup { font-family: var(--sans); font-size: 10px; }
.brand span { font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.topnav { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.topnav a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 12px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .04em;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.topnav a i { font-size: 10px; font-style: normal; color: var(--muted); }
.topnav a:hover { border-color: var(--ink); }
.topnav a.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.topnav a.is-active i { color: rgba(255, 250, 240, .62); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #8eb997; border: 1.5px solid var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 760px;
  overflow: hidden;
  background: var(--sky);
  border-bottom: var(--line);
}
.sky { position: absolute; inset: 0; background: var(--sky); }
.sun {
  position: absolute;
  top: 10%;
  right: 11%;
  width: 100px;
  height: 100px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: #ffe7a8;
}
.cloud {
  position: absolute;
  width: 160px;
  height: 42px;
  border-radius: 999px;
  background: var(--cream);
  opacity: .9;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--cream);
}
.cloud::before { width: 72px; height: 72px; left: 25px; bottom: 8px; }
.cloud::after { width: 50px; height: 50px; right: 26px; bottom: 7px; }
.cloud-a { top: 18%; left: 13%; transform: scale(.9); animation: cloudDrift 12s ease-in-out infinite; }
.cloud-b { top: 29%; right: 22%; transform: scale(.65); animation: cloudDrift 16s ease-in-out infinite reverse; }
.cloud-c { top: 8%; left: 46%; transform: scale(.45); opacity: .75; animation: cloudDrift 19s ease-in-out infinite; }
@keyframes cloudDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 18px 4px; }
}
.sea {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 15%;
  height: 25%;
  background: var(--sea);
  border-radius: 50% 50% 0 0 / 18% 18% 0 0;
}
.sand {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 28%;
  background: var(--sand);
  border-radius: 50% 50% 0 0 / 10% 10% 0 0;
}

.palm {
  position: absolute;
  z-index: 3;
  bottom: 19%;
  width: 250px;
  height: auto;
  pointer-events: none;
  animation: palmSway 7s ease-in-out infinite;
}
.palm-left { left: -28px; transform-origin: 55% 95%; }
.palm-right { right: -34px; transform: scaleX(-1); transform-origin: 45% 95%; animation-delay: -3.2s; }
@keyframes palmSway {
  0%, 100% { rotate: -1deg; }
  50% { rotate: 1.2deg; }
}
.boy {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 8%;
  width: 300px;
  height: auto;
  transform: translateX(-50%);
  animation: boyFloat 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes boyFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}
.starfish {
  position: absolute;
  z-index: 5;
  left: 8%;
  bottom: 6%;
  width: 108px;
  animation: starTurn 10s linear infinite;
}
.shell {
  position: absolute;
  z-index: 5;
  right: 9%;
  bottom: 6%;
  width: 108px;
  transform: rotate(7deg);
}
.dolphin {
  position: absolute;
  z-index: 3;
  top: 34%;
  right: 19%;
  width: 120px;
  animation: dolphinFloat 6s ease-in-out infinite;
}
@keyframes dolphinFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes starTurn { to { transform: rotate(360deg); } }

.hero-copy {
  position: absolute;
  z-index: 8;
  top: 11.5%;
  left: 50%;
  width: min(900px, 92vw);
  transform: translateX(-50%);
  text-align: center;
}
.hello {
  margin: 0;
  font-size: 13px;
  letter-spacing: .22em;
}
.hero h1 { margin: 12px 0 0; line-height: .9; }
.hero h1 .cn {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(78px, 9.4vw, 152px);
  letter-spacing: .02em;
  color: var(--cream);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
.hero h1 .en {
  display: block;
  margin-top: 12px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .32em;
}
.role {
  display: inline-block;
  margin: 22px 0 0;
  padding: 8px 17px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: 12px;
  letter-spacing: .06em;
}
.note { margin: 14px 0 0; color: #5d5d5d; font-size: 14px; letter-spacing: .04em; }

.thought {
  position: absolute;
  z-index: 9;
  left: calc(50% + 100px);
  top: 55%;
  width: 60px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--ink);
  border-radius: 50% 50% 50% 8px;
  background: var(--cream);
  font-size: 21px;
  transform: rotate(5deg);
  animation: thoughtFloat 5s ease-in-out infinite;
}
@keyframes thoughtFloat {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-5px); }
}

.hero-facts {
  position: absolute;
  z-index: 9;
  left: 4vw;
  right: 4vw;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}
.hero-facts div { min-width: 0; }
.hero-facts span { display: block; font-size: 9px; letter-spacing: .12em; color: #666; }
.hero-facts b { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.scroll {
  position: absolute;
  z-index: 9;
  right: 4vw;
  bottom: 86px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: .16em;
}
.scroll span { font-size: 16px; animation: scrollBounce 1.7s ease-in-out infinite; }
@keyframes scrollBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- shared sections ---------- */
.section {
  position: relative;
  padding: 108px 0;
  border-top: var(--line);
  overflow: hidden;
}
.sec-head { max-width: 720px; }
.sec-tag {
  display: inline-block;
  padding: 5px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: 10px;
  letter-spacing: .12em;
}
.sec-head h2 {
  margin: 20px 0 0;
  font-family: var(--display);
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.03em;
}
.sec-head p { margin: 15px 0 0; max-width: 450px; font-size: 14px; line-height: 1.8; color: #626262; }

/* ---------- skills ---------- */
.skills { background: var(--mint); }
.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 48px;
}
.skill-card {
  position: relative;
  min-height: 188px;
  padding: 26px;
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .35s var(--ease);
}
.skill-card:hover { transform: translateY(-5px) rotate(-.4deg); }
.card-pink { background: var(--pink); }
.card-blue { background: var(--blue); }
.card-yellow { background: var(--yellow); }
.card-lilac { background: var(--lilac); }
.skill-no {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .08em;
}
.skill-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  font-size: 24px;
}
.skill-card h3 {
  margin: 28px 0 7px;
  font-family: var(--display);
  font-size: clamp(23px, 2.3vw, 32px);
  font-weight: 400;
  letter-spacing: -.02em;
}
.skill-card p { margin: 0; font-size: 11px; letter-spacing: .04em; color: #4f4f4f; }
.skill-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.skill-tools span {
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: 10px;
  letter-spacing: .08em;
}
.skill-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  color: #5d5d5d;
  font-size: 10px;
  letter-spacing: .06em;
}

/* ---------- works ---------- */
.works { background: var(--sand); }
.works-head p { max-width: 360px; }
.cat-list { margin-top: 54px; }
.cat-block {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-top: 2px solid var(--ink);
}
.cat-block:last-child { padding-bottom: 0; }
.cat-head { position: sticky; top: 82px; }
.cat-no {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  font-family: var(--display);
  font-size: 11px;
}
.cat-head h3 {
  margin: 13px 0 0;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -.02em;
}
.cat-count { display: block; margin-top: 5px; font-size: 10px; color: #6c6c6c; letter-spacing: .1em; }
.cat-cards { display: grid; gap: 14px; min-width: 0; }
.cat-cards[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.cat-cards[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.cat-cards[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.work-card {
  display: block;
  min-width: 0;
  padding: 6px 6px 8px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  transition: transform .35s var(--ease);
}
.work-card:hover { transform: translateY(-5px) rotate(-.5deg); }
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--blue);
}
.thumb img, .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.02);
  transition: transform .8s var(--ease);
}
.thumb img.crop-top { object-position: center 10%; }
.work-card:hover .thumb img, .work-card:hover .thumb video { transform: scale(1.035); }
.thumb > span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 6px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--cream);
  font-size: 8px;
  letter-spacing: .08em;
}
.work-card h4 {
  margin: 7px 3px 1px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
}

/* ---------- contact ---------- */
.contact {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fbe8e3;
  padding-bottom: 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  flex: 1;
}
.contact-copy h2 { font-size: clamp(54px, 6.5vw, 96px); }
.mail {
  display: inline-block;
  margin-top: 26px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--display);
  font-size: calc(clamp(22px, 2.6vw, 36px) + 2px);
  letter-spacing: -.02em;
}
.mail span { font-family: var(--sans); font-size: 16px; vertical-align: super; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: 11px;
  letter-spacing: .08em;
  transition: background .25s ease, color .25s ease;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  margin: 34px 0 0;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}
.contact-info div { padding: 10px 0; }
.contact-info dt { color: #666; font-size: 9px; letter-spacing: .12em; }
.contact-info dd { margin: 5px 0 0; font-size: 12px; }

.postcard {
  width: min(360px, 100%);
  margin-left: auto;
  padding: 9px 9px 0;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  transform: rotate(2deg);
}
.postcard-scene {
  position: relative;
  height: 310px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  background: var(--sky);
}
.postcard-sky { position: absolute; inset: 0 0 28%; background: var(--sky); }
.postcard-scene::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: 31%;
  border-radius: 50% 50% 0 0 / 12% 12% 0 0;
  background: var(--sand);
}
.postcard-scene img:not(.postcard-star) {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 20px;
  width: 170px;
  transform: translateX(-50%);
}
.postcard-star { position: absolute; z-index: 3; left: 12px; bottom: 18px; width: 56px; transform: rotate(-8deg); }
.postcard-caption { display: flex; justify-content: space-between; gap: 10px; padding: 8px 3px 9px; font-size: 9px; letter-spacing: .08em; }
.postcard-caption span:first-child { font-family: var(--display); font-size: 12px; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding: 18px 0 24px;
  border-top: 2px solid var(--ink);
  font-size: 10px;
  letter-spacing: .08em;
}

/* ---------- mobile nav ---------- */
.mobile-nav { display: none; }

/* ---------- reveal ---------- */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-anim].is-in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-copy { top: 10%; }
  .hero h1 .cn { font-size: clamp(72px, 10.4vw, 120px); }
  .palm { width: 210px; }
  .boy { width: 270px; }
  .cat-block { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
  .contact-layout { grid-template-columns: 1fr; gap: 38px; }
  .postcard { margin-left: 0; }
  .contact { padding-top: 96px; }
  .postcard-scene { height: 260px; }
}

@media (max-width: 820px) {
  .topbar { height: 58px; padding: 0 5vw; }
  .topbar.is-scrolled { height: 54px; }
  .topnav, .status { display: none; }
  .brand b { font-size: 26px; }
  .brand span { font-size: 9px; }

  .hero { min-height: 100svh; height: 100svh; }
  .hero-copy { top: 9%; width: 90vw; }
  .hello { font-size: 10px; }
  .hero h1 { margin-top: 8px; }
  .hero h1 .cn { font-size: 20.5vw; -webkit-text-stroke-width: 2.2px; }
  .hero h1 .en { margin-top: 8px; font-size: 8px; letter-spacing: .2em; }
  .role { margin-top: 13px; padding: 6px 10px; font-size: 10px; }
  .note { margin-top: 9px; font-size: 12px; }
  .thought { display: none; }

  .sun { width: 64px; height: 64px; top: 8%; right: 9%; }
  .cloud { transform: scale(.55); }
  .cloud-a { top: 17%; left: 4%; }
  .cloud-b { top: 25%; right: 8%; }
  .cloud-c { display: none; }
  .sea { bottom: 17%; height: 22%; }
  .sand { height: 27%; }
  .palm { width: 135px; bottom: 24%; }
  .palm-left { left: -27px; }
  .palm-right { right: -30px; }
  .boy { width: 208px; bottom: 142px; }
  .starfish { width: 68px; left: 3%; bottom: 146px; }
  .shell { width: 68px; right: 3%; bottom: 146px; }
  .dolphin { width: 74px; top: 31%; right: 9%; }
  .scroll { display: none; }
  .hero-facts {
    bottom: 76px;
    left: 5vw;
    right: 5vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    padding-top: 8px;
  }
  .hero-facts span { font-size: 8px; }
  .hero-facts b { margin-top: 2px; font-size: 10px; }

  .section { padding: 80px 0; }
  .sec-head h2 { margin-top: 15px; font-size: 12vw; }
  .sec-head p { margin-top: 12px; font-size: 12px; }
  .sec-tag { font-size: 9px; padding: 4px 7px; }

  .skill-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .skill-card { min-height: 150px; padding: 15px; border-width: 2px; border-radius: 16px; }
  .skill-no { top: 11px; right: 12px; font-size: 10px; }
  .skill-icon { width: 32px; height: 32px; font-size: 17px; border-width: 1.5px; }
  .skill-card h3 { margin: 17px 0 5px; font-size: 18px; }
  .skill-card p { font-size: 9px; line-height: 1.5; }
  .skill-tools { margin-top: 17px; gap: 5px; }
  .skill-tools span { padding: 5px 7px; font-size: 9px; border-width: 1.5px; }
  .skill-note { margin-top: 22px; padding-top: 10px; gap: 12px; font-size: 9px; }

  .works-head p { max-width: 280px; }
  .cat-list { margin-top: 28px; }
  .cat-block { display: block; padding: 22px 0; }
  .cat-head { position: static; display: flex; align-items: center; gap: 8px; }
  .cat-head h3 { margin: 0; font-size: 21px; }
  .cat-count { margin: 0 0 0 auto; }
  .cat-no { width: 25px; height: 25px; font-size: 10px; border-width: 1.5px; }
  .cat-cards[data-cols] {
    display: flex;
    gap: 11px;
    margin: 13px -5vw 0;
    padding: 0 5vw 5px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .cat-cards::-webkit-scrollbar { display: none; }
  .work-card { flex: 0 0 76vw; max-width: 320px; scroll-snap-align: center; }
  .work-card h4 { font-size: 11px; }

  .contact { min-height: 100svh; padding: 80px 0 108px; justify-content: flex-start; }
  .contact-layout { display: block; }
  .contact-copy h2 { font-size: 14.2vw; }
  .mail { margin-top: 20px; font-size: calc(6.1vw + 2px); }
  .contact-actions { margin-top: 16px; }
  .contact-info { margin-top: 24px; gap: 0 16px; }
  .contact-info div { padding: 8px 0; }
  .contact-info dd { font-size: 11px; }
  .postcard {
    display: block;
    position: absolute;
    z-index: 2;
    right: 5vw;
    bottom: 104px;
    width: 170px;
    padding: 5px 5px 0;
    border-width: 2px;
    border-radius: 12px;
    transform: rotate(3deg);
  }
  .postcard-scene { height: 128px; border-radius: 7px; }
  .postcard-scene img:not(.postcard-star) { width: 86px; bottom: 7px; }
  .postcard-star { width: 30px; left: 7px; bottom: 7px; }
  .postcard-caption { padding: 5px 2px 6px; font-size: 7px; }
  .postcard-caption span:first-child { font-size: 9px; }
  .footer { margin-top: 32px; padding: 13px 0 0; flex-wrap: wrap; gap: 7px 14px; font-size: 9px; }
  .footer span:nth-child(2), .footer > a { display: none; }

  .mobile-nav {
    display: flex;
    position: fixed;
    z-index: 450;
    left: 5vw;
    right: 5vw;
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 6px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--cream);
  }
  .mobile-nav a {
    flex: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding: 7px 2px;
    border-radius: 999px;
    font-size: 11px;
  }
  .mobile-nav a i { font-size: 9px; font-style: normal; color: var(--muted); }
  .mobile-nav a.is-active { background: var(--ink); color: var(--cream); }
  .mobile-nav a.is-active i { color: rgba(255, 250, 240, .6); }
}

@media (max-width: 430px) {
  .hero h1 .cn { font-size: 20vw; }
  .role { font-size: 9px; letter-spacing: .02em; }
  .boy { width: 196px; bottom: 148px; }
  .palm { width: 122px; }
  .skill-card h3 { font-size: 17px; }
  .skill-card p { font-size: 8.5px; }
  .cat-head h3 { font-size: 19px; }
  .contact-copy h2 { font-size: 13.8vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-anim] { opacity: 1 !important; transform: none !important; }
}

body.is-ready .hero [data-anim] { opacity: 1; transform: translateY(0); }




/* =========================================================
   Forest banner adaptation — mossy green / warm orange / cream
   ========================================================= */
:root {
  --ink: #263026;
  --forest: #3f4b38;
  --moss: #6f7f5a;
  --cream: #f5efdf;
  --paper: #f6f0e2;
  --sand: #efe2c9;
  --orange: #e57b3f;
  --orange-soft: #f3c4a8;
  --sage: #e6ead9;
  --clay: #e7d2bf;
  --pink: #e8d6c6;
  --blue: #dfe7d6;
  --yellow: #efe1c4;
  --lilac: #e4d8d0;
  --mint: #e7ebdc;
  --muted: #6f7467;
}
html, body { background: var(--cream); }
body { color: var(--ink); }
.progress i { background: var(--orange); border-right-color: var(--ink); }

.topbar {
  background: rgba(246, 240, 227, .95);
  border-bottom-color: var(--ink);
}
.topbar.is-scrolled { background: var(--cream); }
.topnav a.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.topnav a.is-active i { color: rgba(245, 239, 223, .6); }
.topnav a:hover { border-color: var(--forest); }
.status i { background: #91a477; }

/* hero */
.hero {
  height: 100svh;
  min-height: 760px;
  background: #2d3829;
  border-bottom-color: var(--ink);
}
.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.025);
  animation: bannerIn 2s var(--ease) both;
}
@keyframes bannerIn { from { transform: scale(1.08); } to { transform: scale(1.025); } }
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(22, 30, 22, .84) 0%, rgba(22, 30, 22, .7) 31%, rgba(22, 30, 22, .12) 64%, rgba(22, 30, 22, 0) 100%),
    linear-gradient(0deg, rgba(22, 30, 22, .78) 0%, rgba(22, 30, 22, .15) 39%, rgba(22, 30, 22, 0) 68%);
    opacity: 0.2;
}
.hero-copy {
  top: auto;
  left: 4vw;
  bottom: 28%;
  width: min(570px, 44vw);
  transform: none;
  text-align: left;
  color: var(--cream);
}
.hello { color: #f0b48b; font-size: 11px; letter-spacing: .2em; }
.hero h1 { margin-top: 14px; }
.hero h1 .cn {
  color: #faf3e3;
  -webkit-text-stroke: 0;
  font-size: clamp(82px, 8.8vw, 148px);
  letter-spacing: .01em;
  line-height: .92;
}
.hero h1 .en { color: #f4cbb0; margin-top: 13px; font-size: 10px; letter-spacing: .28em; }
.role {
  margin-top: 20px;
  padding: 8px 15px;
  border-color: rgba(245, 239, 223, .7);
  background: rgba(245, 239, 223, .92);
  color: var(--forest);
  font-size: 11px;
}
.note { color: rgba(245, 239, 223, .78); font-size: 13px; }
.hero-facts {
  z-index: 9;
  bottom: 22px;
  border-top: 1.5px solid rgba(245, 239, 223, .5);
  color: var(--cream);
}
.hero-facts span { color: rgba(245, 239, 223, .6); }
.hero-facts b { color: var(--cream); }
.scroll { color: var(--cream); }
.scroll span { color: var(--orange-soft); }

/* sections */
.skills { background: var(--sage); }
.sec-tag { background: var(--cream); border-color: var(--ink); }
.sec-head h2 { color: var(--ink); }
.sec-head p { color: #626b5b; }
.skill-card { border-color: var(--ink); }
.card-pink { background: var(--clay); }
.card-blue { background: var(--blue); }
.card-yellow { background: var(--yellow); }
.card-lilac { background: var(--lilac); }
.skill-icon { border-color: var(--ink); background: var(--cream); }
.skill-no { color: var(--orange); }
.skill-tools span { background: var(--cream); border-color: var(--ink); }
.skill-note { border-top-color: var(--ink); color: #626b5b; }
.skill-note span:last-child { color: var(--orange); }

/* works */
.works { background: #f0e2cb; }
.cat-block { border-top-color: var(--ink); }
.cat-no { border-color: var(--ink); background: var(--cream); color: var(--orange); }
.cat-head h3 { color: var(--ink); }
.cat-count { color: #6a705f; }
.work-card { background: var(--cream); border-color: var(--ink); }
.thumb { border-color: var(--ink); background: var(--sage); }
.thumb > span { border-color: var(--ink); background: var(--cream); color: var(--ink); }
.work-card h4 { color: var(--ink); }
.work-card:hover .thumb > span { background: var(--orange); color: var(--cream); }

/* contact */
.contact { background: #e8e6d7; }
.contact-copy h2 { color: var(--ink); }
.mail { border-bottom-color: var(--ink); color: var(--ink); }
.mail:hover { color: var(--orange); }
.btn { background: var(--cream); border-color: var(--ink); color: var(--ink); }
.btn:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.contact-info { border-top-color: var(--ink); }
.contact-info dt { color: #69705f; }
.contact-info a:hover { color: var(--orange); }
.postcard { background: var(--cream); border-color: var(--ink); }
.postcard-scene { border-color: var(--ink); background: var(--sage); }
.postcard-scene .postcard-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(.94) contrast(1.02);
}
.postcard-caption { color: #626b5b; }
.postcard-caption span:first-child { color: var(--ink); }
.footer { border-top-color: var(--ink); color: #626b5b; }

@media (max-width: 820px) {
  .hero { min-height: 100svh; height: 100svh; }
  .hero-banner img { object-position: 42% 42%; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(22, 30, 22, .9) 0%, rgba(22, 30, 22, .76) 34%, rgba(22, 30, 22, .18) 62%, rgba(22, 30, 22, .02) 100%),
      linear-gradient(90deg, rgba(22, 30, 22, .32), transparent 55%);
  }
  .hero-copy {
    top: auto;
    left: 5vw;
    bottom: 25%;
    width: 90vw;
    transform: none;
    text-align: left;
  }
  .hello { font-size: 9px; letter-spacing: .14em; }
  .hero h1 { margin-top: 9px; }
  .hero h1 .cn { font-size: 19.5vw; }
  .hero h1 .en { margin-top: 8px; font-size: 7px; letter-spacing: .2em; }
  .role { margin-top: 12px; padding: 6px 9px; font-size: 9px; }
  .note { margin-top: 8px; font-size: 11px; }
  .hero-facts {
    bottom: 76px;
    left: 5vw;
    right: 5vw;
    color: var(--cream);
    border-top-color: rgba(245, 239, 223, .48);
  }
  .hero-facts span { color: rgba(245, 239, 223, .58); }
  .hero-facts b { color: var(--cream); }
  .scroll { display: none; }
  .skills { background: var(--sage); }
  .works { background: #f0e2cb; }
  .contact { background: #e8e6d7; }
  .postcard-scene .postcard-img { object-position: center 30%; }
  .postcard-scene { height: 128px; }
  .postcard-caption span:first-child { font-size: 9px; }
}

/* image postcard final positioning */
.postcard-scene::after { display: none; }
.postcard-scene .postcard-img {
  position: absolute;
  inset: 0;
  left: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  object-position: center 34%;
}
@media (max-width: 820px) {
  .postcard-scene .postcard-img { position: absolute; inset: 0; left: auto; bottom: auto; width: 100%; height: 100%; transform: none; object-position: center 30%; }
}

/* stronger override for the image postcard */
.postcard .postcard-scene > img.postcard-img {
  position: absolute;
  inset: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transform: none;
  object-fit: cover;
  object-position: center 34%;
}
@media (max-width: 820px) {
  .postcard .postcard-scene > img.postcard-img {
    position: absolute;
    inset: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    transform: none;
    object-position: center 30%;
  }
}
