/* ===== Colors and fonts ===== */
:root {
  --peach: #FAECE7;
  --violet: #3C3489;
  --pink: #D4537E;
  --tangerine: #D85A30;
  --gold: #FAC775;
  --pine: #0F6E56;
  --mint-wash: #E1F5EE;
  --ink: #4A1B0C;
  --card: #FFFFFF;
  --column: rgba(255, 255, 255, 0.22);
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ===== Basics ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #FBF0E4 0%, #FAE3D3 26%, #F7D3D9 52%, #DCE8EE 74%, #BFE6E0 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

header, main {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

main {
  padding-bottom: 16px;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0;
}

.logo {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.logo-wave {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 10px;
  overflow: visible;
}


nav {
  display: flex;
  gap: 20px;
}

nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
}

nav a:hover {
  color: var(--pink);
}

/* ===== Text ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 64px;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--tangerine);
  margin: 0 0 8px;
}

.highlight {
  background: var(--violet);
  padding: 0 10px;
  border-radius: 10px;
}

/* ===== Cards ===== */
.card {
  position: relative;
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
    transition: transform 0.7s cubic-bezier(.34, 1.56, .64, 1);
}

.card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
}

.card p:last-child {
  margin-bottom: 0;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 60%, var(--gold) 100%);
  color: #FFFFFF;
  padding: 48px 40px;
}

.hero .label {
  color: var(--gold);
}

.hero p {
  color: #FBEAF0;
  max-width: 560px;
}

/* ===== Work and About grids ===== */
#learning {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#learning h2 {
  grid-column: 1 / -1;
}

/* ===== Contact ===== */
#contact {
  margin-top: 64px;
  background: var(--tangerine);
  color: #FFFFFF;
  text-align: center;
  padding: 48px;
}

#contact h2 {
  margin-top: 0;
}

#contact .label {
  color: var(--peach);
}

#contact a {
  color: #FFFFFF;
  font-weight: 500;
}
/* ===== About ===== */
.about {
  margin-top: 20px;
}

.about h2 {
  margin-top: 0;
}

.about p {
  max-width: 680px;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facts li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--mint-wash);
  color: var(--pine);
  padding: 4px 12px;
  border-radius: 999px;
}
main h2 {
  position: relative;
  transition: transform 0.7s cubic-bezier(.34, 1.56, .64, 1);
}

/* ===== Career board ===== */
#work {
  margin-top: 64px;
}

.board-top h2 {
  margin-top: 0;
}

.board-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  background: var(--mint-wash);
  color: var(--pine);
  padding: 4px 14px;
  border-radius: 999px;
  margin: 4px 0 16px;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.column {
  background: var(--column);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 12px;
  min-height: 300px;
}

.column-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin: 2px 4px 12px;
}

.count {
  background: var(--card);
  border-radius: 999px;
  padding: 0 8px;
}

.ticket {
  position: relative;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 20%, transparent),
      color-mix(in srgb, var(--accent) 4%, transparent)),
    rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 5px solid var(--accent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 14px 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.3s;
}

.ticket:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 -2px rgba(74, 27, 12, 0.1);
}

.ticket-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.ticket-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #888780;
}

.ticket-open {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s;
}

.ticket:hover .ticket-open {
  opacity: 1;
  transform: none;
}

.ticket-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 6px 0 2px;
}

.ticket-project {
  font-size: 0.8rem;
  color: var(--tangerine);
  margin: 0 0 8px;
}

.ticket-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ticket-labels span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: #FAEEDA;
  color: #854F0B;
  padding: 1px 8px;
  border-radius: 4px;
}

.ticket-metric {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--violet);
  margin: 8px 0 0;
}

.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #F0E3DE;
  padding-top: 8px;
  margin-top: 10px;
}

.ticket-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #5F5E5A;
}

.ticket-progress .bar {
  width: 48px;
  height: 5px;
  border-radius: 3px;
  background: #F1EFE8;
  overflow: hidden;
}

.ticket-progress .bar span {
  display: block;
  height: 100%;
  background: var(--pine);
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--violet);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticket-next {
  border: 2px dashed var(--tangerine);
  background: transparent;
}

.ticket.pulse {
  animation: ticket-pulse 1.8s infinite;
}

/* Labels live in the ticket panel, not on the card */
.ticket > .ticket-labels {
  display: none;
}

