/* =========================================================
   home.css — index.html only
   hero, project filter, achievements, experience, stack
   ========================================================= */

/* ---------- hero ---------- */
.hero { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 72px 0 48px; scroll-margin-top: 90px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5.6vw, 56px); line-height: 1.05; letter-spacing: -.02em; color: var(--navy); min-height: 1.05em; }
.caret { display: inline-block; width: 3px; height: .85em; margin-left: 5px; background: var(--orange); border-radius: 1px; animation: blink .9s steps(1) infinite; vertical-align: -.08em; }
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
.role-wrap { overflow: hidden; }
.role { display: inline-block; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.01em; color: var(--orange); transition: opacity .4s ease-out, transform .4s ease-out; }
.role.out { opacity: 0; transform: translateY(-12px); }
.role.pre { opacity: 0; transform: translateY(12px); transition: none; }
.bio { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.65; color: var(--ink); }
.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 8px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--navy); }
.stat span { font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--mute); }

.hero-portrait { flex: 1 1 260px; max-width: 320px; display: flex; justify-content: center; }
.doodle { position: relative; width: 290px; max-width: 100%; margin: 0 auto; }
/* profile photo = holo card (assets/js/holo-card.js) */
.photo { position: relative; opacity: 0; transform: scale(.82); animation: pop .6s ease-out .35s forwards; }
.photo .holo-card { display: block; width: 100%; }
.photo .holo-card__face { background: var(--blush); }
.photo .holo-card__shadow { background: rgba(11,37,69,.35); }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
.orb { position: absolute; }
.orb .g { width: 100%; height: 100%; opacity: 0; animation: orbIn .5s ease-out forwards; }
@keyframes orbIn { from { opacity: 0; transform: scale(0) rotate(var(--r0)); } to { opacity: 1; transform: scale(1) rotate(0); } }
.orb svg { width: 100%; height: 100%; display: block; }
@media (max-width: 800px) { .hero-portrait { order: -1; } }

/* ---------- project filter ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; background: var(--blush); border-radius: 100px; width: fit-content; max-width: 100%; }
.tab { border: 0; cursor: pointer; padding: 9px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--navy); background: transparent; transition: color .2s ease, background-color .2s ease; }
.tab.on { color: var(--paper); background: var(--orange); }
.dd { position: relative; width: 100%; display: none; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--blush); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--navy); }
.dd-btn span { display: inline-block; color: var(--orange); transition: transform .2s ease; }
.dd.open .dd-btn span { transform: rotate(180deg); }
.dd-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(11,37,69,.14); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s ease-out, transform .18s ease-out; }
.dd.open .dd-list { opacity: 1; transform: none; pointer-events: auto; }
.dd-list button { display: block; width: 100%; text-align: left; border: 0; padding: 12px 16px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--navy); background: transparent; }
.dd-list button.on { font-weight: 700; color: var(--orange); background: var(--blush); }
@media (max-width: 700px) { .tabs { display: none; } .dd { display: block; } }
.empty { margin: 0; font-size: 14.5px; color: var(--mute); }
.more-row { display: flex; justify-content: center; }
.more { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border: 1px solid var(--navy); border-radius: 100px; background: var(--navy); color: var(--paper); cursor: pointer; font-size: 14.5px; font-weight: 600; transition: transform .2s ease; }
.more:hover { transform: translateY(-2px); }
.more:active { transform: scale(.97); }
.more.ghost { background: transparent; color: var(--navy); }
.more small { font-family: var(--mono); font-size: 12px; opacity: .75; }

/* ---------- achievements ---------- */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
@media (max-width: 700px) { .agrid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.atile { display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: zoom-in; }
.atile.noimg { cursor: default; }
.acover { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--blush); }
.acover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.acover img.on { opacity: 1; }
.acover .none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: #C97B5C; text-align: center; padding: 8px; }
.adots { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.adots i { width: 4px; height: 4px; border-radius: 100%; background: rgba(253,251,249,.55); box-shadow: 0 0 0 1px rgba(11,37,69,.15); }
.adots i.on { background: var(--paper); }
.ainfo { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.adate { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.atitle { font-family: var(--display); font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--navy); }
.aorg { font-size: 12.5px; color: var(--mute); }
.adesc { font-size: 12px; line-height: 1.45; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(11,37,69,.92); display: flex; align-items: center; justify-content: center; padding: 32px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lb.on { opacity: 1; pointer-events: auto; }
.lb-arrow { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(253,251,249,.12); border: 1px solid rgba(253,251,249,.25); border-radius: 100px; width: 44px; height: 44px; color: var(--paper); cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; z-index: 1001; }
.lb-prev { left: clamp(12px, 4vw, 40px); } .lb-next { right: clamp(12px, 4vw, 40px); }
.lb-box { display: flex; flex-direction: column; gap: 14px; max-width: min(640px, 78vw); max-height: 85vh; transform: scale(.96); transition: transform .25s ease-out; }
.lb.on .lb-box { transform: scale(1); }
.lb-img { position: relative; }
.lb-img img { max-width: 100%; max-height: 62vh; border-radius: 10px; object-fit: contain; background: #fff; margin: 0 auto; }
.lb-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.lb-dots i { width: 6px; height: 6px; border-radius: 100%; background: rgba(253,251,249,.4); }
.lb-dots i.on { background: var(--paper); }
.lb-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; color: var(--paper); }
.lb-txt { display: flex; flex-direction: column; gap: 6px; max-height: 18vh; overflow-y: auto; }
.lb-txt b { font-weight: 600; font-size: 15px; }
.lb-txt span { font-size: 12.5px; opacity: .75; }
.lb-txt p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; opacity: .85; max-width: 520px; }
.lb-close { background: rgba(255,255,255,.12); border: 0; border-radius: 100px; width: 34px; height: 34px; color: var(--paper); cursor: pointer; font-size: 16px; flex-shrink: 0; }

/* ---------- experience ---------- */
.tl { display: flex; flex-direction: column; }
.xp { display: flex; gap: 24px; }
.rail { display: flex; flex-direction: column; align-items: center; width: 14px; flex-shrink: 0; }
.rail .dot { width: 12px; height: 12px; border-radius: 100%; background: var(--navy); flex-shrink: 0; margin-top: 6px; }
.rail .dot.now { background: var(--orange); }
.rail .ln { flex: 1; width: 1.5px; background: var(--line); margin-top: 4px; }
.xbody { padding-bottom: 40px; flex: 1; min-width: 0; }
.xdate { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--mute); margin-bottom: 8px; white-space: pre-wrap; }
.xco { display: flex; flex-direction: column; margin-bottom: 10px; }
.xco b { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--navy); }
.xco span { font-size: 14px; color: var(--ink); }
.xdesc { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--ink); max-width: 640px; }
.xlabel { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.xp ul { margin: 0; padding-left: 18px; }
.xp li { font-size: 14.5px; line-height: 1.6; color: var(--ink); max-width: 620px; }
.xach { background: rgb(251,234,227); border: 1px solid rgba(228,87,46,.18); border-radius: 14px; padding: 14px 16px; max-width: 620px; margin-top: 14px; }
.xach-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--orange); }

/* ---------- stack ---------- */
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.sgroup { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.sgroup > b { font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 100px; background: var(--blush); font-size: 13px; font-weight: 500; color: var(--ink); }
.chip img { width: 14px; height: 14px; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  .photo, .orb .g { animation: none; opacity: 1; transform: none; }
  .orb { animation: none !important; }
  .caret { display: none; }
}
