/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --paper: #fafdf7;
  --mint: #e4f3e1;
  --green: #1fa34a;
  --deep: #0b5b2c;
  --lime: #8be04e;
  --gold: #ffc928;
  --blue: #1c6dd0;
  --ink: #0e1a12;
  --muted: #4e6355;
  --danger: #b42318;

  --bw: 3px;
  --off: 6px;
  --shadow: var(--off) var(--off) 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);

  --f-pixel: "Silkscreen", "Courier New", monospace;
  --f-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Work Sans", "Segoe UI", system-ui, sans-serif;

  --maxw: 1200px;
  --gutter: max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
  --nav-h: 72px;

  --brick-wall: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%231FA34A'/%3E%3Cg fill='%2334BE5F' stroke='%230E1A12' stroke-width='2.5'%3E%3Ccircle cx='48' cy='24' r='13'/%3E%3Ccircle cx='0' cy='72' r='13'/%3E%3Ccircle cx='96' cy='72' r='13'/%3E%3C/g%3E%3Cpath d='M0 1.5H96M0 49.5H96M1.5 0V48M49.5 48V96' stroke='%230E1A12' stroke-width='3' fill='none'/%3E%3C/svg%3E");
  --shuriken-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24'%3E%3Cpath d='M12 0L15 9L24 12L15 15L12 24L9 15L0 12L9 9Z' fill='%23FFC928' fill-opacity='.85'/%3E%3C/svg%3E");
  --cage-bg: url("../assets/background/craftpix-net-823949-free-nature-backgrounds-pixel-art/nature_1/orig.png");

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 12px);
  -webkit-text-size-adjust: 100%;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(#cddfc9 1.3px, transparent 1.4px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
.ico {
  width: 1em;
  height: 1em;
  flex: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--gold);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  border: var(--bw) solid var(--ink);
  padding: 8px 14px;
  font-family: var(--f-pixel);
  text-decoration: none;
}
.skip:focus {
  top: calc(12px + env(safe-area-inset-top, 0px));
}

/* =========================================================
   BRICK PRIMITIVES
   ========================================================= */
.card {
  position: relative;
  background: #fff;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 22px;
}
.studs::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 18px;
  width: 78px;
  height: 8px;
  background: radial-gradient(ellipse 9px 8px at 50% 100%, var(--ink) 96%, transparent 100%) 0
    0/26px 8px repeat-x;
  pointer-events: none;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 13px 18px;
  background: var(--green);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn.dark {
  background: var(--deep);
  color: #fff;
}
.btn.gold {
  background: var(--gold);
}
.btn.lime {
  background: var(--lime);
}
.btn.ghost {
  background: #fff;
}
.btn.sm {
  font-size: 12px;
  padding: 9px 12px;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn.sm:hover {
  box-shadow: 5px 5px 0 var(--ink);
}
.btn.sm:active {
  box-shadow: 0 0 0 var(--ink);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn.studs::before {
  left: 14px;
  width: 52px;
  background-size: 26px 8px;
}

.tag {
  display: inline-block;
  font-family: var(--f-pixel);
  font-size: 11px;
  line-height: 1.3;
  background: var(--mint);
  border: 2px solid var(--ink);
  padding: 3px 7px;
}
.tag.gold {
  background: var(--gold);
}
.tag.green {
  background: var(--green);
}
.tag.deep {
  background: var(--deep);
  color: #fff;
}

.h-tag {
  display: inline-block;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  background: var(--gold);
  border: var(--bw) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 8px 18px;
}
.h-sub {
  display: inline-block;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  background: var(--mint);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 6px 14px;
}
.ttl {
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
}
.role {
  font-family: var(--f-pixel);
  font-size: 13px;
  line-height: 1.3;
  color: var(--deep);
  margin-top: 4px;
}
.muted {
  color: var(--muted);
}
.clamp2,
.clamp3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
}
.clamp2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.clamp3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.belt {
  position: relative;
  height: 26px;
  background: var(--green);
  border-block: var(--bw) solid var(--ink);
}
.belt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  border-top: 3px dashed var(--gold);
  transform: translateY(-50%);
}

