:root {
  --bg: #ece8e1;
  --bg-alt: #e4dfd8;
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(18, 24, 31, 0.08);
  --line-strong: rgba(18, 24, 31, 0.16);
  --text: #101418;
  --muted: #73777d;
  --soft: #a1a4a8;
  --shadow: 0 22px 70px rgba(16, 20, 24, 0.08);
  --radius: 30px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.portfolio-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, #f2efe9 0%, var(--bg) 52%, var(--bg-alt) 100%);
  font-family: "SF Pro Display", "Avenir Next", "Segoe UI", sans-serif;
}

body.portfolio-body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Static%20Texture.png");
  background-size: 360px 360px;
  mix-blend-mode: multiply;
  opacity: 0.18;
  content: "";
}

a {
  color: inherit;
}

.portfolio-shell {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.portfolio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 10px 4px;
}

.portfolio-brand {
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portfolio-nav {
  display: flex;
  gap: 18px;
}

.portfolio-nav a {
  color: var(--muted);
  text-decoration: none;
}

.portfolio-page {
  display: grid;
  gap: 20px;
}

.eyebrow,
.signal-label,
.timeline-period,
.timeline-place,
.mini-label {
  display: inline-block;
  color: var(--soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

.resume-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: 20px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--card-strong);
  box-shadow: var(--shadow);
}

.resume-hero h1,
.bento-card h2,
.bento-card h3,
.work-theme-card h3 {
  margin: 0;
  letter-spacing: -0.06em;
}

.resume-hero h1 {
  margin-top: 10px;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.9;
}

.resume-hero h1 span {
  display: block;
}

.resume-hero h1 span:last-child {
  color: #a3a6aa;
}

.resume-tagline {
  max-width: none;
  margin: 18px 0 0;
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: #20252a;
  font-weight: 500;
}

.resume-intro,
.bento-card p,
.list,
.work-theme-card p,
.hero-mini-card p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.resume-intro {
  max-width: none;
}

.hero-side-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
}

.hero-mini-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(248, 247, 244, 0.92);
  box-shadow: 0 16px 36px rgba(16, 20, 24, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.hero-mini-card strong {
  font-size: 1.34rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
  min-width: 0;
}

.hero-mini-card-compact strong {
  font-size: 1.06rem;
}

.hero-mini-card a {
  text-decoration: none;
}

.hero-mini-card-glow strong,
.hero-mini-card-glow a {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-mini-card-glow strong {
  font-size: 0.98rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero-mini-card-static {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  align-content: end;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.78), transparent 16%),
    linear-gradient(135deg, rgba(214, 226, 236, 0.98), rgba(241, 236, 229, 0.98));
}

.hero-mini-card-static::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(124, 143, 160, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 143, 160, 0.14) 1px, transparent 1px);
  background-size:
    34px 34px,
    34px 34px;
  opacity: 0.45;
  content: "";
}

.hero-mini-card-static::after {
  content: none;
}

.hero-mini-card-static > * {
  position: relative;
  z-index: 1;
}

.location-map {
  position: absolute;
  inset: 8px 6px 84px 6px;
  z-index: 0;
  opacity: 0.62;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(67, 91, 114, 0.12));
}

.location-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.location-card-badge {
  margin-bottom: 6px;
}

.location-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(46, 66, 85, 0.1);
  color: #4a6178;
}

.location-card-badge svg {
  width: 20px;
  height: 20px;
}

.location-clock-block {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.location-clock-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 700;
  color: #263442;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.location-clock-zone {
  padding-left: 19px;
  color: #5f7182;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.location-clock-value::before {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #5b7a96;
  box-shadow: 0 0 0 6px rgba(91, 122, 150, 0.12);
  flex: 0 0 auto;
  content: "";
  animation: clock-pulse 1.2s ease-in-out infinite;
}

.hero-mini-card-lift:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 24, 31, 0.14);
  box-shadow: 0 22px 42px rgba(16, 20, 24, 0.1);
}

.hero-mini-card-slide:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.98);
}

.hero-mini-card-glow:hover {
  border-color: rgba(68, 93, 118, 0.22);
  box-shadow: 0 0 0 1px rgba(68, 93, 118, 0.08), 0 22px 42px rgba(68, 93, 118, 0.14);
  background:
    linear-gradient(135deg, rgba(247, 245, 241, 0.98), rgba(235, 240, 244, 0.98));
}