@keyframes ticket-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(15, 110, 86, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(15, 110, 86, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 110, 86, 0); }
}

/* Touch screens have no hover, so always show "Open" */
@media (hover: none) {
  .ticket-open {
    opacity: 1;
    transform: none;
  }
}

/* ===== Ticket panel ===== */
.board-tip {
  transition: opacity 0.4s, transform 0.4s;
}

.board-tip.gone {
  opacity: 0;
  transform: translateY(-6px);
}

.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 23, 69, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  z-index: 200;
}

.panel-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.ticket-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: var(--card);
  color: var(--ink);
  border-left: 6px solid var(--accent, var(--pine));
  padding: 28px;
  overflow-y: auto;
  z-index: 201;
  transform: translateX(105%);
  transition: transform 0.5s cubic-bezier(.34, 1.2, .64, 1);
}

.ticket-panel.open {
  transform: none;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: none;
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.34, 1.8, .64, 1);
}

.panel-close:hover {
  transform: rotate(90deg);
}

.panel-status {
  display: inline-block;
  margin: 18px 0 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--mint-wash);
  color: var(--pine);
  padding: 2px 10px;
  border-radius: 999px;
}

.panel-title {
  font-size: 1.6rem;
  margin: 4px 0;
}

.ticket-panel .label {
  margin-top: 24px;
}

.subtasks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subtasks li {
  position: relative;
  padding: 6px 0 6px 28px;
  opacity: 0.35;
  transition: opacity 0.3s;
}

.subtasks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #D3D1C7;
  transition: all 0.4s cubic-bezier(.34, 1.8, .64, 1);
}

.subtasks li::after {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 7px;
  font-size: 0.7rem;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.3s;
}

.subtasks li.done {
  opacity: 1;
}

.subtasks li.done::before {
  background: var(--pine);
  border-color: var(--pine);
  transform: scale(1.1);
}

.subtasks li.done::after {
  opacity: 1;
}

.activity {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--column);
}

.activity li {
  position: relative;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.activity li::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tangerine);
}

/* ===== Kick-off ticket ===== */
.column {
  position: relative;
  transition: background 0.3s, transform 0.7s cubic-bezier(.34, 1.56, .64, 1);
}

.board-tip,
.board-top .label {
  position: relative;
  transition: transform 0.7s cubic-bezier(.34, 1.56, .64, 1), opacity 0.4s;
}

.column.drop-ready {
  background: #9FE1CB;
}

.ticket-next {
  cursor: grab;
  touch-action: none;
}

.ticket-next.dragging {
  cursor: grabbing;
  z-index: 50;
  box-shadow: 0 12px 24px -8px rgba(74, 27, 12, 0.25);
}

.ticket-next.claimed {
  border: none;
  border-left: 5px solid var(--pine);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.drag-hint {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--tangerine);
}

.ticket-next.claimed .drag-hint {
  color: var(--pine);
}

.confetti {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  z-index: 300;
  pointer-events: none;
}

.kickoff-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kickoff-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--mint-wash);
  color: var(--pine);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s cubic-bezier(.34, 1.8, .64, 1);
}

.kickoff-links a:hover {
  transform: translateX(4px);
}

/* ===== Soft sky (light mode) ===== */
.sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.8s;
}

.sun-glow {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(250, 199, 117, 0.75) 0%,
    rgba(250, 199, 117, 0.25) 45%,
    rgba(250, 199, 117, 0) 70%);
  animation: sun-float 10s ease-in-out infinite;
}

@keyframes sun-float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-20px, 14px); }
}

.shoreline {
  position: relative;
  height: 52px;
  overflow: hidden;
  transition: opacity 0.8s;
}

.shoreline svg {
  position: absolute;
  left: 0;
  width: 200%;
  height: 30px;
  animation: shore-drift 14s linear infinite;
}

.shoreline .wave-front {
  bottom: 4px;
}

.shoreline .wave-back {
  bottom: 16px;
  animation-duration: 22s;
  animation-direction: reverse;
}

.shoreline path {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
}

.shoreline .wave-front path {
  opacity: 0.85;
}

.shoreline .wave-back path {
  opacity: 0.5;
}