/* reveal: brick build-in, only for card grids */
.js .rise {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
}
.js .rise.in {
  animation: build 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes build {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.pop {
  animation: pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: #fff;
  border-bottom: var(--bw) solid var(--ink);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
}
.logo {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--deep);
  text-decoration: none;
  white-space: nowrap;
}
.logo small {
  font-size: 9px;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 2px 4px;
  transform: translateY(-5px) rotate(3deg);
}
.links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.links a {
  display: block;
  font-family: var(--f-pixel);
  font-size: 13px;
  line-height: 1;
  padding: 10px 13px;
  text-decoration: none;
  border: var(--bw) solid transparent;
}
.links a:hover {
  background: var(--mint);
}
.links a[aria-current="true"] {
  background: var(--gold);
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.links .only-mobile {
  display: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.menu-btn svg {
  width: 22px;
  height: 22px;
}

/* marquee */
.marquee {
  background: var(--gold);
  border-bottom: var(--bw) solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
}
.track {
  display: inline-flex;
  animation: scroll 34s linear infinite;
}
.marquee:hover .track {
  animation-play-state: paused;
}
.track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding-block: 11px;
}
.track svg {
  width: 16px;
  height: 16px;
  color: var(--deep);
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-left: var(--gutter);
  background-color: var(--mint);
  background-image: radial-gradient(circle, #fff 0 8px, #c7ddc2 8px 10px, transparent 10.5px);
  background-size: 44px 44px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 650px;
}
.hero-text {
  position: relative;
  z-index: 2;
  padding: 64px 36px 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 26px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  background: var(--gold);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 8px 12px;
}
.status i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
}
.name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(44px, 6.2vw, 80px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.name span {
  display: block;
  color: var(--green);
  -webkit-text-stroke: 0;
}
.intro {
  max-width: 520px;
}
.intro p {
  font-size: 17px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stage-col {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 620px;
}
.stage-col::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--brick-wall);
  background-size: 96px 96px;
  clip-path: polygon(
    evenodd,
    0 0,
    100% 0,
    100% 100%,
    0 100%,
    0 0,
    16% 10%,
    38% 5%,
    62% 9%,
    84% 4%,
    92% 26%,
    86% 47%,
    94% 70%,
    84% 94%,
    60% 90%,
    36% 96%,
    14% 90%,
    8% 66%,
    14% 44%,
    6% 24%,
    16% 10%
  );
}
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 560px;
  touch-action: pan-y;
}
.swirl {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(420px, 88%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--green);
  opacity: 0.55;
  pointer-events: none;
}
.swirl svg {
  width: 100%;
  height: 100%;
  animation: spin 18s linear infinite;
}
.swirl svg .b {
  animation: spin 11s linear infinite reverse;
  transform-origin: 50% 50%;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.band {
  position: absolute;
  left: 50%;
  top: 0;
  width: 34px;
  height: 190px;
  z-index: 2;
  transform-origin: 50% 0;
  transform: translateX(-50%);
  background: var(--deep) var(--shuriken-tile) center 0/34px 34px repeat-y;
  border: var(--bw) solid var(--ink);
  pointer-events: none;
}
.band::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 2px dashed rgba(255, 201, 40, 0.7);
  transform: translateX(-50%);
}

.idcard {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: var(--cw, 232px);
  transform-origin: 50% 0;
  background: #fff;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow);
  padding: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.idcard.grabbing {
  cursor: grabbing;
}
.clip {
  position: absolute;
  left: 50%;
  top: -16px;
  width: 52px;
  height: 20px;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 4px 4px 0 0;
}
.clip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 22px;
  height: 5px;
  background: var(--gold);
  transform: translateX(-50%);
  border-radius: 3px;
}
.id-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--green);
  border-bottom: var(--bw) solid var(--ink);
  padding: 12px 10px 7px;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}