.hero-social-card {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.hero-social-card::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 20, 24, 0.08) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  opacity: 0.5;
  content: "";
}

.hero-social-card > * {
  position: relative;
  z-index: 1;
}

.hero-social-card-github {
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.35), transparent 22%),
    linear-gradient(135deg, rgba(34, 39, 46, 0.96), rgba(52, 58, 67, 0.94));
  color: #f6f4ef;
}

.hero-social-card-github .mini-label {
  color: rgba(255, 255, 255, 0.46);
}

.hero-social-card-linkedin {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.32), transparent 22%),
    linear-gradient(135deg, rgba(228, 236, 245, 0.96), rgba(214, 225, 237, 0.94));
}

.hero-social-card-linkedin .mini-label {
  color: rgba(52, 76, 99, 0.58);
}

.hero-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-social-card-linkedin .hero-social-icon {
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 0 0 1px rgba(70, 95, 121, 0.08);
}

.hero-social-icon svg {
  width: 20px;
  height: 20px;
}

.hero-social-card:hover {
  transform: rotate(-1.2deg) translateY(-2px);
  border-color: rgba(18, 24, 31, 0.14);
  box-shadow: 0 20px 42px rgba(16, 20, 24, 0.12);
}

.resume-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  position: relative;
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 220ms ease;
  transform-origin: center;
  will-change: transform;
}

.bento-card::before {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(18, 24, 31, 0.22), transparent);
  content: "";
}

.bento-card-feature {
  grid-column: span 6;
  grid-row: span 2;
  background:
    radial-gradient(circle at top right, rgba(221, 230, 239, 0.8), transparent 34%),
    linear-gradient(180deg, #ffffff, #f7f4ef);
}

.bento-card-feature:hover {
  transform: translateY(-6px) scale(1.024);
  border-color: var(--line-strong);
  box-shadow: 0 34px 90px rgba(16, 20, 24, 0.14);
}

.bento-card-profile-list {
  grid-column: span 3;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 236, 228, 0.96));
  border-radius: 24px 32px 24px 32px;
}

.bento-card-profile-list:hover {
  transform: rotate(-1deg) translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 60px rgba(16, 20, 24, 0.12);
}

.bento-card-metrics {
  grid-column: span 3;
  background:
    radial-gradient(circle at 78% 18%, rgba(214, 201, 177, 0.28), transparent 24%),
    linear-gradient(180deg, #ffffff, #f1ece2);
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
}

.bento-card-metrics:hover {
  transform: translateY(-5px);
  background: linear-gradient(180deg, #ffffff, #ece5da);
  border-color: rgba(80, 68, 46, 0.16);
  box-shadow: 0 30px 75px rgba(80, 68, 46, 0.14);
}

.metric-stack {
  display: grid;
  gap: 18px;
}

.metric-stack strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-stack span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.bento-focus-card {
  grid-column: span 3;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 238, 232, 0.92));
}

.bento-focus-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(68, 93, 118, 0.16);
  box-shadow: 0 24px 54px rgba(68, 93, 118, 0.12);
}

.bento-focus-card-1 {
  background:
    radial-gradient(circle at top left, rgba(214, 227, 239, 0.65), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 241, 243, 0.92));
  border-radius: 22px 34px 22px 34px;
}

.bento-focus-card-2 {
  background:
    radial-gradient(circle at 82% 18%, rgba(225, 214, 194, 0.5), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 238, 230, 0.94));
  border-radius: 34px 22px 34px 22px;
}

.bento-focus-card-3 {
  background:
    radial-gradient(circle at 20% 88%, rgba(210, 224, 216, 0.55), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 241, 238, 0.93));
  border-radius: 26px 26px 38px 20px;
}

.bento-focus-card-4 {
  background:
    radial-gradient(circle at 84% 24%, rgba(209, 213, 232, 0.52), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 239, 245, 0.93));
  border-radius: 20px 38px 20px 38px;
}

.bento-card-section,
.bento-card-wide {
  grid-column: span 8;
  background: #ffffff;
}