@keyframes shore-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Night mode: the stars take over */
body.night .sky,
body.night .shoreline {
  opacity: 0;
}

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .sun-glow,
  .shoreline svg {
    animation: none;
  }
}

/* ===== Contact section ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  min-height: 3.5em;
}

.rotator {
  color: var(--gold);
}

#rotating-word {
  display: inline-block;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(.34, 1.5, .64, 1);
}

#rotating-word.out {
  opacity: 0;
  transform: translateY(-14px);
}

#rotating-word.pre {
  opacity: 0;
  transform: translateY(14px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.34, 1.8, .64, 1), background 0.3s;
}

.contact-pill:hover {
  transform: translateY(-3px) rotate(-2deg);
}

.email-pill {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #4A1B0C;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.email-pill.copied {
  background: #E1F5EE;
  border-color: #E1F5EE;
  color: #0F6E56;
}

.contact-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  margin: 20px 0 0;
  color: #FAECE7;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9FE1CB;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(159, 225, 203, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(159, 225, 203, 0); }
  100% { box-shadow: 0 0 0 0 rgba(159, 225, 203, 0); }
}

@media (max-width: 700px) {
  .contact-title {
    min-height: 4.6em;
  }
}

/* ===== Toolkit (skills and learning) ===== */
.span-all {
  grid-column: 1 / -1;
}

.section-head .label {
  margin-top: 64px;
}

.section-head h2 {
  margin-top: 0;
}


.track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: tick 55s linear infinite;
}

.track.reverse {
  animation-direction: reverse;
  animation-duration: 62s;
}

@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tool {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  margin-right: 6px;
  border-radius: 6px;
  background: #F1EFE8;
  color: #444441;
  white-space: nowrap;
}

.tool-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--tangerine);
  white-space: nowrap;
  margin: 0 8px 0 18px;
}

.tool-cat::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tangerine);
}

/* Education */
.edu-school {
  font-size: 0.85rem;
  color: var(--tangerine);
  margin: 0 0 12px;
}

.badges {
  list-style: none;
  padding: 0;
  margin: 0;
}

.badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  padding: 5px 0;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.badge-icon.gold { background: #FAEEDA; color: #854F0B; }
.badge-icon.pink { background: #FBEAF0; color: #993556; }
.badge-icon.mint { background: #E1F5EE; color: #0F6E56; }

.badge-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #888780;
}

/* Leveling up */
.lang {
  padding: 6px 0 12px;
}

.lang-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-name {
  font-weight: 600;
}

.lang-alt {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--violet);
}

.lang:hover .lang-name {
  display: none;
}

.lang:hover .lang-alt {
  display: inline;
}

.lang-level {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--mint-wash);
  color: var(--pine);
  padding: 2px 10px;
  border-radius: 999px;
}

.level {
  display: flex;
  gap: 4px;
  margin: 8px 0 4px;
}

.level span {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(74, 27, 12, 0.1);
}

.level span.on {
  background: var(--pine);
}

.level span.half {
  background: linear-gradient(90deg, var(--pine) 50%, rgba(74, 27, 12, 0.1) 50%);
}

.lang-note {
  font-size: 0.8rem;
  opacity: 0.75;
  margin: 0;
}

.lang-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #888780;
}

/* Night mode versions */
body.night .skill-list li {
  background: rgba(250, 199, 117, 0.14);
  color: var(--gold);
}

body.night .tool {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

body.night .lang-alt {
  color: var(--gold);
}

body.night .level span {
  background: rgba(255, 255, 255, 0.12);
}

body.night .level span.on {
  background: var(--pine);
}

body.night .level span.half {
  background: linear-gradient(90deg, var(--pine) 50%, rgba(255, 255, 255, 0.12) 50%);
}

/* ===== About (status page) ===== */
.about-status {
  margin-top: 56px;
}

.about-intro,
.sla-banner,
.value-box {
  position: relative;
  transition: transform 0.7s cubic-bezier(.34, 1.56, .64, 1);
}

/* Banner */
.value-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 10px 4px;
}

.value-box-head .value-group {
  margin: 0;
}

.sla-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--mint-wash);
  color: var(--pine);
  padding: 4px 12px;
  border-radius: 999px;
}

.sla-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.15);
}

/* The banner says "exceeding SLA" once; the rows don't need to repeat it */
.value-head:not(.static) .value-status {
  display: none;
}

