/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #ffffff;
  --off-white:  #fafaf8;
  --cream:      #F5E6C8;
  --cream-soft: #fdf6ea;
  --gray-50:    #f7f7f5;
  --gray-100:   #efefec;
  --gray-200:   #e0e0d8;
  --gray-300:   #c8c8be;
  --gray-400:   #a0a094;
  --gray-500:   #72726a;
  --gray-700:   #3a3a32;
  --black:      #111110;

  --shiba-orange:  #E8854A;
  --shiba-dark:    #c96b28;
  --shiba-light:   #F5E6C8;
  --shiba-cream:   #fdf0dc;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  --max-w:       1120px;
  --nav-h:       64px;
  --section-pad: clamp(80px, 10vw, 140px);
}

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── Utility ───────────────────────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  color: var(--shiba-orange);
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
}
.btn-primary:hover {
  background: var(--shiba-orange);
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 8px 24px rgba(232,133,74,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s, color 0.2s, transform 0.18s;
}
.btn-secondary:hover {
  border-color: var(--shiba-orange);
  color: var(--shiba-orange);
  transform: translateY(-2px) rotate(1deg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: var(--shiba-orange);
  color: var(--shiba-orange);
  background: var(--shiba-cream);
}

/* ─── Nav ────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 60px);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--gray-100); }

.nav-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--shiba-orange); }

.shiba-icon {
  image-rendering: pixelated;
  width: 28px;
  height: 28px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.3s;
}
.nav-logo:hover .shiba-icon {
  transform: rotate(-15deg) scale(1.15);
}

.shiba-burst-img {
  image-rendering: pixelated;
  width: 96px;
  height: 96px;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 4px;
  /* extra: strip white via CSS filter on near-white pixels */
  filter: contrast(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--shiba-orange);
  border-radius: 2px;
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after { width: 100%; }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;      /* fallback：舊瀏覽器 */
  min-height: 100svh;     /* 行動裝置上排除瀏覽器 UI 的實際可視高度 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 5vw, 64px);
  padding-top: var(--nav-h);
  position: relative;
  overflow: visible;
}


/* warm radial centred on name */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 52%, var(--shiba-cream) 0%, transparent 68%);
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

/* ── Top bar ── */
.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 0;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 0.6s 0.1s forwards;
}
.hero-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  padding: 5px 14px;
  border-radius: 100px;
}

/* tight hover zone — wraps only the two text elements */
.hero-text-zone {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
  padding: 8px 24px;
  /* center itself within hero-center */
  align-self: center;
}

/* ── Centre stage ── */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
  gap: 0;
  padding: clamp(32px, 4vh, 60px) 0;
  cursor: default;
}

.hero-greeting {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  font-style: italic;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.15em;
  opacity: 0;
  animation: fadeUp 0.5s 0.25s forwards;
}

/* inline shiba next to name — static, tilts when parent is hovered */
.hero-inline-shiba {
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px 0 4px;
  image-rendering: pixelated;
  mix-blend-mode: multiply;
  position: relative;
  top: -3px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
}
/* tilt when the whole burst zone is hovered */
#burstTrigger:hover .hero-inline-shiba {
  transform: rotate(-15deg) scale(1.15);
}

/* inline name — static, no interaction */
.hero-name {
  color: var(--black);
  cursor: default;
  white-space: nowrap;
}

/* hoverable burst trigger */
.hero-title-burst {
  cursor: default;
  display: inline;
  transition: color 0.2s;
}
.hero-title-burst:hover { color: var(--shiba-orange); }
.hero-title-burst .scramble { display: inline; }
.hero-title-burst .scramble.is-scrambling { color: var(--shiba-orange); }

/* location line below main title */
.hero-location {
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--gray-400);
  margin-top: 20px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 0.6s 0.55s forwards;
}

/* ── The main statement ── */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--black);
  font-style: normal;
  text-align: center;
  cursor: default;
  position: relative;
  margin: 0 0 0.3em;
  opacity: 0;
  animation: fadeUp 0.75s 0.35s forwards;
}

/* name word wrapper */
.name-word {
  display: inline-flex;
  align-items: baseline;
  cursor: default;
  white-space: nowrap;
}

/* scramble */
.scramble {
  display: inline;
  transition: color 0.1s;
  color: inherit;
}
.scramble.is-scrambling { color: var(--shiba-orange); }

/* ── Bottom bar ── */
.hero-bottombar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--gray-100);
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.6s 0.65s forwards;
}

.hero-sub {
  font-size: clamp(12px, 1.1vw, 14px);
  color: var(--gray-500);
  line-height: 1.8;
  font-weight: 300;
  max-width: 380px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* scroll hint in bottom bar */
.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.hero-scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-300);
}
.scroll-line {
  width: 32px;
  height: 1px;
  background: var(--gray-200);
}