.id-head svg {
  width: 14px;
  height: 14px;
}
.id-photo {
  position: relative;
  margin: 10px 10px 0;
  aspect-ratio: 1/1.05;
  border: var(--bw) solid var(--ink);
  background: var(--mint);
  overflow: hidden;
}
.id-photo img,
.id-photo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.id-body {
  padding: 10px 12px 8px;
}
.id-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.id-name span {
  color: var(--deep);
}
.id-role {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--f-pixel);
  font-size: 10px;
  background: var(--gold);
  border: 2px solid var(--ink);
  padding: 2px 6px;
}
.id-bar {
  height: 20px;
  margin: 6px 12px 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 10px,
    var(--ink) 10px 13px,
    transparent 13px 15px
  );
}
/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 84px 0 20px;
}
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 40px;
}
.block {
  margin-top: 72px;
}
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.about-card h3 {
  font-family: var(--f-head);
  font-size: 22px;
  line-height: 1.2;
  color: var(--deep);
  margin-bottom: 14px;
}
.about-card p + p {
  margin-top: 12px;
}
.about-card p {
  font-size: 16px;
}

.item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.item-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.logo-tile {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  background: #fff;
  border: var(--bw) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--green);
}
.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.logo-tile svg {
  width: 34px;
  height: 26px;
}
.item .btn {
  align-self: flex-start;
  margin-top: auto;
}
.item .clamp3 {
  min-height: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 32px;
}
.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}
.more-row {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* certificates */
.cert {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cert-img {
  aspect-ratio: 16/10;
  border: var(--bw) solid var(--ink);
  background: var(--mint);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--green);
}
.cert-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cert-img svg {
  width: 56px;
  height: 56px;
}
.cert-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 2px solid var(--mint);
}
.cert-id {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

/* skills */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tab {
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  background: #fff;
  border: var(--bw) solid var(--ink);
  padding: 10px 13px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}
.tab:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.tab[aria-pressed="true"] {
  background: var(--gold);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.grid-skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.skill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  box-shadow: 5px 5px 0 var(--ink);
}
.skill.studs::before {
  left: 14px;
  width: 52px;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}
.skill:hover.studs::before {
  width: 104px;
  background:
    radial-gradient(
        ellipse 9px 8px at 13px 100%,
        var(--danger) 72%,
        var(--ink) 72% 90%,
        transparent 94%
      )
      0 0/104px 8px repeat-x,
    radial-gradient(
        ellipse 9px 8px at 39px 100%,
        var(--gold) 72%,
        var(--ink) 72% 90%,
        transparent 94%
      )
      0 0/104px 8px repeat-x,
    radial-gradient(
        ellipse 9px 8px at 65px 100%,
        var(--blue) 72%,
        var(--ink) 72% 90%,
        transparent 94%
      )
      0 0/104px 8px repeat-x,
    radial-gradient(
        ellipse 9px 8px at 91px 100%,
        var(--lime) 72%,
        var(--ink) 72% 90%,
        transparent 94%
      )
      0 0/104px 8px repeat-x;
}
.mono {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 15px;
  border: var(--bw) solid var(--ink);
}
.mono.t-green {
  background: var(--green);
}
.mono.t-gold {
  background: var(--gold);
}
.mono.t-mint {
  background: var(--mint);
}
.mono.t-deep {
  background: var(--deep);
  color: #fff;
}
.skill b {
  display: block;
  font-family: var(--f-pixel);
  font-size: 15px;
  margin-bottom: 4px;
}

/* github */
.gh-card {
  padding: 24px;
}
.gh-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.gh-total {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
}
.gh-total span {
  color: var(--deep);
}
.gh-src {
  font-size: 13px;
  color: var(--muted);
}
.cal-scroll {
  overflow-x: auto;
  padding: 6px 4px 10px;
}
.months {
  display: grid;
  grid-auto-columns: 14px;
  gap: 4px;
  height: 20px;
  font-family: var(--f-pixel);
  font-size: 10px;
  margin-bottom: 4px;
  min-width: max-content;
}
.months span {
  grid-row: 1;
  white-space: nowrap;
}
.cal {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 14px);
  grid-auto-columns: 14px;
  gap: 4px;
  min-width: max-content;
}
.cal i {
  display: block;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(14, 26, 18, 0.22);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 2.3px, transparent 2.8px);
}
.cal i.blank {
  visibility: hidden;
}
.lv0 {
  background-color: #e4f3e1;
}
.lv1 {
  background-color: #b5e68a;
}
.lv2 {
  background-color: #5cc45e;
}
.lv3 {
  background-color: #1fa34a;
}
.lv4 {
  background-color: #0b5b2c;
}
.cal i.lv0 {
  background-image: none;
}
.legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
.legend i {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(14, 26, 18, 0.22);
  display: block;
}
.gh-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.gh-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 34px;
}
.stat {
  padding: 16px 18px;
}
.stat strong {
  display: block;
  font-family: var(--f-head);
  font-size: 32px;
  line-height: 1.1;
}
.stat span {
  font-size: 14px;
  color: var(--muted);
}

