*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #FFD600;
  --black:  #111111;
  --gray:   #777;
  --gray2:  #aaa;
  --border: #EBEBEB;
  --white:  #FFFFFF;
  --cream:  #F8F6F1;
  --font:   'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
}

html, body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

/* ─── Top Nav ─────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  z-index: 200;
}

.nav-logo {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.nav-logo-link {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  padding: 0;
  text-transform: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links button {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.nav-links button:hover,
.nav-links button.active { color: var(--black); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--gray);
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 2s infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ─── Stage ───────────────────────────────── */
.stage { /* normal flow wrapper */ }

/* ─── Section — min-height 讓內容可以撐高 ── */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: 52px;
}

/* Centered content column */
.col {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 40px 80px;
  position: relative;
}

/* Ghost number */
.ghost {
  position: absolute;
  right: max(0px, calc(50vw - 410px));
  bottom: -0.15em;
  font-size: 28vw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--black);
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transition: transform 2.2s cubic-bezier(0.23, 1, 0.32, 1);
}


.sec-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--gray2);
}

.sec-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sec-title {
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.95;
  margin-bottom: 48px;
}

/* ─── HERO Section ────────────────────────── */
#hero {
  background: var(--white);
  overflow: hidden;
}

/* ─── Hero floating elements ─────────────── */
.floater {
  position: absolute;
  pointer-events: none;
  opacity: 0.22;
  will-change: transform;
}

.floater svg {
  display: block;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.f1  { top: 14%; right: 9%;  animation: drift1 6s  ease-in-out infinite alternate; }
.f2  { top: 58%; left: 5%;   animation: drift2 8s  ease-in-out infinite alternate; }
.f3  { top: 80%; left: 58%;  animation: drift3 5s  ease-in-out infinite alternate; }
.f4  { top: 22%; left: 10%;  animation: drift2 10s ease-in-out infinite alternate-reverse; }
.f5  { top:  6%; left: 40%;  animation: drift4 7s  ease-in-out infinite alternate; }
.f6  { top: 36%; right: 2%;  animation: drift1 9s  ease-in-out infinite alternate-reverse; }
.f7  { top: 76%; left: 32%;  animation: drift5 7s  ease-in-out infinite alternate; }
.f8  { top: 88%; right: 6%;  animation: drift3 5s  ease-in-out infinite alternate-reverse; }
.f9  { top: 44%; left: 22%;  animation: drift4 6s  ease-in-out infinite alternate; }
.f10 { top: 30%; right: 22%; animation: drift5 8s  ease-in-out infinite alternate-reverse; }
.f11 { top: 84%; left: 8%;   animation: drift1 7s  ease-in-out infinite alternate; }
.f12 { top: 12%; right: 26%; animation: drift2 9s  ease-in-out infinite alternate-reverse; }

@keyframes drift1 {
  from { transform: translate(0,   0  ) rotate(0deg);   }
  to   { transform: translate(14px,-20px) rotate(18deg); }
}
@keyframes drift2 {
  from { transform: translate(0,   0  ) rotate(0deg);   }
  to   { transform: translate(16px, 12px) rotate(-12deg); }
}
@keyframes drift3 {
  from { transform: translate(0,   0  ) rotate(0deg);   }
  to   { transform: translate(-12px,-16px) rotate(9deg); }
}
@keyframes drift4 {
  from { transform: translate(0,   0  ) rotate(0deg);   }
  to   { transform: translate(20px,  8px) rotate(-20deg); }
}
@keyframes drift5 {
  from { transform: translate(0,   0  ) rotate(0deg);   }
  to   { transform: translate(-8px, 18px) rotate(14deg); }
}

#hero .col {
  padding-top: 45px;
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 36px;
}