/* ─── Doge speech bubbles ─────────────────────────────────────────────────── */
.doge-bubble {
  position: absolute;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  color: var(--shiba-orange);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.doge-bubble--1 {
  bottom: 120px; right: 260px;
  font-size: 14px;
  animation:
    dogeFloat 0.7s 1.2s forwards,
    dogeDrift1 3s 1.9s ease-in-out infinite;
}
.doge-bubble--2 {
  bottom: 80px; right: 140px;
  font-size: 12px;
  color: var(--gray-400);
  animation:
    dogeFloat 0.7s 1.5s forwards,
    dogeDrift2 3.5s 2.2s ease-in-out infinite;
}
.doge-bubble--3 {
  bottom: 140px; right: 80px;
  font-size: 18px;
  font-weight: 700;
  animation:
    dogeFloat 0.7s 1.8s forwards,
    dogeDrift3 2.8s 2.5s ease-in-out infinite;
}

/* ─── Japan burst (hover triggered) ─────────────────────────────────────── */
.jp-burst {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}


/* each item — anchored to origin via left/top=--ox/--oy, then translated outward */
.jp-item {
  position: absolute;
  left: var(--ox, 50%);
  top: var(--oy, 48%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.15) rotate(0deg);
  transition:
    opacity 0.3s ease,
    transform 0.55s cubic-bezier(0.34, 1.6, 0.64, 1);
  image-rendering: pixelated;
}
.jp-burst.active .jp-item { opacity: 1; }

/* exit: no delay so everything disappears together */
.jp-item--tower, .jp-item--torii, .jp-item--ramen,
.jp-item--fuji, .jp-item--flag, .jp-item--shiba,
.jp-item--sakura, .jp-item--shinkansen, .jp-item--label { transition-delay: 0s; }

/* entrance delays only when burst is active */
.jp-burst.active .jp-item--tower      { transition-delay: 0.03s; }
.jp-burst.active .jp-item--torii      { transition-delay: 0.07s; }
.jp-burst.active .jp-item--ramen      { transition-delay: 0.05s; }
.jp-burst.active .jp-item--fuji       { transition-delay: 0.09s; }
.jp-burst.active .jp-item--flag       { transition-delay: 0.02s; }
.jp-burst.active .jp-item--shiba      { transition-delay: 0.00s; }
.jp-burst.active .jp-item--sakura     { transition-delay: 0.06s; }
.jp-burst.active .jp-item--shinkansen { transition-delay: 0.10s; }
.jp-burst.active .jp-item--label      { transition-delay: 0.14s; }

/* fly-out */
/* shiba & flag: tight around name row (~-100px above center) */
.jp-burst.active .jp-item--shiba      { transform: translate(calc(-50% - 90px),  calc(-50% - 165px)) scale(0.95) rotate(-4deg); }
.jp-burst.active .jp-item--flag       { transform: translate(calc(-50% + 140px), calc(-50% - 158px)) scale(0.85) rotate(6deg); }
/* mid distance — balanced left/right */
.jp-burst.active .jp-item--sakura     { transform: translate(calc(-50% - 310px), calc(-50% - 140px)) scale(0.85) rotate(12deg); }
.jp-burst.active .jp-item--torii      { transform: translate(calc(-50% - 460px), calc(-50% - 30px))  scale(0.85) rotate(-5deg); }
.jp-burst.active .jp-item--fuji       { transform: translate(calc(-50% - 440px), calc(-50% + 110px)) scale(0.8)  rotate(2deg); }
.jp-burst.active .jp-item--shinkansen { transform: translate(calc(-50% - 260px), calc(-50% + 170px)) scale(0.85) rotate(-3deg); }
.jp-burst.active .jp-item--tower      { transform: translate(calc(-50% + 460px), calc(-50% - 60px))  scale(0.85) rotate(6deg); }
.jp-burst.active .jp-item--ramen      { transform: translate(calc(-50% + 420px), calc(-50% + 130px)) scale(0.8)  rotate(7deg); }
/* label: below "partner with AI." with comfortable gap */
.jp-burst.active .jp-item--label  {
  transform: translate(calc(-50% + 10px), calc(-50% + 165px)) scale(1);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--shiba-orange);
}

/* ─── Hero shiba (removed — now inside burst) ────────────────────────────── */
.hero-shiba {
  display: none;
  position: absolute;
  right: clamp(20px, 4vw, 60px);
  bottom: 270px;
  opacity: 0;
  animation: shibaBounceIn 0.8s 0.9s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.shiba-big {
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 24px rgba(232,133,74,0.25));
}
.shiba-tail {
  transform-origin: 25px 21px;
  animation: wagTail 1.2s 1.8s ease-in-out infinite alternate;
}