/* projects */
.proj {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.cover {
  position: relative;
  aspect-ratio: 16/10;
  border-bottom: var(--bw) solid var(--ink);
  background: var(--mint);
  overflow: hidden;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.35s ease;
}
.proj:hover .cover img,
.proj:focus-within .cover img {
  filter: grayscale(0);
}
.cover.ph {
  display: grid;
  place-items: center;
  color: var(--green);
  background-color: var(--mint);
  background-image: radial-gradient(circle, #fff 0 7px, #c7ddc2 7px 9px, transparent 9.5px);
  background-size: 36px 36px;
}
.cover.ph svg {
  width: 96px;
  height: 66px;
  filter: drop-shadow(4px 4px 0 var(--ink));
}
.badge {
  position: absolute;
  left: 0;
  top: 14px;
  z-index: 2;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  padding: 7px 10px;
  border: var(--bw) solid var(--ink);
  border-left: 0;
  color: var(--ink);
  background: var(--green);
}
.badge.c-ux {
  background: var(--gold);
}
.badge.c-mobile {
  background: var(--lime);
}
.badge.c-ml,
.badge.c-iot {
  background: var(--deep);
  color: #fff;
}
.badge.c-other {
  background: #fff;
}
.badge.c-game {
  background: var(--danger);
}
.year {
  color: var(--ink);
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  font-family: var(--f-pixel);
  font-size: 11px;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 3px 7px;
}
.proj-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}
.empty {
  padding: 34px;
  text-align: center;
  grid-column: 1/-1;
}
.empty p {
  max-width: 44ch;
  margin: 8px auto 0;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 34px 0 20px;
}
.contact-title span {
  display: block;
  color: var(--green);
}
.contact-copy .lead {
  max-width: 44ch;
  font-size: 17px;
}
.socials {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}
.soc {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #fff;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 16px;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}
.soc svg {
  width: 24px;
  height: 24px;
}
.soc:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--gold);
}
.form {
  padding: 28px 26px;
  display: grid;
  gap: 18px;
}
.field label {
  display: block;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--mint);
  border: var(--bw) solid var(--ink);
  padding: 12px 14px;
  border-radius: 0;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #5f7566;
}
.field .err {
  display: none;
  color: var(--danger);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
}
.field.bad .err {
  display: block;
}
.field.bad input,
.field.bad textarea {
  border-color: var(--danger);
  box-shadow: 4px 4px 0 var(--danger);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status-msg {
  min-height: 24px;
  font-size: 15px;
  font-weight: 500;
}
.status-msg.ok {
  color: var(--deep);
}
.status-msg.fail {
  color: var(--danger);
}

/* footer */
.footer {
  margin-top: 96px;
  background: var(--deep);
  color: #fff;
  border-top: var(--bw) solid var(--ink);
}
.footer :focus-visible {
  outline-color: var(--gold);
  box-shadow: none;
}
.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px;
  padding-block: 44px;
}
.footer h2 {
  font-family: var(--f-pixel);
  font-size: 30px;
  line-height: 1.1;
}
.footer p {
  color: #cfe8d3;
  max-width: 44ch;
  margin-top: 8px;
}
.footer .socials {
  margin-top: 18px;
}
.footer .soc {
  background: var(--green);
  box-shadow: 3px 3px 0 var(--ink);
}
.foot-meta {
  text-align: right;
  font-size: 14px;
  color: #cfe8d3;
}
.foot-meta b {
  font-family: var(--f-pixel);
  color: #fff;
  font-size: 13px;
}