.hero-type {
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 900;
  letter-spacing: -5px;
  line-height: 1;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-row { overflow: hidden; display: block; }

.hero-row { overflow: hidden; display: block; }

.hero-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: slideUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Chris 先進 → Cheng 稍後 */
.hero-row:nth-child(1) .hero-inner { animation-delay: 0.08s; }
.hero-row:nth-child(2) .hero-inner { animation-delay: 0.22s; }
/* 讓 g 的 descender 不被 overflow:hidden 裁掉 */
.hero-row:last-child { padding-bottom: 20px; }

@keyframes slideUp { to { transform: translateY(0); } }

.hero-accent { -webkit-text-stroke: 2px var(--black); color: transparent; }

/* 黃線：等名字落定後才展開 */
.hero-hl {
  position: relative;
  display: inline-block;
}

.hero-hl::after {
  content: '';
  position: absolute;
  bottom: 10px; left: 0;
  width: 0; height: 6px;
  background: var(--yellow);
  z-index: -1;
  animation: hlGrow 0.75s 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hlGrow { to { width: 100%; } }

.hero-nav-hint {
  margin-top: 26px;
  font-size: 16px;
  color: var(--gray2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── ABOUT Section ───────────────────────── */
#about {
  position: relative;
  background: var(--cream);
  z-index: 1;
  padding-top: 0px;
}

#about::before {
  content: '';
  position: absolute;
  left: -50%;
  top: -120px;
  width: 200%;
  height: 208px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 208' preserveAspectRatio='none'%3E%3Cpath fill='%23F8F6F1' d='M0,88 C64,152 192,24 320,88 C448,152 576,24 720,88 C864,152 992,24 1120,88 C1248,152 1376,24 1440,88 L1440,208 L0,208 Z'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: aboutWaveSway 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

@keyframes aboutWaveSway {
  from { transform: translateX(0); }
  to   { transform: translateX(10%); }
}

.about-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 36px;
}

.about-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--yellow);
}

.about-text {
  font-size: 15px;
  line-height: 1.95;
  color: #333;
}

.about-text mark {
  background: transparent;
  padding: 0;
  box-shadow: inset 0 -6px 0 var(--yellow);
}

.about-text p { margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-subhead {
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
  margin-top: 8px;
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  font-size: 11px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--gray);
}

.chip.hi { background: var(--yellow); border-color: var(--yellow); font-weight: 700; color: var(--black); }

/* ─── Section title highlight ─────────────── */
.sec-title .sec-hl {
  position: relative;
  display: inline-block;
  background: none;
  padding: 0;
  isolation: isolate;
}

.sec-title .sec-hl::after {
  content: '';
  position: absolute;
  bottom: 10px; left: 0;
  width: 0; height: 6px;
  background: var(--yellow);
  z-index: -1;
}