/* ─── Hero scroll hint ───────────────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}

.hero-scroll-hint span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-300);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
}

/* Mutes the kakegoe hover sound effect on "oug" in the hero name */
.hero-sound-toggle {
  position: absolute;
  top: calc(var(--nav-h) + 24px);
  right: clamp(20px, 5vw, 60px);
  z-index: 5;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.hero-sound-toggle:hover {
  color: var(--shiba-orange);
  border-color: var(--shiba-orange);
}
.hero-sound-toggle svg { width: 16px; height: 16px; }
.hero-sound-toggle svg[hidden] { display: none; }

/* ─── Sections ───────────────────────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  max-width: calc(var(--max-w) + clamp(40px, 10vw, 120px));
  margin: 0 auto;
}

.section--alt {
  background: var(--cream-soft);
  max-width: none;
  margin: 0;
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
}
.section--alt > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-header { margin-bottom: 56px; }

/* ─── Sticky Timeline Bar ───────────────────────────────────────────────────── */
.tl-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s;
}
.tl-bar.is-stuck {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.tl-bar__inner {
  max-width: calc(var(--max-w) + clamp(40px, 10vw, 120px));
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.tl-bar__label {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--gray-400);
  white-space: nowrap;
  flex-shrink: 0;
}

.tl-bar__track {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  gap: 0;
}

/* connecting line */
.tl-bar__line {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--gray-100);
  top: 18px;
  z-index: 0;
  border-radius: 2px;
}

/* progress fill */
.tl-bar__line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--tl-progress, 0%);
  background: linear-gradient(to right, var(--shiba-orange), #f5a55a);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.34,1.2,0.64,1);
}

/* shiba runner on the line */
.tl-shiba {
  position: absolute;
  top: 2px;
  left: var(--tl-progress, 0%);
  transform: translateX(-50%) translateY(-50%);
  z-index: 3;
  transition: left 0.5s cubic-bezier(0.34,1.2,0.64,1);
  filter: drop-shadow(0 2px 6px rgba(232,133,74,0.3));
  pointer-events: none;
}
.tl-shiba img {
  display: block;
  mix-blend-mode: multiply;
}

/* each node */
.tl-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: color 0.2s;
  padding-top: 4px;
}

.tl-node__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-200);
  transition: background 0.3s, border-color 0.3s, transform 0.25s cubic-bezier(0.34,1.6,0.64,1);
  box-shadow: 0 0 0 3px var(--white);
}

.tl-node__year {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.tl-node__title {
  font-size: 11px;
  color: var(--gray-300);
  white-space: nowrap;
  transition: color 0.2s;
}

/* active / visited state */
.tl-node.is-active .tl-node__dot,
.tl-node.is-visited .tl-node__dot {
  background: var(--shiba-orange);
  border-color: var(--shiba-orange);
}
.tl-node.is-active .tl-node__dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 4px rgba(232,133,74,0.15);
}
.tl-node.is-active .tl-node__year  { color: var(--shiba-orange); font-weight: 700; }
.tl-node.is-visited .tl-node__year { color: var(--shiba-orange); }
.tl-node.is-active .tl-node__title  { color: var(--shiba-orange); }
.tl-node.is-visited .tl-node__title { color: var(--gray-500); }

/* wip node */
.tl-node--wip .tl-node__dot { border-style: dashed; }

/* hover */
.tl-node:hover .tl-node__dot  { border-color: var(--shiba-orange); transform: scale(1.2); }
.tl-node:hover .tl-node__year { color: var(--black); }

/* ─── Horizontal Journey ─────────────────────────────────────────────────────── */
.hj-section {
  padding: 48px 0 80px;
}

/* scrollable track */
.hj-track-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 40px;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 94%, transparent 100%);
}
.hj-track-wrap::-webkit-scrollbar { display: none; }

.hj-track {
  display: flex;
  gap: 20px;
  padding: 0 clamp(20px, 5vw, 60px);
  width: max-content;
  align-items: stretch;
  /* horizontal line through card tops */
  position: relative;
}
.hj-track::before {
  content: '';
  position: absolute;
  top: 52px;
  left: clamp(20px, 5vw, 60px);
  right: clamp(20px, 5vw, 60px);
  height: 1px;
  background: var(--gray-200);
  z-index: 0;
}

/* each card */
.hj-card {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.3s;
}
.hj-card:not(.hj-card--wip):hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(232,133,74,0.12), 0 4px 12px rgba(0,0,0,0.05);
}
.hj-card:not(.hj-card--wip):hover .hj-card__title { color: var(--shiba-orange); }
.hj-card--wip { opacity: 0.6; cursor: default; }

/* year + question */
.hj-card__top {
  padding: 24px 24px 16px;
  background: var(--card-bg, var(--gray-50));
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
/* dot on the timeline */
.hj-card__top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 2px solid var(--white);
  outline: 1px solid var(--gray-300);
  transform: translateY(-50%);
}
.hj-card--wip .hj-card__top::before {
  background: var(--shiba-orange);
  outline-color: var(--shiba-orange);
  box-shadow: 0 0 0 4px rgba(232,133,74,0.15);
}

.hj-year {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--gray-400);
  line-height: 1;
}

.hj-question {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}
.hj-question em {
  font-style: italic;
  color: var(--black);
  font-family: var(--font-serif);
}