/* back to top */
.top-brick {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 64px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--gold);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  transform: translateY(90px);
  opacity: 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.top-brick::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 8px;
  width: 52px;
  height: 8px;
  background: radial-gradient(ellipse 9px 8px at 50% 100%, var(--ink) 96%, transparent 100%) 0
    0/26px 8px repeat-x;
}
.top-brick svg {
  width: 18px;
  height: 18px;
}
.top-brick.show {
  transform: none;
  opacity: 1;
}

/* modal */
dialog {
  padding: 0;
  border: var(--bw) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  background: #fff;
  color: var(--ink);
  width: min(760px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  overflow: hidden;
}
dialog[open] {
  animation: pop 0.2s ease-out both;
  display: flex;
  flex-direction: column;
}
dialog::backdrop {
  background: rgba(14, 26, 18, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.m-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--green);
  border-bottom: var(--bw) solid var(--ink);
  padding: 12px 14px 12px 20px;
}
.m-head h3 {
  font-family: var(--f-pixel);
  font-size: 17px;
  line-height: 1.25;
}
.m-close {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  background: #fff;
  border: var(--bw) solid var(--ink);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}
.m-close svg {
  width: 18px;
  height: 18px;
}
.m-body p {
  text-align: justify;
}
.m-body {
  padding: 24px;
  overflow: auto;
  display: grid;
  gap: 18px;
}
.m-body ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.m-body li {
  position: relative;
  padding-left: 26px;
}
.m-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.m-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m-shots {
  column-width: 200px;
  column-gap: 12px;
}
.m-shots img {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  border: var(--bw) solid var(--ink);
}
.m-hero {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border: var(--bw) solid var(--ink);
}
.m-hero.cover {
  aspect-ratio: 16/8;
}
.m-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.m-label {
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--deep);
}

/* showcase modal (education): gallery left, details right */
dialog.showcase {
  width: min(1080px, calc(100% - 32px));
  height: min(700px, calc(100vh - 40px));
  max-height: none;
}
.sc-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.sc-gallery {
  background: var(--ink);
  color: #fff;
  min-height: 0;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow-y: auto;
}
.sc-gallery :focus-visible {
  outline-color: #fff;
}
.sc-gtop {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}
.sc-count {
  flex: none;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 6px 9px;
  box-shadow: 3px 3px 0 var(--green);
}
.sc-short {
  min-width: 0;
  flex: 1;
  font-family: var(--f-pixel);
  font-size: 15px;
  color: #cfe8d3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-frame {
  position: relative;
  width: 100%;
  flex: none;
  height: clamp(240px, 42vh, 480px);
  background: #08110b;
  border: var(--bw) solid #2d4a37;
  overflow: hidden;
}
.sc-frame img,
.sc-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sc-frame img {
  object-fit: contain;
  object-position: center;
}
.sc-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
  color: var(--green);
  background-image: radial-gradient(circle, #16281c 0 7px, #254432 7px 9px, transparent 9.5px);
  background-size: 36px 36px;
}
.sc-ph svg {
  width: 88px;
  height: 60px;
  filter: drop-shadow(4px 4px 0 #000);
}
.sc-ph b {
  font-family: var(--f-pixel);
  font-size: 15px;
  color: #fff;
}
.sc-ph span {
  font-size: 14px;
  color: #a9c9b0;
}
.sc-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: none;
}
.sc-ctrl[hidden] {
  display: none;
}
.sc-btn {
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: 2px 2px 0 var(--green);
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease;
}
.sc-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--green);
}
.sc-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--green);
}
.sc-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: 2px 2px 0 var(--green);
}
.sc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 76px;
}
.sc-dots.off {
  display: none;
}
.sc-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
  background: #3b5a46;
  border: 2px solid #0a120d;
  cursor: pointer;
}
.sc-dot.on {
  width: 34px;
  border-radius: 8px;
  background: var(--gold);
}

