/* Portfolio theme overrides — peach accent, Plus Jakarta Sans headings, Inter body */
:root {
  --color-bg: #ffffff;
  --color-surface: #f5f4f2;
  --color-accent: #f8a075;
  --color-accent-2: #f8a075;
  --color-accent-100: #fdeee3;
  --color-accent-200: #fbdcc8;
  --color-accent-300: #f9c3a2;
  --color-accent-400: #f8a075;
  --color-accent-500: #f28b58;
  --color-accent-600: #e17740;
  --color-accent-700: #b0562a;
  --color-accent-800: #7d3d1b;
  --color-accent-900: #4e2712;
  --font-heading: "Plus Jakarta Sans", "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Inter", system-ui, sans-serif;
  --color-divider: color-mix(in srgb, #201e1d 30%, transparent);
}
.btn { border-radius: 999px; padding-inline: 20px; white-space: nowrap; flex: 0 0 auto; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--color-accent); color: #1c1a17; }
.btn-primary:hover { background: var(--color-accent-600); color: #1c1a17; box-shadow: 0 12px 24px -10px rgba(225, 119, 64, 0.65); }
.btn-primary:active { background: var(--color-accent-700); color: #fff; }
.btn-ghost { color: var(--color-accent-700); }
.tag { border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }
a { transition: color .2s ease, border-color .2s ease, background .2s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(248, 160, 117, 0.55); } 50% { box-shadow: 0 0 0 7px rgba(248, 160, 117, 0); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* thumbnail radius */
image-slot { display: block; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; }
figure img, figure > div, figure image-slot { border-radius: 8px; }
figure > div { overflow: hidden; }
a > div > image-slot, a image-slot { border-radius: 8px; }

/* card system */
.pcard { background: #ffffff; border: 1px solid rgba(28,26,23,0.09); border-radius: 16px; padding: clamp(16px,1.7vw,20px); box-shadow: 0 1px 2px rgba(28,26,23,0.04); box-sizing: border-box; transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease; }
.pcard-hover:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(28,26,23,0.35); border-color: rgba(28,26,23,0.16); }
.pcard-soft { background: #faf9f8; }
.pcard > figcaption { margin-bottom: 0; }

/* responsive */
@media (max-width: 900px) {
  .site-nav { gap: 10px; padding-inline: 16px; }
  .nav-pills { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-pills::-webkit-scrollbar { display: none; }
  .hero-wrap { margin-top: 128px !important; }
  .cs-header { padding-top: 146px !important; }
  html { scroll-padding-top: 140px !important; }
}
@media (max-width: 640px) {
  .btn { padding-inline: 16px; font-size: 14px; }
  .nav-cta { padding-inline: 14px; }
  .hero { border-radius: 20px; min-height: 0 !important; padding: 28px 22px 380px !important; }
  .hero h1 { font-size: 40px !important; }
  .hero-photo { left: 0 !important; right: 0 !important; margin-inline: auto !important; transform: none !important; animation: none !important; height: 340px !important; }
  .hero-note { position: static !important; margin-top: 24px !important; max-width: none !important; }
  .hero-scroll { display: none !important; }
  .pcard { padding: 14px; border-radius: 14px; }
  .pcard-hover:hover { transform: none; }
  .exp-row { grid-template-columns: 1fr !important; gap: 6px !important; }
  .exp-row > p:first-child { font-size: 13px !important; letter-spacing: 0.06em; text-transform: uppercase; }
}
@media (max-width: 480px) {
  .hero-photo { height: 300px !important; }
  .hero { padding-bottom: 340px !important; }
}

/* touch scroll — let vertical swipes pass through filled image slots */
@media (hover: none), (pointer: coarse) {
  image-slot { touch-action: pan-y pinch-zoom !important; pointer-events: none !important; }
  image-slot * { touch-action: pan-y pinch-zoom !important; }
}

/* awards in color — grayscale is the design system's photo default; certificates read better in full color */
#awards .grayscale { filter: none; }

/* impact grid */
@media (max-width: 1000px) {
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .impact-grid .impact-visual, .impact-grid .impact-cta { grid-column: span 2 !important; }
}
@media (max-width: 640px) {
  .impact-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .impact-grid .impact-visual, .impact-grid .impact-cta { grid-column: span 1 !important; }
  .impact-tile, .impact-cta, .impact-visual { min-height: 0 !important; }
  .impact-visual { aspect-ratio: 16/10; }
  .impact-tile h3 { margin-top: 24px !important; }
}

/* work rows */
.work-media { display: block; }
.work-media image-slot { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.work-row:hover .work-media image-slot { transform: scale(1.03); }
@media (max-width: 820px) {
  .work-row { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; }
  .work-row > * { order: 0 !important; }
}

/* skills */
@media (max-width: 900px) { .skills-intro { position: static !important; } }

/* skill cards */
@media (max-width: 1000px) {
  .skill-card { grid-template-columns: auto minmax(0,1fr) !important; gap: 18px 22px !important; }
  .skill-card ul { grid-column: 1 / -1 !important; padding-top: 18px !important; border-top: 1px solid var(--color-divider) !important; }
}
@media (max-width: 560px) {
  .skill-card ul { grid-template-columns: minmax(0,1fr) !important; }
}