/* image area */
.hj-card__image {
  height: 180px;
  background: var(--card-bg, var(--gray-50));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* info area */
.hj-card__bottom {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.hj-card__title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1.3;
  transition: color 0.2s;
}

.hj-card__desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}

/* ─── Work Timeline (Ben Shih–inspired) ───────────────────────────────────────── */
.section--journey {
  max-width: calc(var(--max-w) + clamp(40px, 10vw, 120px));
  margin: 0 auto;
}
/* ─── Work Grid — single column, one project per row ─────────────────────────── */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.3s, border-color 0.3s;
}
.work-card:not(.work-card--wip):hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(232,133,74,0.12), 0 4px 12px rgba(0,0,0,0.05);
  border-color: var(--gray-200);
}
.work-card--wip { opacity: 0.65; cursor: default; }

/* 圖片區：外框固定，圖片在內部縮放（和 lab-card 一致的手感） */
.work-card__media {
  overflow: hidden;
  background: var(--gray-50);
  border-right: 1px solid var(--gray-100);
}
.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:not(.work-card--wip):hover .work-card__img { transform: scale(1.04); }

.work-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 1px dashed var(--gray-300);
  box-sizing: border-box;
}

/* WIP 卡片沿用 journey-card 的假瀏覽器畫面 */
.work-card__media .journey-card__screen {
  height: 100%;
  aspect-ratio: unset;
  border-right: none;
}

.work-card__info {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.work-card__year {
  font-size: 12px;
  color: var(--gray-300);
  letter-spacing: 0.02em;
}
/* Tags wrap freely — built to hold more than one or two without crowding the year */
.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 2px;
}
.work-card__title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color 0.2s;
}
.work-card:not(.work-card--wip):hover .work-card__title { color: var(--shiba-orange); }
.work-card__desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 480px;
}
.work-card__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-top: 4px;
  transition: color 0.2s;
}
.work-card:not(.work-card--wip):hover .work-card__link { color: var(--shiba-orange); }
.work-card__link--wip { color: var(--shiba-orange); }

@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
}


.work-timeline {
  position: relative;
  padding-bottom: 40px;
}

.work-timeline__track {
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  z-index: 0;
  pointer-events: none;
}

.work-timeline__line {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--gray-200) 8%,
    var(--gray-200) 92%,
    transparent 100%
  );
}

.work-timeline__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    to bottom,
    var(--shiba-orange),
    rgba(232, 133, 74, 0.45),
    transparent
  );
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-year-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 32px;
  position: relative;
  z-index: 1;
}

.work-year-grid + .work-year-grid {
  margin-top: clamp(48px, 8vw, 96px);
}

.work-year-meta {
  grid-column: 1;
  grid-row: 1;
  display: none;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: calc(var(--nav-h) + 48px);
  align-self: start;
  padding-top: 12px;
  z-index: 2;
}

.work-year-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.work-year-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background 0.25s ease, transform 0.25s ease;
}

.work-year-dot.is-active {
  border-color: var(--shiba-orange);
  box-shadow: 0 0 0 4px rgba(232, 133, 74, 0.12);
}

.work-year-dot.is-active::after {
  background: var(--shiba-orange);
  transform: scale(1.1);
}

.work-year-label {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.18);
  transition: color 0.3s ease;
}

.work-year-meta.is-active .work-year-label {
  color: rgba(0, 0, 0, 0.32);
}

.work-entry {
  grid-column: 1 / -1;
  grid-row: 1;
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 8px 0 16px;
  border-radius: 16px;
  transition: background 0.25s ease;
}

.work-entry:not(.work-entry--wip) {
  cursor: pointer;
}

/* No tint, no colour shift — the image itself responds to hover */

.work-entry--wip {
  opacity: 0.72;
  cursor: default;
}

.work-entry__question {
  font-size: clamp(13px, 1.2vw, 16px);
  color: var(--gray-500);
  line-height: 1.4;
  margin-bottom: 20px;
  padding-left: 2px;
}

.work-entry__question em {
  font-style: italic;
  color: var(--black);
  font-family: var(--font-serif);
}

.work-entry__body {
  display: flex;
  flex-direction: column;
  /* Children size to their content instead of stretching the full column */
  align-items: flex-start;
  gap: 12px;
  padding: 4px 8px 12px;
}
/* The media block should still span the full width */
.work-entry__body > .work-entry__media { align-self: stretch; }

.work-entry__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--black);
  transition: color 0.2s ease;
}

.work-entry__desc {
  max-width: 560px;
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--gray-500);
  line-height: 1.65;
}

/* Apple-style: the frame stays put and the content scales inside it */
.work-entry__media {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.4s ease;
}

.work-entry__media > * {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-entry__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--gray-50);
}