.sc-details {
  min-height: 0;
  overflow: auto;
  background: #fff;
  padding: 26px 30px;
  font-size: 14px;
}
.sc-details > * + * {
  margin-top: 16px;
}
.sc-date {
  display: inline-block;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  background: var(--gold);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 6px 10px;
}
.sc-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.sc-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 10px;
}
.sc-sub b {
  font-family: var(--f-pixel);
  font-size: 14px;
  color: var(--deep);
}
.sc-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-pixel);
  font-size: 12px;
  color: var(--muted);
}
.sc-loc svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.sc-note {
  background: var(--mint);
  border-left: 6px solid var(--green);
  padding: 14px 16px;
  font-size: 14px;
}
.sc-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-pixel);
  font-weight: 700;
  font-size: 13px;
}
.sc-h svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex: none;
}
.sc-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.sc-list li {
  position: relative;
  padding-left: 28px;
}
.sc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 15px;
  height: 15px;
  background: var(--green);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.sc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 12px 24px;
  background: #fff;
  border-top: var(--bw) solid var(--ink);
}
.sc-foot span {
  min-width: 0;
  font-family: var(--f-pixel);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 860px) {
  dialog.showcase {
    height: calc(100vh - 32px);
  }
  .sc-main {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .sc-gallery {
    padding: 16px;
  }
  .sc-frame {
    flex: none;
    height: clamp(200px, 38vh, 320px);
  }
  .sc-details {
    overflow: visible;
    padding: 20px 18px 24px;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero {
    padding-left: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-text {
    padding: 52px 24px 30px;
  }
  .stage-col {
    min-height: 600px;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gh-stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .menu-btn {
    display: inline-flex;
  }
  .nav-right .btn {
    display: none;
  }
  .links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border-bottom: var(--bw) solid var(--ink);
    padding: 14px 24px 20px;
    display: none;
  }
  .links.open {
    display: flex;
  }
  .links a {
    padding: 14px;
  }
  .links .only-mobile {
    display: block;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 18px;
  }
  .section {
    padding-top: 64px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  .logo {
    font-size: 19px;
  }
  .h-tag {
    font-size: 22px;
  }
  .foot-meta {
    text-align: left;
  }
  .idcard {
    --cw: 208px;
  }
  .form {
    padding: 22px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .track,
  .swirl svg,
  .swirl svg .b {
    animation: none;
  }
  .js .rise {
    opacity: 1;
    transform: none;
  }
  .js .rise.in,
  .pop,
  dialog[open] {
    animation: none;
  }
  .btn,
  .tab,
  .soc,
  .cover img,
  .pet-bubble {
    transition: none;
  }
}

/* about extras: location line + counting stat boxes */
.about-grid {
  align-items: stretch;
}
.about-card {
  display: flex;
  flex-direction: column;
}
.about-loc {
  margin-top: auto;
  padding-top: 28px;
}
.about-loc-line {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: var(--bw) solid var(--ink);
  padding-top: 16px;
  font-family: var(--f-pixel);
  font-size: 14px;
  color: var(--deep);
}
.about-loc-line svg {
  width: 18px;
  height: 18px;
  flex: none;
}
#eduWrap {
  display: flex;
  flex-direction: column;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: auto;
  padding-top: 34px;
}
.kpi {
  padding: 24px 10px 16px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--ink);
  transition:
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}
.kpi.studs::before {
  left: 14px;
  width: 52px;
}
.kpi:hover {
  box-shadow: 8px 8px 0 var(--ink);
  background-color: var(--mint);
}
.kpi-num {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi-num .sx {
  color: var(--green);
}
.kpi-lbl {
  margin-top: 10px;
  font-family: var(--f-pixel);
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .about-stats {
    padding-top: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kpi {
    transition: none;
  }
}

/* project details: sub-heading spacing + divider before links */
.sc-h + * {
  margin-top: 12px;
}
.sc-rule {
  border: 0;
  border-top: var(--bw) solid var(--ink);
}
.pd {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-wrap: break-word;
}
.pd-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.pd-year {
  margin-bottom: 8px;
  padding: 4px 12px;
  font: 700 18px/1 var(--f-pixel);
  color: var(--ink);
  background: var(--gold);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
}
.pd-title {
  margin: 0;
  font: 700 clamp(28px, 4vw, 40px)/1.1 var(--f-head);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.pd-cat {
  margin: 0;
  font: 700 20px/1.2 var(--f-pixel);
  color: var(--deep);
}
.pd-lede {
  margin: 0;
  padding: 16px 24px;
  font: 400 16px/1.7 var(--f-body);
  color: var(--ink);
  background: var(--mint);
  border-left: var(--off) solid var(--green);
}
.pd-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-rule {
  padding-top: 24px;
  border-top: 2px solid var(--mint);
}
.pd-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 700 clamp(16px, 2.4vw, 20px)/1.2 var(--f-pixel);
  text-transform: uppercase;
  color: var(--deep);
}
.pd-h svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--green);
}
.pd-p {
  margin: 0;
  font: 400 16px/1.7 var(--f-body);
  color: var(--ink);
}
.pd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pd-list li {
  position: relative;
  padding-left: 24px;
  font: 400 16px/1.7 var(--f-body);
  color: var(--ink);
}
.pd-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 12px;
  height: 12px;
  background: var(--green);
  border: 2px solid var(--ink);
}
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-tags .tag {
  padding: 8px 16px;
  font-size: 14px;
}
.pd-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: var(--bw) solid var(--ink);
}
.pd-links svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* card hover: gentle photo zoom (project covers + certificate images) */
.cover,
.cert-img {
  overflow: hidden;
}
.cover img,
.cert-img img {
  transition: transform 0.3s ease;
}
@media (hover: hover) {
  .proj:hover .cover img,
  .cert:hover .cert-img img {
    transform: scale(1.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cover img,
  .cert-img img {
    transition: none;
  }
  .proj:hover .cover img,
  .cert:hover .cert-img img {
    transform: none;
  }
}

/* skills: logo tiles */
.mono {
  width: 56px;
  height: 56px;
}
.mono.has-logo {
  background: #fff;
}
.mono img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.2s ease;
}
.skill:hover .mono img {
  transform: translatey(-4px);
}

.proj-actions .btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.m-links svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* showcase: neutral close button (white, not green) */
.sc-foot .btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* skills hover: lift + tilt + studs.
   The card uses `translate` (not `transform`) so the .rise build animation can't override it. */
.skill {
  transition:
    translate 0.14s ease,
    box-shadow 0.14s ease;
}
.skill.studs::before {
  transition: width 0.2s ease;
}
.skill .mono {
  transition:
    transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1),
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}
@media (hover: hover) {
  .skill:hover {
    translate: -2px -2px;
    box-shadow: 8px 8px 0 var(--ink);
  }
  .skill.studs:hover::before {
    width: 104px;
  }
  .skill:hover .mono {
    /* transform: rotate(-8deg) scale(1.08); */
    box-shadow: 3px 3px 0 var(--ink);
    background: var(--mint);
  }
}
@media (prefers-reduced-motion: reduce) {
  .skill,
  .skill.studs::before,
  .skill .mono {
    transition: none;
  }
  .skill:hover .mono {
    transform: none;
  }
}

.cert-foot .btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Certifications: glare sweep sa image, trigger sa hover ng buong card */
.cert-img {
  position: relative;
}
.cert-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    hsla(0, 0%, 100%, 0) 45%,
    hsla(0, 0%, 100%, 0.5) 50%,
    hsla(0, 0%, 100%, 0) 55%
  );
  background-size: 250% 250%;
  background-position: -150% -150%;
  transition: background-position 1.3s ease-in-out;
}
.cert:hover .cert-img::after {
  background-position: 150% 150%;
}
@media (prefers-reduced-motion: reduce) {
  .cert-img::after {
    transition: none;
  }
}