.bento-card-section {
  grid-column: span 12;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 241, 235, 0.96));
}

.bento-card-section:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 24, 31, 0.14);
  box-shadow: 0 30px 70px rgba(16, 20, 24, 0.1);
}

.bento-role-card {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 242, 236, 0.94));
  border-radius: 28px;
}

.bento-role-card:hover {
  transform: translateX(8px);
  border-color: rgba(18, 24, 31, 0.14);
  box-shadow: 0 28px 64px rgba(16, 20, 24, 0.12);
}

.bento-role-card-anglepoint {
  background:
    radial-gradient(circle at 84% 18%, rgba(216, 226, 240, 0.65), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 240, 235, 0.95));
}

.bento-role-card-truhearing {
  background:
    radial-gradient(circle at 18% 16%, rgba(230, 218, 197, 0.55), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 238, 228, 0.94));
}

.bento-role-card-sunrun {
  background:
    radial-gradient(circle at 82% 82%, rgba(214, 226, 216, 0.55), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(236, 242, 238, 0.94));
}

.bento-role-card-vivint-solar {
  background:
    radial-gradient(circle at 18% 84%, rgba(214, 217, 235, 0.52), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(238, 240, 246, 0.94));
}

.resume-timeline-meta {
  display: grid;
  align-content: start;
  gap: 8px;
}

.timeline-place {
  color: var(--muted);
}

.timeline-period {
  white-space: nowrap;
}


.resume-timeline-content h3 {
  font-size: 1.38rem;
}

.role-title {
  margin-top: 8px;
  color: #20252a;
  font-weight: 600;
}

.resume-capability-card {
  grid-column: span 12;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(233, 238, 243, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 239, 233, 0.96));
}

.bento-card-philosophy-section {
  grid-column: span 12;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 248, 250, 0.97));
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(16, 20, 24, 0.05);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid rgba(18, 24, 31, 0.06);
}

.philosophy-card {
  border-bottom: 1px solid rgba(18, 24, 31, 0.06);
  background: transparent;
}

.philosophy-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.philosophy-copy {
  display: grid;
  gap: 6px;
}

.philosophy-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #161b22;
}

.philosophy-preview {
  color: #66717d;
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.6;
  font-size: 0.98rem;
}

.philosophy-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #7b8794;
  transition: transform 180ms ease, color 180ms ease;
}

.philosophy-indicator svg {
  width: 16px;
  height: 16px;
}

.philosophy-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 260ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    padding 220ms ease;
  padding: 0 34px 0 0;
}

.philosophy-card[data-expanded="true"] .philosophy-body {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  padding: 0 34px 18px 0;
}

.philosophy-card[data-expanded="true"] .philosophy-indicator {
  transform: rotate(180deg);
  color: #4a67a1;
}

.philosophy-body p {
  margin: 0;
  max-width: 76ch;
  color: #4f5b67;
  line-height: 1.72;
  font-size: 0.98rem;
}

.experience-more {
  grid-column: span 12;
  display: grid;
  justify-items: center;
  margin-top: -2px;
}

.history-toggle {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #355883;
}

.history-toggle-link {
  color: #355883;
}

.history-collapsible {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 280ms ease,
    opacity 220ms ease,
    margin-top 220ms ease;
}

.experience-more[data-expanded="true"] .history-collapsible {
  max-height: 520px;
  opacity: 1;
  margin-top: 18px;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.bento-role-card-earlier {
  grid-column: span 6;
  background:
    linear-gradient(180deg, rgba(250, 249, 246, 0.98), rgba(240, 238, 233, 0.96));
}

.tech-stack-scroller {
  display: flex;
  margin-top: 18px;
  padding-bottom: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tech-stack-scroller::-webkit-scrollbar {
  height: 8px;
}

.tech-stack-scroller::-webkit-scrollbar-thumb {
  background: rgba(16, 20, 24, 0.14);
  border-radius: 999px;
}

.tech-stack-track {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  min-width: max-content;
  padding-right: 14px;
  animation: stack-marquee 28s linear infinite;
}

.tech-stack-scroller:hover .tech-stack-track {
  animation-play-state: paused;
}

.tech-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f2ee;
  color: #1e2328;
  font-weight: 600;
  white-space: nowrap;
}

.tech-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.work-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.work-theme-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f7f4f0;
}