.work-entry:not(.work-entry--wip):hover .work-entry__media {
  box-shadow: 0 16px 48px rgba(17, 17, 16, 0.12), 0 4px 12px rgba(17, 17, 16, 0.06);
}
.work-entry:not(.work-entry--wip):hover .work-entry__media > * {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .work-entry__media > * { transition: none; }
  .work-entry:not(.work-entry--wip):hover .work-entry__media > * { transform: none; }
}

.work-entry__media .journey-card__screen {
  aspect-ratio: 16 / 10;
  border-right: none;
}

.work-entry .project-link {
  align-self: flex-start;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .work-year-meta {
    display: flex;
  }

  .work-entry {
    grid-column: 2;
    padding-left: 0;
  }

  .work-entry__question {
    display: none;
  }

  .work-timeline__track {
    left: 11px;
  }
}

@media (max-width: 767px) {
  .work-timeline__track {
    display: none;
  }

  .work-entry::before {
    content: attr(data-year);
    display: block;
    font-family: var(--font-serif);
    font-size: 22px;
    color: rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
  }
}

/* ── Screen mockup ── */
.journey-card__screen {
  aspect-ratio: 4/3;
  background: var(--gray-50);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--gray-100);
}

/* browser chrome bar */
.jc-bar {
  height: 28px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  flex-shrink: 0;
}
.jc-bar__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gray-300);
}
.jc-bar__url {
  margin-left: 8px;
  font-size: 9px;
  color: var(--gray-400);
  letter-spacing: 0.02em;
  background: var(--white);
  padding: 2px 10px;
  border-radius: 4px;
  flex: 1;
}

/* body layouts */
.jc-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* shared sidebar */
.jc-sidebar {
  width: 36px;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 8px;
  flex-shrink: 0;
}
.jc-nav-item {
  height: 8px;
  border-radius: 4px;
  background: var(--gray-200);
}
.jc-nav-item--active { background: var(--shiba-orange); opacity: 0.7; }

/* annotation tool */
.jc-body--annotate .jc-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jc-label-row { display: flex; gap: 5px; }
.jc-chip {
  font-size: 8px;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-weight: 500;
}
.jc-chip--orange { background: var(--shiba-cream); color: var(--shiba-orange); }
.jc-text-block { display: flex; flex-direction: column; gap: 5px; flex: 1; padding: 8px; background: var(--white); border-radius: 6px; border: 1px solid var(--gray-100); }
.jc-text-line { height: 6px; border-radius: 3px; background: var(--gray-100); }
.jc-text-line--lg { width: 85%; }
.jc-text-line--md { width: 60%; }
.jc-text-line--sm { width: 40%; }
.jc-text-line--highlight { background: rgba(232,133,74,0.25); }
.jc-tag-row { display: flex; gap: 5px; margin-top: 4px; }
.jc-tag { font-size: 8px; padding: 2px 7px; border-radius: 4px; background: var(--gray-100); color: var(--gray-400); }
.jc-tag--active { background: #e8f5e8; color: #3a8a3a; }
.jc-panel {
  width: 80px;
  background: var(--white);
  border-left: 1px solid var(--gray-100);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.jc-panel__title { height: 8px; background: var(--gray-200); border-radius: 3px; width: 70%; }
.jc-panel__row { height: 6px; background: var(--gray-100); border-radius: 3px; }
.jc-panel__row--sm { width: 60%; }

/* chat interface */
.jc-body--chat { gap: 0; }
.jc-chat-sidebar {
  width: 60px;
  background: var(--gray-50);
  border-right: 1px solid var(--gray-100);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.jc-chat-item { height: 28px; border-radius: 6px; background: var(--gray-100); }
.jc-chat-item--active { background: var(--shiba-cream); }
.jc-chat-main {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
}
.jc-msg { display: flex; gap: 6px; align-items: flex-start; }
.jc-msg--user { flex-direction: row-reverse; }
.jc-msg__avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--shiba-orange); opacity: 0.5; flex-shrink: 0; }
.jc-msg__bubble {
  background: var(--gray-50);
  border-radius: 0 8px 8px 8px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 75%;
  border: 1px solid var(--gray-100);
}
.jc-msg__bubble--user {
  background: var(--black);
  border-radius: 8px 8px 0 8px;
  border-color: transparent;
}
.jc-msg__line { height: 5px; border-radius: 3px; background: var(--gray-200); }
.jc-msg__bubble--user .jc-msg__line { background: rgba(255,255,255,0.3); }
.jc-msg__line--lg { width: 90%; }
.jc-msg__line--md { width: 65%; }
.jc-msg__line--sm { width: 45%; }
.jc-input-bar {
  margin-top: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.jc-input-bar__field { flex: 1; height: 22px; border-radius: 11px; background: var(--gray-100); border: 1px solid var(--gray-200); }
.jc-input-bar__btn { width: 22px; height: 22px; border-radius: 50%; background: var(--shiba-orange); flex-shrink: 0; }

/* workspace / buddies */
.jc-body--workspace {
  position: relative;
}
.jc-body--workspace .jc-main {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jc-kanban { display: flex; gap: 6px; flex: 1; }
.jc-col { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.jc-col__head { height: 10px; background: var(--gray-200); border-radius: 4px; }
.jc-card-mini { height: 32px; background: var(--white); border: 1px solid var(--gray-100); border-radius: 6px; }
.jc-card-mini--active { border-color: var(--shiba-orange); border-width: 1.5px; }
.jc-buddy {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.jc-buddy__avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--shiba-orange); opacity: 0.8; flex-shrink: 0; }
.jc-buddy__bubble { background: var(--white); border: 1px solid var(--gray-100); border-radius: 8px 8px 0 8px; padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; }
.jc-buddy__line { height: 5px; border-radius: 3px; background: var(--gray-200); width: 60px; }
.jc-buddy__line--sm { width: 40px; }

/* wip screen */
.jc-screen--wip { background: var(--gray-50); }
.jc-body--wip { align-items: center; justify-content: center; }
.jc-wip-center { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.jc-wip-icon { font-size: 24px; color: var(--shiba-orange); opacity: 0.4; }
.jc-wip-lines { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.jc-wip-line { height: 6px; width: 80px; background: var(--gray-200); border-radius: 3px; }
.jc-wip-line--sm { width: 50px; }

/* info panel */
.journey-card__info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.journey-card__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--black);
  transition: color 0.2s;
}
.journey-card__desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.65;
}
.journey-wip-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--shiba-orange);
  letter-spacing: 0.04em;
}