.m-shots img {
  cursor: pointer;
  transition:
    rotate 0.2s ease,
    translate 0.2s ease,
    box-shadow 0.2s ease;
}
.m-shots img:nth-child(odd):hover {
  position: relative;
  z-index: 2;
  rotate: -3deg;
  translate: 0 -3px;
  box-shadow: 5px 5px 0 var(--gold);
}
.m-shots img:nth-child(even):hover {
  position: relative;
  z-index: 2;
  rotate: 3deg;
  translate: 0 -3px;
  box-shadow: 5px 5px 0 var(--gold);
}
dialog.imgview[open] {
  box-shadow: none;
  position: fixed;
  box-sizing: border-box;
  width: fit-content;
  height: fit-content;
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.imgview img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(min(90vw, 1000px) - 32px);
  max-height: calc(90vh - 32px);
  object-fit: contain;
}
/* =========================================================
   PET LANE: Yoshi wanders inside the card (JS-driven, random actions — see startPets() in script.js).
   Background is the nature_1 pixel-art scene (assets/background/.../nature_1/orig.png).
   ========================================================= */
.pet-lane {
  position: relative;
  height: 80px;
  overflow: hidden;
  background: var(--cage-bg) center bottom / cover no-repeat, var(--mint);
  image-rendering: pixelated;
  border: var(--bw) solid var(--ink);
  box-shadow: inset 0 -3px 0 var(--deep);
}
.pet-lane.still {
  height: 56px;
}
.pet-track {
  position: absolute;
  inset: 0;
}
.pet {
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-drag: none;
  visibility: hidden; /* runPet() reveals it once positioned, so it doesn't flash at 0,0 first */
}
.pet-lane.still .pet {
  position: static;
  display: block;
  margin: 4px auto 0;
}
.pet-lane.bubble-open,
.pet-lane.still:hover {
  overflow: visible;
}