/* Value boxes */
.value-box {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 6px 10px;
  margin-bottom: 14px;
}

.value-box.personal {
  background: rgba(255, 255, 255, 0.4);
}

.value-group {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #888780;
  margin: 12px 10px 4px;
}

.value-row {
  border-bottom: 1px dashed rgba(74, 27, 12, 0.12);
}

.value-row:last-child {
  border-bottom: none;
}

/* Row header: resets browser button styles so colors stay ours */
.value-head {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 10px;
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}

.value-head:hover {
  background: rgba(255, 255, 255, 0.7);
}

.value-head:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.value-head.static {
  cursor: default;
}

.value-head.static:hover {
  background: none;
}

.value-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tone-bg);
  color: var(--tone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.value-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.value-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
}

.value-sub {
  font-size: 0.88rem;
  color: #993C1D;
  margin-top: 2px;
}

.value-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint-wash);
  color: var(--pine);
  white-space: nowrap;
}

.value-status.beta {
  background: #FAEEDA;
  color: #854F0B;
}

.value-status.load {
  background: #FBEAF0;
  color: #993556;
}

.value-chev {
  color: #888780;
  transition: transform 0.35s cubic-bezier(.34, 1.8, .64, 1);
}

.value-row.open .value-chev {
  transform: rotate(180deg);
}

/* Smooth open and close */
.value-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(.34, 1.2, .64, 1);
}

.value-row.open .value-body {
  grid-template-rows: 1fr;
}

.value-body > div {
  overflow: hidden;
}

.value-inner {
  padding: 0 10px 18px 58px;
}

.value-desc {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.value-where {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--tangerine);
  margin: 0 0 8px;
}

.where {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  margin-bottom: 8px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.where-co {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 2px;
}

.where-co.gg  { background: #E1F5EE; color: #0F6E56; }
.where-co.sh  { background: #FBEAF0; color: #993556; }
.where-co.dmz { background: #EEEDFE; color: #3C3489; }
.where-co.rt  { background: #F1EFE8; color: #5F5E5A; }

/* Night mode versions */
body.night .value-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night .value-box.personal {
  background: rgba(255, 255, 255, 0.03);
}

body.night .value-head:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.night .value-head.static:hover {
  background: none;
}

body.night .value-row {
  border-color: rgba(255, 255, 255, 0.1);
}

body.night .value-sub {
  color: #F0997B;
}

body.night .value-status.beta {
  background: rgba(250, 199, 117, 0.14);
  color: var(--gold);
}

body.night .value-status.load {
  background: rgba(237, 147, 177, 0.16);
  color: #ED93B1;
}

/* ===== Stack ===== */
.stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 6px;
}

.stack-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.stack-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: var(--tone-bg);
  color: var(--tone);
  flex-shrink: 0;
}

.stack-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-tools span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: #F1EFE8;
  color: #444441;
}

body.night .stack-tools span {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

/* ===== Chaos mode ===== */
body {
  overflow-x: hidden;
}

.status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--mint-wash);
  color: var(--pine);
  transition: all 0.4s;
}

.status::before {
  content: '● ';
}

body.chaos .status {
  background: #FBEAF0;
  color: var(--pink);
}

.chaos-lock,
.chaos-lock body {
  overflow: hidden;
}

.fix-button {
  position: fixed;
  left: 50%;
  top: calc(100% - 76px);
  transform: translate(-50%, 0);
  z-index: 100;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: var(--pine);
  color: #FFFFFF;
  cursor: pointer;
  transition: top 0.7s cubic-bezier(.34, 1.56, .64, 1),
              transform 0.3s cubic-bezier(.34, 1.8, .64, 1),
              font-size 0.4s, padding 0.4s, opacity 0.3s;
}

.fix-button:hover {
  transform: translate(-50%, 0) scale(1.06) rotate(-2deg);
}

/* During chaos: big, centered, pulsing */
body.chaos .fix-button {
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  padding: 20px 40px;
  animation: pulse 1.6s infinite;
}

body.chaos .fix-button:hover {
  transform: translate(-50%, -50%) scale(1.08) rotate(-2deg);
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(15, 110, 86, 0.6); }
  70%  { box-shadow: 0 0 0 24px rgba(15, 110, 86, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 110, 86, 0); }
}