/* ─── Section intro (shared) ─────────────────────────────────────────────────── */
.section-intro {
  margin-top: 18px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-500);
}

/* ─── Lab (demos + writing) — featured-stage gallery ─────────────────────────── */
/* One big preview stage; the row of thumbnails below swaps what's showing.
   Pattern referenced from benshih.design's "I build apps" section. */
.lab-gallery {
  max-width: var(--max-w);
  margin: 0 auto;
}

.lab-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: #0a0a0c;
  cursor: pointer;
}

.lab-stage__media {
  position: absolute;
  inset: 0;
}
.lab-stage__media img,
.lab-stage__media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}
.lab-stage__media img.is-active,
.lab-stage__media video.is-active {
  display: block;
}

/* Info overlay is visible by default so the description and link are
   discoverable without requiring a hover interaction. */
.lab-stage__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lab-stage__scrim-top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
}
.lab-stage__scrim-bottom {
  position: absolute;
  inset: auto 0 0 0;
  height: 25%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}
.lab-stage__title {
  position: absolute;
  left: 24px;
  top: 20px;
}
.lab-stage__name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.lab-stage__tagline {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.lab-stage__cta {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.lab-stage__cta svg { width: 12px; height: 12px; fill: #fff; }

/* Thumbnail row — click to swap the stage */
.lab-thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.lab-thumb {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--gray-50);
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.55;
}
.lab-thumb img,
.lab-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lab-thumb.is-active,
.lab-thumb:hover {
  opacity: 1;
}
.lab-thumb.is-active {
  border-color: var(--shiba-orange);
}

/* ─── Work / About divider ───────────────────────────────────────────────────── */
.work-about-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(40px, 6vw, 72px) 20px;
}
.wad-dot {
  width: 4px;
  height: 4px;
  background: var(--gray-300);
}
.wad-dot:nth-child(2) { background: var(--shiba-orange); }

.about-block {
  max-width: var(--max-w);
  margin: 0 auto;
}
/* shiba.png 取代像素 SVG */
.about-shiba img {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
  mix-blend-mode: multiply;   /* 讓白底融入米色背景 */
}

/* Experience 併入 About 後的間距與標題 */
.about-exp {
  margin: 48px 0 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-100);
}
.about-exp__title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shiba-orange);
  margin-bottom: 8px;
}

/* ─── About: contact links, sitting under the shiba in the sticky sidebar ────── */
.about-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
}
.about-email {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  border-bottom: 1px solid var(--gray-200);
  transition: color 0.2s, border-color 0.2s;
}
.about-email:hover {
  color: var(--shiba-orange);
  border-color: var(--shiba-orange);
}
.about-social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.about-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-500);
  transition: color 0.2s;
}
.about-social-links a:hover {
  color: var(--shiba-orange);
}
.about-social-links svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Screen-reader-only helper */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ─── Projects Grid ──────────────────────────────────────────────────────────── */
.section--work {
  max-width: var(--max-w);
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}
.project-card:not(.project-card--wip):hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 20px 56px rgba(232,133,74,0.12), 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--gray-200);
}
.project-card--wip {
  opacity: 0.65;
  cursor: default;
}

.project-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.project-card--wide .project-card__image {
  height: 100%;
  min-height: 320px;
}
.project-card--wide:hover { transform: translateY(-6px) rotate(0.3deg); }