.work-theme-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.18;
}

.bento-card-cta {
  grid-column: span 4;
  background: #171b20;
  color: #f6f3ee;
}

.bento-card-philosophy {
  grid-column: span 4;
  background:
    radial-gradient(circle at top right, rgba(217, 227, 236, 0.58), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 243, 246, 0.96));
}

.bento-card-philosophy:hover {
  transform: translateY(-4px) scale(1.012);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 243, 247, 0.98));
  border-color: rgba(68, 93, 118, 0.14);
  box-shadow: 0 28px 64px rgba(68, 93, 118, 0.12);
}

.bento-card-contact {
  grid-column: span 4;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 239, 232, 0.96));
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.contact-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(250, 248, 244, 0.96);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.contact-item-muted {
  color: var(--muted);
}

.contact-item:hover {
  transform: translateX(6px);
  border-color: rgba(18, 24, 31, 0.14);
  box-shadow: 0 18px 32px rgba(16, 20, 24, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #eef2f5;
  color: #33485e;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-copy {
  display: grid;
  min-width: 0;
}

.contact-label {
  color: var(--soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
}

.contact-value {
  margin-top: 2px;
  color: #1a2026;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.bento-card-cta .signal-label {
  color: rgba(255, 255, 255, 0.46);
}

.bento-card-cta p {
  color: rgba(255, 255, 255, 0.72);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: #ffffff;
  color: #111111;
}

.bento-card-cta .button-primary {
  transition: transform 160ms ease;
  transform-origin: center;
}

.bento-card-cta .button-primary:hover {
  animation: cta-jiggle 280ms ease-in-out 1;
}

.list {
  margin: 0;
  padding-left: 20px;
}

.list li + li {
  margin-top: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stack-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 14px));
  }
}

@keyframes clock-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cta-jiggle {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px) rotate(-1deg);
  }

  50% {
    transform: translateX(3px) rotate(1deg);
  }

  75% {
    transform: translateX(-1px) rotate(-0.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .bento-card {
    transition: none;
  }

  .hero-mini-card {
    transition: none;
  }

  .tech-stack-track {
    animation: none;
  }

  .location-clock-value::before {
    animation: none;
  }

  .contact-item {
    transition: none;
  }

  .bento-card-cta .button-primary {
    transition: none;
  }

  .bento-card-cta .button-primary:hover {
    animation: none;
  }
}

@media (max-width: 1200px) {
  .resume-bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .resume-capability-card,
  .bento-card-section,
  .bento-card-feature,
  .bento-role-card {
    grid-column: span 6;
  }

  .bento-card-profile-list,
  .bento-card-metrics,
  .bento-focus-card,
  .bento-card-philosophy-section,
  .bento-card-philosophy,
  .bento-card-contact,
  .bento-card-cta {
    grid-column: span 6;
  }

}

@media (max-width: 980px) {
  .resume-hero {
    grid-template-columns: 1fr;
  }

  .hero-side-grid,
  .work-theme-grid {
    grid-template-columns: 1fr;
  }

  .resume-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-card-feature,
  .bento-card-metrics,
  .bento-focus-card,
  .bento-card-philosophy-section,
  .bento-card-section,
  .bento-role-card,
  .resume-capability-card,
  .bento-card-wide,
  .bento-card-cta,
  .bento-card-profile-list,
  .bento-card-philosophy,
  .bento-card-contact {
    grid-column: span 2;
  }

  .bento-role-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portfolio-shell {
    width: min(var(--max), calc(100% - 20px));
    padding-top: 14px;
  }

  .portfolio-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-side-grid {
    grid-template-columns: 1fr;
  }

  .resume-bento {
    grid-template-columns: 1fr;
  }

  .resume-hero,
  .bento-card {
    padding: 22px;
  }

  .bento-card-feature,
  .bento-card-metrics,
  .bento-focus-card,
  .bento-card-section,
  .bento-role-card,
  .resume-capability-card,
  .bento-card-wide,
  .bento-card-cta,
  .bento-card-profile-list,
  .bento-card-philosophy,
  .bento-card-contact {
    grid-column: auto;
  }
}