.fix-button.tucked {
  opacity: 0;
  pointer-events: none;
}

.rechaos-wrap {
  text-align: center;
  margin-top: 32px;
}

.rechaos {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: var(--pine);
  color: #FFFFFF;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.34, 1.8, .64, 1);
}

.rechaos:hover {
  transform: scale(1.06) rotate(-2deg);
}

/* ===== Night mode ===== */
body {
  transition: background 0.6s, color 0.6s;
}

body.night {
  --peach: #0B1026;
  --card: #161D3A;
  --column: #121834;
  --ink: #F1EFE8;
  --pine: #5DCAA5;
  --mint-wash: #0F3D33;
  background: var(--peach);
}

/* ----- Sunset gradient hero ----- */
body.night .hero {
  background: linear-gradient(135deg, #EF9F27 0%, var(--tangerine) 45%, var(--pink) 100%);
}

body.night .hero .label {
  color: #412402;
}

body.night .hero p {
  color: #FFF4EE;
}


/* ----- Tickets washed in their company color ----- */
body.night .ticket {
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 22%, transparent),
      color-mix(in srgb, var(--accent) 6%, transparent)),
    #1A2148;
}

body.night .column {
  border-color: rgba(255, 255, 255, 0.06);
}

body.night .ticket {
  border-top-color: rgba(255, 255, 255, 0.08);
  border-right-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.night .ticket-next:not(.claimed) {
  background: transparent;
}

body.night .ticket-project {
  color: #F0997B;
}

body.night .ticket-metric {
  color: var(--gold);
}

/* ----- Board details tuned for the dark ----- */
body.night .ticket-labels span {
  background: rgba(250, 199, 117, 0.14);
  color: var(--gold);
}

body.night .ticket-foot {
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.night .ticket-progress {
  color: #B4B2A9;
}

body.night .ticket-progress .bar {
  background: rgba(255, 255, 255, 0.12);
}

header, main {
  position: relative;
  z-index: 1;
}

#stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s;
  z-index: 0;
}

body.night #stars {
  opacity: 1;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #FFFFFF;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: none;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.34, 1.8, .64, 1);
}

.theme-toggle:hover {
  transform: rotate(-20deg) scale(1.1);
}

/* ===== Phones ===== */
@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
    gap: 10px;
    
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .board {
    grid-template-columns: 1fr;
  }

  .column {
    min-height: auto;
  }

  #learning {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 32px 24px;
  }

  nav {
    gap: 12px;
  }

    .value-head:not(.static) .value-status {
    display: none;
  }

  .value-inner {
    padding-left: 10px;
  }

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

/* ===== Floating nav ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border: 1px solid transparent;
  transition: top .35s ease, padding .35s ease, background .35s ease,
              border-radius .35s ease, box-shadow .35s ease, border-color .35s ease;
}

#site-header.scrolled {
  top: 12px;
  width: min(620px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 20px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(60, 52, 137, 0.12);
}

#site-header.scrolled .status { display: none; }

/* night version */
body.night #site-header.scrolled {
  background: rgba(22, 29, 58, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* the kb tile: hidden everywhere unless the phone rule below turns it on */
.logo-mark { display: none; line-height: 0; }
.logo-mark img { width: 34px; height: 34px; border-radius: 9px; }

/* stop the sticky nav from covering section titles when you click a nav link */
section[id] { scroll-margin-top: 90px; }

/* phones */
@media (max-width: 640px) {
  #site-header.scrolled {
    top: 8px;
    width: calc(100% - 16px);
    padding: 6px 8px 6px 6px;
  }
  #site-header.scrolled .logo { display: none; }
  #site-header.scrolled .logo-mark { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  #site-header { transition: none; }
}

/* Floating nav: keep everything on one row on phones */
@media (max-width: 640px) {
  #site-header.scrolled {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  #site-header.scrolled nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    flex: 1;
    width: auto;
    gap: 10px;
    margin: 0;
    padding: 0;
  }
  #site-header.scrolled nav a {
    font-size: 12px;
    white-space: nowrap;
  }
  #site-header.scrolled .theme-toggle {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-left: 2px;
  }
}

/* extra-small phones */
@media (max-width: 370px) {
  #site-header.scrolled nav { gap: 6px; }
  #site-header.scrolled nav a { font-size: 11px; }
}