.project-card__image {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  position: relative;
  transition: filter 0.3s;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.project-card__image .journey-card__screen {
  flex: 1;
  width: 100%;
  aspect-ratio: unset;
  border-right: none;
}
.project-card:not(.project-card--wip):hover .project-card__image {
  filter: brightness(0.97);
}

.project-placeholder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  width: 100%;
  opacity: 0.3;
}
.pp-block {
  height: 12px;
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
  transition: opacity 0.3s;
}
.project-card:hover .pp-block { opacity: 0.5; }
.pp-block--sm  { width: 40%; }
.pp-block--md  { width: 65%; }
.pp-block--lg  { width: 85%; }

.project-card__info {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.project-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shiba-orange);
  background: var(--shiba-cream);
  padding: 3px 10px;
  border-radius: 100px;
}
.project-year {
  font-size: 12px;
  color: var(--gray-300);
}

.project-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.2s;
}
.project-card:hover .project-title { color: var(--shiba-orange); }

.project-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.project-link:hover { border-color: var(--shiba-orange); color: var(--shiba-orange); }

/* ─── About ──────────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  /* Widened slightly from 1fr/2fr so the sidebar can fit email + social
     links on one row without wrapping. */
  grid-template-columns: minmax(400px, 1fr) 2fr;
  gap: 64px;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-left { position: sticky; top: calc(var(--nav-h) + 40px); }

.about-shiba {
  margin-top: 32px;
  image-rendering: pixelated;
}
.about-shiba svg { image-rendering: pixelated; }
.wave-arm {
  transform-origin: 17px 14px;
  animation: waveArm 1s ease-in-out infinite alternate;
}

.about-intro {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--black);
  margin-bottom: 24px;
}

.about-body {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-quote {
  margin: 0 0 40px;
}
.about-quote p {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  color: var(--black);
  line-height: 1.3;
  margin: 0 0 12px;
}
.about-quote p em {
  font-size: 0.45em;
  font-style: normal;
  font-weight: 400;
  color: var(--gray-400);
  vertical-align: middle;
}
.about-quote cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: var(--gray-500);
}
.about-quote__name {
  white-space: nowrap;
}

.about-highlights {
  list-style: none;
  margin: 8px 0 40px;
  padding: 28px 0 0;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-highlights li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.about-highlights__num {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--shiba-orange);
  flex-shrink: 0;
  padding-top: 4px;
}
.about-highlights__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.about-highlights p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-500);
  margin: 0;
}

/* ─── Experience (horizontal timeline) ──────────────────────────────────────── */
/* Vertical rhythm lives in one place — the line's position is calc()'d from
   these, so the dot always lands exactly on it no matter what spacing
   changes happen above (period text) or below (logo/company/role). */
.exp-tl-track {
  --exp-period-h: 15px;
  --exp-dot-center: 30px; /* node-relative y of the dot's (and line's) center */
  --exp-dot-size: 8px;
  --exp-marker-size: 40px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding-top: 4px;
  overflow-y: visible;
}
.exp-tl-line {
  position: absolute;
  top: calc(4px + var(--exp-dot-center));
  left: 4px;
  right: 4px;
  height: 1px;
  background: var(--gray-200);
  border-radius: 1px;
}
.exp-tl-line__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: calc(1 / var(--exp-tl-count, 4) * 100%);
  background: var(--shiba-orange);
  border-radius: 1px;
}

.exp-tl-node {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: default;
}
.exp-tl-node__period {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-400);
  height: var(--exp-period-h);
  line-height: var(--exp-period-h);
  margin-bottom: 34px; /* total gap before the logo — dot floats inside it */
  transition: color 0.2s;
}
/* The dot sits ON the line, centered above the logo below it. Absolutely
   positioned so it never participates in (or disturbs) the flow spacing. */
.exp-tl-node__dot {
  position: absolute;
  top: calc(var(--exp-dot-center) - var(--exp-dot-size) / 2);
  left: calc(var(--exp-marker-size) / 2 - var(--exp-dot-size) / 2);
  width: var(--exp-dot-size);
  height: var(--exp-dot-size);
  border-radius: 50%;
  background: var(--gray-300);
  z-index: 1;
  transition: background 0.2s ease;
}
.exp-tl-node.is-current .exp-tl-node__dot {
  --exp-dot-size: 10px;
  background: var(--shiba-orange);
}
.exp-tl-node.is-current .exp-tl-node__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--shiba-orange);
  opacity: 0.45;
  animation: exp-tl-pulse 2s ease-out infinite;
  z-index: -1;
}
.exp-tl-node__logo {
  position: relative;
  z-index: 1;
  width: var(--exp-marker-size);
  height: var(--exp-marker-size);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(17, 17, 16, 0.06);
  margin-bottom: 18px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.exp-tl-node__logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.exp-tl-node__logo--mono {
  background: var(--shiba-orange);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}
.exp-tl-node__logo--bare {
  background: none;
  box-shadow: none;
}
.exp-tl-node__logo--bare img {
  width: 100%;
  height: 100%;
}
.exp-tl-node__company {
  font-size: 13px;
  color: var(--shiba-orange);
  font-weight: 500;
  margin-bottom: 6px;
  max-width: 100%;
}
.exp-tl-node__role {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.4;
  max-width: 100%;
}

.exp-tl-node__desc {
  position: absolute;
  bottom: 100%;
  left: 0;
  z-index: 5;
  width: 240px;
  max-width: 80vw;
  max-height: 0;
  margin-bottom: 18px;
  padding: 18px 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(17, 17, 16, 0.06), 0 16px 40px rgba(17, 17, 16, 0.12);
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-500);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.exp-tl-node__desc li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 16px;
}
.exp-tl-node__desc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--shiba-orange);
  opacity: 0.6;
}
.exp-tl-node__desc li:last-child { margin-bottom: 0; }