.sec-title.hl-vis .sec-hl::after {
  animation: hlGrow 0.75s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ─── EXP Section ─────────────────────────── */
#exp { background: var(--white); }

.exp-list { display: flex; flex-direction: column; gap: 48px; margin-top: 8px; }

.exp-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.exp-year { font-size: 12px; color: var(--gray); line-height: 1.7; padding-top: 4px; }

.exp-date,
.exp-duration {
  display: block;
}

.exp-date {
  margin-bottom: 14px;
}

.exp-role { font-size: 20px; font-weight: 800; margin-bottom: 4px; }

.exp-co { font-size: 13px; color: var(--gray); margin-bottom: 14px; }

.exp-co .tag {
  display: inline-block;
  border: 1px solid var(--yellow);
  color: #111111;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  font-weight: 700;
}

.exp-desc { font-size: 14px; color: #444; line-height: 1.8; margin-bottom: 14px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--gray);
}

/* ─── SKILLS Section ──────────────────────── */
#skills { background: var(--cream); }

.sk-list { display: flex; flex-direction: column; }

.sk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.sk-item:last-child { border-bottom: none; }

.sk-name {
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 900;
  letter-spacing: -0.5px;
  min-width: 180px;
}

.sk-name.dim { -webkit-text-stroke: 1px #ccc; color: transparent; }

.sk-cat {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray2);
  flex: 1;
}

.sk-bar-wrap {
  width: 160px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.sk-bar {
  height: 100%;
  background: var(--yellow);
  width: 0;
  border-radius: 2px;
  transition: width 1.2s ease;
}

#skills.vis .sk-bar { width: var(--w); }


/* ─── Skills chip grid ───────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
}

.sg-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--border);
  color: var(--black);
  border-radius: 3px;
  font-family: var(--font);
}

.chip.hi {
  background: var(--yellow);
  border-color: var(--yellow);
  font-weight: 700;
}

@media (max-width: 640px) {
  .skills-grid { grid-template-columns: 1fr; gap: 28px; }
}

.ct-plane {
  position: absolute;
  width: 254px;
  top: 12%;
  right: max(10px, calc(50vw - 400px));
  opacity: 0.1;
  filter: invert(1) brightness(0.75);
  pointer-events: none;
  animation: planeDrift 8s ease-in-out infinite alternate;
}

@keyframes planeDrift {
  from { transform: translate(0, 0) rotate(-3deg); }
  to   { transform: translate(18px, -14px) rotate(5deg); }
}

.ct-meta {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

.ct-meta span { display: flex; align-items: center; gap: 8px; }
.ct-meta i { color: var(--yellow); font-size: 12px; }
.ct-meta strong {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}

.ct-separator {
  color: rgba(255,255,255,0.35);
  line-height: 1;
}

.ct-meta a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.ct-meta a:hover { color: var(--yellow); }

/* ─── DESIGN WORKS (Card Carousel) ───────── */
#design { background: var(--white); }

#design .carousel-wrap { overflow: hidden; }

.carousel-wrap {
  position: relative;
  width: 100%;
  margin-top: 8px;
}

/* Stage for 3D cards */
.carousel-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 460px;
  perspective: 1200px;
  position: relative;
}

/* Each card */
.c-card {
  position: absolute;
  width: 260px;
  height: 380px;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.6s ease,
              filter   0.6s ease;
  transform-style: preserve-3d;
}

/* Position classes */
.c-card.pos-center {
  transform: translateX(0) scale(1) rotateY(0deg);
  opacity: 1;
  filter: none;
  z-index: 3;
}

.c-card.pos-left1 {
  transform: translateX(-280px) scale(0.84) rotateY(18deg);
  opacity: 0.65;
  filter: blur(0.5px);
  z-index: 2;
}

.c-card.pos-right1 {
  transform: translateX(280px) scale(0.84) rotateY(-18deg);
  opacity: 0.65;
  filter: blur(0.5px);
  z-index: 2;
}

.c-card.pos-left2 {
  transform: translateX(-490px) scale(0.7) rotateY(28deg);
  opacity: 0.25;
  filter: blur(1.5px);
  z-index: 1;
}

.c-card.pos-right2 {
  transform: translateX(490px) scale(0.7) rotateY(-28deg);
  opacity: 0.25;
  filter: blur(1.5px);
  z-index: 1;
}

.c-card.pos-hidden {
  transform: translateX(0) scale(0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* Card inner (flip container) */
.c-card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.c-card.flipped .c-card-inner {
  transform: rotateY(180deg);
}

/* Front & back faces */
.c-face {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  overflow: hidden;
}

.c-front {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.c-back {
  transform: rotateY(180deg);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card gradient backgrounds */
.bg-1 { background: linear-gradient(135deg, #2C2C2C 0%, #444 100%); }
.bg-2 { background: linear-gradient(135deg, #1A3A2A 0%, #2A5040 100%); }
.bg-3 { background: linear-gradient(135deg, #8B4513 0%, #C17840 100%); }
.bg-4 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.bg-5 { background: linear-gradient(135deg, #2d2d2d 0%, #FFD600 100%); }

.c-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}

.c-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.c-year {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* Decorative element on card front */
.c-deco {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,0.5);
}

.c-back-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray2);
}

.c-back-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.c-back-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.7;
  flex: 1;
}

.c-back-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.c-back-tag {
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--gray);
}

.c-back-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1.5px solid var(--yellow);
  width: fit-content;
}

.c-back-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  color: var(--gray2);
  text-align: center;
  padding-top: 4px;
}

.c-back-hint i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 10px;
  font-size: 8px;
  transform: translateY(1px);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.cc-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gray2);
  transition: border-color 0.2s, background 0.2s;
}

.cc-btn:hover {
  border-color: var(--black);
  background: var(--yellow);
  color: var(--black);
}

.carousel-hint {
  text-align: center;
  font-size: 10px;
  color: var(--gray2);
  letter-spacing: 1px;
  margin-top: 12px;
}

/* ─── CONTACT Section ─────────────────────── */
#contact { background: var(--black); color: #fff; overflow: hidden; }

#contact .ghost { color: var(--yellow); opacity: 0.06; bottom: 0; }

.ct-big {
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.95;
  margin-bottom: 60px;
}

.ct-yl { background: var(--yellow); color: var(--black); padding: 0 8px; }

.ct-hl {
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

.ct-hl::after {
  content: '';
  position: absolute;
  bottom: 10px; left: 0;
  width: 0; height: 6px;
  background: var(--yellow);
  z-index: -1;
}

.ct-hl.hl-vis::after {
  animation: hlGrow 0.75s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ct-list { display: flex; flex-direction: column; margin-bottom: 36px; }

.ct-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}

.ct-row:last-child { border-bottom: none; }

.ct-row i { color: var(--yellow); width: 18px; text-align: center; }

.ct-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font);
}

.btn-light { background: var(--yellow); color: var(--black); }
.btn-light:hover { background: #fff; }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  background: none;
}

.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

/* ─── Social links grid ──────────────────── */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  padding: 0;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  background: rgba(255,255,255,0);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.social-item i { font-size: 18px; color: rgba(255,255,255,0.72); transition: color 0.2s; }

.social-item:hover {
  color: var(--yellow);
  background: rgba(255,214,0,0.12);
  transform: translateY(-1px);
}

.social-item:hover i { color: var(--yellow); }

/* ─── Page indicator ──────────────────────── */
.page-prog {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}

.page-prog.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.pp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.35);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.pp-dot.active {
  background: var(--black);
  border-color: var(--black);
  transform: scale(1.5);
}

/* on dark sections (contact) */
.page-prog.on-dark .pp-dot {
  border-color: rgba(255,255,255,0.4);
  background: transparent;
}

.page-prog.on-dark .pp-dot.active {
  background: var(--yellow);
  border-color: var(--yellow);
}

.site-footer {
  position: relative;
  z-index: 10;
  padding: 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gray);
  background: rgba(0,0,0,0);
}

.site-footer span { position: relative; z-index: 1; }

.footer-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-status-dot {
  flex: 0 0 auto;
  order: 2;
}

.footer-role-primary {
  order: 1;
}

.footer-separator {
  display: none;
  order: 3;
  color: var(--gray);
}

.footer-role-secondary {
  order: 4;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -112px;
  bottom: 0;
  left: -50%;
  width: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 178' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' d='M0,88 C64,152 192,24 320,88 C448,152 576,24 720,88 C864,152 992,24 1120,88 C1248,152 1376,24 1440,88 L1440,178 L0,178 Z'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: footerWaveSway 9s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes footerWaveSway {
  from { transform: translateX(0); }
  to   { transform: translateX(10%); }
}

/* ─── Pigeon mail seal ───────────────────── */
.pigeon-seal {
  position: absolute;
  top: 80px;
  right: 60px;
  width: 250px;x
  height: 250px;
  display: block;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.pigeon-seal:hover {
  transform: scale(1.1);
}

.pigeon-seal svg { width: 100%; height: 100%; }

.pigeon-seal .ring {
  transform-origin: 180px 180px;
  animation: sealSpin 24s linear infinite;
}

.pigeon-seal:hover .ring {
  animation-duration: 5s;
}

@keyframes sealSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }

  .about-photo {
    width: 112px;
    height: 112px;
  }

  .about-text {
    width: 100%;
  }

  .exp-list {
    gap: 36px;
  }

  .exp-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 28px;
  }

  .exp-main {
    display: contents;
  }

  .exp-year {
    order: 3;
    padding-top: 0;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0.4px;
    margin: 10px 0 18px;
  }

  .exp-date {
    margin-bottom: 0;
  }

  .exp-duration {
    display: none;
  }

  .exp-role {
    order: 1;
    font-size: 19px;
    margin-bottom: 6px;
  }

  .exp-co {
    order: 2;
    margin-bottom: 0;
  }

  .exp-desc {
    order: 4;
    margin-bottom: 18px;
  }

  .tag-row {
    order: 5;
  }

  .exp-co .tag {
    margin-left: 0;
    margin-top: 6px;
  }

  .carousel-stage {
    height: 420px;
  }

  .c-card {
    width: 230px;
    height: 350px;
  }

  .c-card.pos-left1 {
    transform: translateX(-190px) scale(0.82) rotateY(14deg);
  }

  .c-card.pos-right1 {
    transform: translateX(190px) scale(0.82) rotateY(-14deg);
  }

  .c-card.pos-left2,
  .c-card.pos-right2 {
    opacity: 0;
    pointer-events: none;
  }

  .cc-btn {
    width: 44px;
    height: 44px;
  }

  .social-grid {
    gap: 6px;
  }

  .social-item {
    width: 34px;
    height: 34px;
  }

  .social-item i {
    font-size: 16px;
  }

  .ct-plane {
    width: 150px;
    top: 10%;
    right: 18px;
    opacity: 0.08;
  }

  .ct-meta {
    visibility: hidden;
  }

  .pigeon-seal { display: none; }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-role {
    gap: 7px;
  }

  .footer-status-dot {
    order: 1;
  }

  .footer-role-primary {
    order: 2;
  }

  .footer-separator {
    display: inline;
    order: 3;
  }

  .site-footer::before {
    top: -119px;
  }
}