.pet-bubble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: max-content;
  max-width: 150px;
  padding: 8px 10px;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--f-pixel);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px)) scale(0.85);
  transform-origin: 50% 100%;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.pet-lane.still .pet-bubble {
  left: 50%;
  top: 4px;
}
.pet-bubble::before,
.pet-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}
.pet-bubble::after {
  bottom: -8px;
  border-top: 8px solid var(--ink);
}
.pet-bubble::before {
  bottom: -5px;
  z-index: 1;
  border-left-width: 5px;
  border-right-width: 5px;
  border-top: 6px solid #fff;
}
.pet-bubble.show,
.pet-lane.still:hover .pet-bubble {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 14px)) scale(1);
}

/* =========================================================
   CAGE CARD: landscape experience card, the whole thing is one enclosure.
   Content sits in .cage-top; .pet-lane / .pet-lane.empty is the floor at the
   bottom where the pet actually walks. Studs are centered instead of the usual left offset.
   ========================================================= */
.cage {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cage.studs::before {
  left: 50%;
  margin-left: -39px; /* half of the 78px stud row — keeps it centered at any card width */
}
.cage-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cage-top .btn {
  align-self: flex-start;
}

/* Empty state: no real experience yet, so the whole card is one big roaming cage with a
   "wanted" poster pinned near the top instead of the usual text content. */
.cage-empty {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  display: block; /* cancel .cage's flex-column: poster + floor are both full-bleed layers */
}
.cage-empty .pet-lane.big {
  position: absolute;
  inset: 0;
  height: auto;
  border: none;
  box-shadow: none;
}
.cage-poster {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 2;
  width: 210px;
  padding: 16px 14px 13px;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transform: translateX(-50%) rotate(-2deg);
}
.cage-poster-pin {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--danger);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}
.cage-poster b {
  display: block;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.cage-poster small {
  display: block;
  margin-top: 7px;
  font-family: var(--f-pixel);
  font-size: 10px;
  color: var(--muted);
}

.imgview .m-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  box-shadow: none;
}