/* Little pointer nub connecting the tooltip back to its marker */
.exp-tl-node__desc::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 18px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 2px;
  transform: translateY(-6px) rotate(45deg);
  box-shadow: 3px 3px 8px rgba(17, 17, 16, 0.06);
}

.exp-tl-node:last-child .exp-tl-node__desc {
  left: auto;
  right: 0;
}
.exp-tl-node:last-child .exp-tl-node__desc::after {
  left: auto;
  right: 18px;
}

.exp-tl-node:hover .exp-tl-node__logo {
  box-shadow: 0 0 0 1px var(--shiba-orange), 0 4px 12px rgba(232, 133, 74, 0.18);
  transform: translateY(-1px);
}
.exp-tl-node.is-current .exp-tl-node__logo {
  box-shadow: 0 0 0 1px var(--shiba-orange), 0 4px 12px rgba(232, 133, 74, 0.18);
}
.exp-tl-node:hover .exp-tl-node__logo--bare,
.exp-tl-node.is-current .exp-tl-node__logo--bare {
  box-shadow: none;
}
.exp-tl-node.is-current .exp-tl-node__period {
  color: var(--shiba-orange);
}

@keyframes exp-tl-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}
.exp-tl-node:hover .exp-tl-node__desc {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 860px) {
  .exp-tl-track { flex-direction: column; gap: 32px; overflow: visible; }
  .exp-tl-line { display: none; }
  .exp-tl-node__desc { position: static; width: auto; max-height: none; margin-top: 10px; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 18px; background: none; }
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(20px, 5vw, 60px);
  background: var(--black);
  border-top: 1px solid #1e1e1e;
  font-size: 12px;
  color: var(--gray-500);
}

/* ─── Corner shiba peek ──────────────────────────────────────────────────── */
.shiba-peek {
  position: fixed;
  bottom: -60px;
  right: 24px;
  z-index: 50;
  transition: bottom 0.5s cubic-bezier(0.34,1.4,0.64,1);
  cursor: pointer;
}
.shiba-peek svg { image-rendering: pixelated; }
.shiba-peek.visible { bottom: 0; }
.shiba-peek:hover { bottom: 8px; }

/* ─── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes dogeFloat {
  0%   { opacity: 0; transform: translateY(8px) rotate(-3deg); }
  100% { opacity: 1; transform: translateY(0) rotate(-3deg); }
}
@keyframes dogeDrift1 {
  0%, 100% { transform: translateY(0px) rotate(-4deg); }
  50%       { transform: translateY(-10px) rotate(-2deg); }
}
@keyframes dogeDrift2 {
  0%, 100% { transform: translateY(0px) rotate(2deg); }
  50%       { transform: translateY(-8px) rotate(4deg); }
}
@keyframes dogeDrift3 {
  0%, 100% { transform: translateY(0px) rotate(-1deg) scale(1); }
  50%       { transform: translateY(-12px) rotate(2deg) scale(1.05); }
}
@keyframes shibaBounceIn {
  0%   { opacity: 0; transform: translateY(40px) scale(0.7); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wagTail {
  from { transform: rotate(-20deg); }
  to   { transform: rotate(20deg); }
}
@keyframes waveArm {
  from { transform: rotate(-30deg); }
  to   { transform: rotate(30deg); }
}
@keyframes peekBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34,1.2,0.64,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .doge-bubble--1 { right: 200px; }
  .doge-bubble--2 { right: 100px; }
  .doge-bubble--3 { right: 20px; }
}

@media (max-width: 700px) {
  .jp-burst { display: none; }
  .doge-bubble { display: none; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-left { position: static; }
  .lab-thumb { width: 68px; height: 68px; }
  .work-card { grid-template-columns: 1fr; }
  .work-card__media { aspect-ratio: 16 / 10; border-right: none; border-bottom: 1px solid var(--gray-100); }
  /* justify-content: center clips the first item once content overflows and
     needs to scroll — left-align instead so every thumbnail stays reachable */
  .lab-thumbs { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .nav-links { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-shiba { display: none; }
  .doge-bubble { display: none; }
  .contact-links { flex-direction: column; gap: 16px; }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
}
