.presence-card {
  border-radius: 10px;
}

.work-section { padding: 100px 0 112px; }
.section-label { margin: 0; color: var(--ice); font: 10px var(--mono); }
.section-intro { display: grid; grid-template-columns: 28% 1fr; gap: 9%; align-items: start; margin-bottom: 50px; }
.section-intro h2 { max-width: 620px; margin: -7px 0 0; font: 700 clamp(32px, 4vw, 54px)/1.12 var(--sans); }
.section-intro h2 em { color: var(--ice); font-style: normal; }
.work-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgb(33 33 33 / 72%); transition: border-color .22s ease, transform .22s ease, background .22s ease; }
.project-card:hover { border-color: rgb(151 211 238 / 58%); background: rgb(38 42 45 / 88%); transform: translateY(-3px); }
.project-preview { position: relative; display: block; min-height: 245px; padding: 23px; overflow: hidden; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.project-preview::after { position: absolute; right: -55px; bottom: -100px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgb(151 211 238 / 15%), transparent 67%); content: ""; pointer-events: none; }
.project-card-cotoco .project-preview::after { right: -75px; bottom: -120px; background: radial-gradient(circle, rgb(126 156 171 / 15%), transparent 68%); }
.preview-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; color: var(--muted); font: 10px var(--mono); letter-spacing: .03em; }
.search-query { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 43px; padding: 12px 13px; border: 1px solid rgb(151 211 238 / 32%); border-radius: 6px; background: rgb(26 33 37 / 80%); color: #c9e4f3; font: 12px var(--mono); }
.search-query i { width: 15px; color: var(--ice); }
.search-results { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: 14px; }
.search-results div { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid rgb(255 255 255 / 5%); border-radius: 5px; background: rgb(255 255 255 / 2%); color: #b6bdc1; font: 10px var(--mono); }
.search-results b { color: var(--ice); font-weight: 400; }.search-results em { color: #7e9aa8; font-style: normal; }
.component-flow { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 28px 1.1fr; gap: 12px; align-items: center; min-height: 160px; margin-top: 25px; }
.code-fragments { display: grid; gap: 8px; }.code-fragments span { padding: 11px 10px; border: 1px dashed rgb(166 178 184 / 35%); border-radius: 5px; color: #aab4b8; font: 10px var(--mono); }.code-fragments span:nth-child(2) { margin-left: 14px; }.code-fragments span:nth-child(3) { margin-left: 5px; }
.component-flow > i { width: 18px; color: var(--ice); }.component-unit { display: grid; gap: 9px; padding: 19px 15px; border: 1px solid rgb(151 211 238 / 40%); border-radius: 7px; background: rgb(27 36 40 / 80%); box-shadow: inset 0 0 28px rgb(151 211 238 / 4%); }.component-unit small { color: var(--muted); font: 9px var(--mono); }.component-unit strong { color: #d8edf8; font: 600 15px var(--mono); }.component-unit span { display: block; height: 3px; border-radius: 4px; background: rgb(151 211 238 / 28%); }.component-unit span:last-child { width: 62%; background: rgb(151 211 238 / 16%); }
.project-card-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; min-height: 178px; padding: 25px 26px 27px; }.project-kicker { margin: 0 0 13px; color: var(--ice); font: 10px var(--mono); }.project-card-body h3 { margin: 0 0 9px; color: var(--text); font: 700 25px/1 var(--sans); letter-spacing: -.03em; }.project-card-body > div > p:last-child { max-width: 395px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }.work-arrow { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ice); transition: border-color .2s ease, background .2s ease, color .2s ease; }.work-arrow i { width: 17px; }.project-card:hover .work-arrow { border-color: var(--ice); background: var(--ice); color: #1d272d; }
.github-section { padding: 104px 0 112px; border-top: 1px solid var(--line); }
.github-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 147px; gap: 40px; align-items: start; color: #f0f6fc; }
.github-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 40px; }
.github-title-row h2 { margin: 0; color: var(--text); font: 700 clamp(48px, 6vw, 76px)/.92 var(--sans); letter-spacing: -.06em; }
.github-year-total { margin: 0 0 5px; color: var(--muted); font: 12px var(--mono); }
.github-heatmap { position: relative; overflow-x: auto; padding: 36px 40px 28px; border: 1px solid var(--line); border-radius: 10px; background: rgb(33 33 33 / 88%); color: #8b949e; }
.github-calendar { width: 100%; min-width: 0; }
.github-months { display: grid; grid-template-columns: repeat(53, minmax(0, 1fr)); gap: 4px; width: calc(100% - 48px); height: 31px; margin-left: 48px; color: var(--text); font: 11px var(--mono); white-space: nowrap; }
.github-months span { min-width: max-content; }
.github-graph { display: flex; gap: 12px; min-width: 0; }
.github-days { display: grid; grid-template-rows: repeat(7, 1fr); width: 36px; color: var(--muted); font: 10px/1 var(--mono); text-align: right; }
.github-grid { display: grid; flex: 1; grid-template-columns: repeat(53, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)); grid-auto-flow: column; gap: 4px; aspect-ratio: 53 / 7; }
.github-cell { display: block; width: 100%; height: 100%; border: 1px solid rgb(255 255 255 / 3%); border-radius: 2px; background: #2b3337; }
.github-cell.level-1 { background: #34505d; }.github-cell.level-2 { background: #4d7488; }.github-cell.level-3 { background: #6fa4c3; }.github-cell.level-4 { background: var(--ice); }
.github-cell[role="gridcell"]:hover { outline: 2px solid #f0f6fc; outline-offset: 2px; transform: scale(1.12); }
.github-tooltip { position: absolute; z-index: 4; display: none; padding: 7px 9px; border-radius: 6px; background: #484f58; color: #f0f6fc; font: 12px/1.35 -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); white-space: nowrap; pointer-events: none; }
.github-heatmap-foot { display: flex; align-items: center; justify-content: space-between; width: auto; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); }
.github-heatmap-foot a:hover { color: #58a6ff; text-decoration: underline; }
.github-scale { display: flex; align-items: center; gap: 6px; white-space: nowrap; }.github-scale i { width: 16px; height: 16px; border-radius: 2px; }.github-scale .level-0 { background: #2b3337; }.github-scale .level-1 { background: #34505d; }.github-scale .level-2 { background: #4d7488; }.github-scale .level-3 { background: #6fa4c3; }.github-scale .level-4 { background: var(--ice); }
.github-years { display: grid; gap: 8px; padding-top: 40px; }
.github-years button { width: 100%; padding: 11px 16px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #8b949e; font: 14px/20px -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); text-align: left; cursor: pointer; transition: color .15s ease, background .15s ease; }
.github-years button:hover { background: #161b22; color: #f0f6fc; }
.github-years button.is-active { background: #1f6feb; color: #fff; }
.token-usage-embed { padding: 0 0 112px; }
.token-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 147px; gap: 40px; align-items: start; }
.token-title-row { display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin: 0 0 12px; }
.token-title-row h2 { margin: 0; color: #f0f6fc; font: 400 20px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); letter-spacing: 0; }
.model-mix h3 em { color: #58a6ff; font-style: normal; }
.token-usage-embed .heatmap { position: relative; padding: 16px; border: 1px solid #30363d; border-radius: 6px; background: #0d1117; overflow-x: auto; }
.token-usage-embed .heatmap-months { display: grid; grid-template-columns: repeat(53, 10px); gap: 3px; width: auto; height: 17px; margin-left: 28px; color: #8b949e; font: 12px/1.15 -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); white-space: nowrap; }
.token-usage-embed .heatmap-months span { min-width: max-content; }
.token-usage-embed .heatmap-layout { display: flex; gap: 4px; min-width: 0; width: max-content; }
.token-usage-embed .heatmap-days { display: grid; grid-template-rows: repeat(7, 10px); gap: 3px; width: 24px; color: #8b949e; font: 12px/10px -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); text-align: left; }
.token-usage-embed .heatmap-grid { display: grid; grid-template-columns: repeat(53, 10px); grid-template-rows: repeat(7, 10px); grid-auto-flow: column; gap: 3px; }
.token-usage-embed .heatmap-cell { display: block; width: 10px; height: 10px; border: 0; border-radius: 2px; background: #2b3337; cursor: crosshair; transition: outline-color .12s ease; }
.token-usage-embed .heatmap-cell.level-1 { background: #0d419d; }.token-usage-embed .heatmap-cell.level-2 { background: #1f6feb; }.token-usage-embed .heatmap-cell.level-3 { background: #388bfd; }.token-usage-embed .heatmap-cell.level-4 { background: #58a6ff; }
.token-usage-embed .heatmap-cell:hover { outline: 1px solid #f0f6fc; outline-offset: 1px; transform: none; }
.token-usage-embed .heatmap-foot { display: flex; justify-content: flex-end; width: 814px; margin-top: 12px; padding: 0; border: 0; color: #8b949e; font: 12px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); }
.token-usage-embed .scale { display: flex; align-items: center; gap: 4px; }.token-usage-embed .scale i { width: 10px; height: 10px; border-radius: 2px; }.token-usage-embed .scale .level-0 { background: #2b3337; }.token-usage-embed .scale .level-1 { background: #0d419d; }.token-usage-embed .scale .level-2 { background: #1f6feb; }.token-usage-embed .scale .level-3 { background: #388bfd; }.token-usage-embed .scale .level-4 { background: #58a6ff; }
.token-usage-embed .chart-tooltip,.token-usage-embed .donut-tooltip { position: absolute; z-index: 3; display: none; min-width: 175px; max-height: calc(100% - 16px); overflow-y: auto; padding: 10px 12px; border: 1px solid #30363d; border-radius: 6px; background: #161b22; color: #f0f6fc; box-shadow: 0 10px 24px rgb(0 0 0 / 35%); font: 12px/1.65 -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); pointer-events: none; }.token-usage-embed .chart-tooltip b,.token-usage-embed .donut-tooltip b { display: block; color: var(--ice); font-size: 12px; }
.token-usage-embed .model-mix { display: grid; grid-template-columns: minmax(190px, .7fr) 240px minmax(290px, 1fr); gap: clamp(30px, 5vw, 78px); align-items: center; margin-top: 24px; padding: 38px 40px; border: 1px solid #30363d; border-radius: 6px; background: #0d1117; }
.usage-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 24px 0 0; border: 1px solid #30363d; border-radius: 6px; background: #0d1117; overflow: hidden; }.usage-summary div { padding: 20px 24px; }.usage-summary div + div { border-left: 1px solid #30363d; }.usage-summary dt { color: #8b949e; font: 12px -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); }.usage-summary dd { margin: 8px 0 0; color: #f0f6fc; font: 600 clamp(20px, 1.65vw, 28px)/1 -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); letter-spacing: -.035em; }
.model-mix h3 { margin: 0; color: #f0f6fc; font: 400 20px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); }.donut-wrap { position: relative; width: 240px; height: 240px; }.model-donut { display: block; width: 240px; height: 240px; transform: rotate(-90deg); overflow: visible; }.model-donut circle { fill: none; stroke-width: 27; cursor: pointer; transition: opacity .15s, stroke-width .15s; }.model-donut circle:hover { stroke-width: 31; }.donut-center { position: absolute; inset: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #0d1117; text-align: center; pointer-events: none; }.donut-center b { color: #f0f6fc; font: 600 23px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); letter-spacing: -.06em; }
.donut-tooltip { top: 0; left: 0; }.model-legend { display: grid; gap: 12px; }.model-legend button { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 0; border: 0; background: none; color: #f0f6fc; font: 12px -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); text-align: left; cursor: pointer; }.model-legend button:hover .legend-name { color: #58a6ff; }.legend-dot { width: 10px; height: 10px; border-radius: 50%; }.legend-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.legend-value { color: #8b949e; }
.token-empty-state { color: #8b949e; font: 12px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); }
.token-usage-embed { padding: 104px 0 112px; }.token-usage-embed .calendar-head { margin-bottom: 40px; }.token-usage-embed .calendar-head h2 { margin: 13px 0 0; font: 700 clamp(48px, 6vw, 76px)/.92 var(--sans); }
.token-usage-embed .heatmap { position: relative; padding: 36px 40px 28px; border: 1px solid var(--line); border-radius: 10px; background: rgb(33 33 33 / 88%); overflow: hidden; }.token-usage-embed .heatmap-months { display: grid; grid-template-columns: repeat(53, minmax(0, 1fr)); gap: 4px; width: calc(100% - 48px); height: 31px; margin-left: 48px; color: var(--text); font: 11px var(--mono); }.token-usage-embed .heatmap-layout { display: flex; gap: 12px; min-width: 0; width: auto; }.token-usage-embed .heatmap-days { grid-template-rows: repeat(7, 1fr); gap: 0; width: 36px; color: var(--muted); font: 10px/1 var(--mono); text-align: right; }.token-usage-embed .heatmap-grid { display: grid; flex: 1; grid-template-columns: repeat(53, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)); grid-auto-flow: column; gap: 4px; aspect-ratio: 53 / 7; }.token-usage-embed .heatmap-cell { width: 100%; height: 100%; border: 1px solid rgb(255 255 255 / 3%); background: #2b3337; }.token-usage-embed .heatmap-cell.level-1 { background: #34505d; }.token-usage-embed .heatmap-cell.level-2 { background: #4d7488; }.token-usage-embed .heatmap-cell.level-3 { background: #6fa4c3; }.token-usage-embed .heatmap-cell.level-4 { background: var(--ice); }.token-usage-embed .heatmap-cell:hover { outline: 2px solid #fff; outline-offset: 2px; transform: scale(1.12); }.token-usage-embed .heatmap-foot { width: auto; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); }.token-usage-embed .scale { gap: 6px; }.token-usage-embed .scale i { width: 16px; height: 16px; }.token-usage-embed .scale .level-0 { background: #2b3337; }.token-usage-embed .scale .level-1 { background: #34505d; }.token-usage-embed .scale .level-2 { background: #4d7488; }.token-usage-embed .scale .level-3 { background: #6fa4c3; }.token-usage-embed .scale .level-4 { background: var(--ice); }

/* Heatmap tooltips are summaries, never scroll containers. */
.token-usage-embed .chart-tooltip { min-width: 215px; max-width: 320px; max-height: none; overflow: hidden; }
.usage-summary { margin-top: 16px; border-color: var(--line); border-radius: 10px; background: rgb(33 33 33 / 56%); }.usage-summary div { padding: 24px 25px; }.usage-summary div + div { border-left-color: var(--line); }.usage-summary dt { color: var(--muted); font: 12px var(--mono); }.usage-summary dd { margin-top: 9px; color: var(--text); font: 700 clamp(20px, 1.65vw, 28px)/1 var(--sans); }.token-usage-embed .model-mix { margin-top: 72px; padding: 45px 42px; border-color: var(--line); border-radius: 10px; background: rgb(33 33 33 / 88%); }.model-mix h3 { color: var(--text); font: 700 clamp(30px, 3vw, 44px)/1 var(--sans); }.model-mix h3 em { color: var(--ice); }.donut-center { background: #212121; }.donut-center b { color: var(--text); font-family: var(--sans); }

/* GitHub and Token calendars intentionally share one layout system. */
.token-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 147px; gap: 40px; align-items: start; }.token-years { display: grid; gap: 8px; padding-top: 40px; }
.token-years button { width: 100%; padding: 11px 16px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #8b949e; font: 14px/20px -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); text-align: left; cursor: pointer; transition: color .15s ease, background .15s ease; }
.token-years button:hover { background: #161b22; color: #f0f6fc; }
.token-years button.is-active { background: #1f6feb; color: #fff; }
.token-usage-embed { padding: 104px 0 112px; }.token-usage-embed .calendar-head { margin: 0 0 40px; }.token-usage-embed .calendar-head h2 { margin: 0; }
.token-usage-embed .heatmap { padding: 36px 40px 28px; border-color: var(--line); border-radius: 10px; background: rgb(33 33 33 / 88%); }.token-usage-embed .heatmap-months { grid-template-columns: repeat(53, minmax(0, 1fr)); gap: 4px; width: calc(100% - 48px); height: 31px; margin-left: 48px; color: var(--text); font: 11px var(--mono); }.token-usage-embed .heatmap-layout { gap: 12px; width: auto; }.token-usage-embed .heatmap-days { grid-template-rows: repeat(7, 1fr); gap: 0; width: 36px; color: var(--muted); font: 10px/1 var(--mono); text-align: right; }.token-usage-embed .heatmap-grid { flex: 1; grid-template-columns: repeat(53, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)); grid-auto-flow: column; gap: 4px; aspect-ratio: 53 / 7; }.token-usage-embed .heatmap-cell { width: 100%; height: 100%; border: 1px solid rgb(255 255 255 / 3%); background: #2b3337; }.token-usage-embed .heatmap-foot { width: auto; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); }.token-usage-embed .scale { gap: 6px; }.token-usage-embed .scale i { width: 16px; height: 16px; }.token-usage-embed .scale .level-0 { background: #2b3337; }
.usage-summary dd small { color: var(--muted); font: 400 10px var(--mono); letter-spacing: 0; white-space: nowrap; }

.other-models { display: grid; gap: 12px; margin: 0; padding: 0; }.other-model { display: grid; grid-template-columns: 11px minmax(0, 1fr) auto; gap: 10px; align-items: center; color: #f0f6fc; font: 12px -apple-system,BlinkMacSystemFont,'Segoe UI',var(--sans); }.other-model .legend-dot { background: #6b7880; }.other-model .legend-value { color: #8b949e; }
.closing-section { padding: 0 0 88px; }
.now-card { display: grid; grid-template-columns: 28% 1fr; gap: 9%; padding: 49px 52px 52px; border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(ellipse 55% 110% at 100% 50%, rgb(143 207 243 / 10%), transparent 72%), rgb(33 33 33 / 74%); }
.now-card h2 { max-width: 590px; margin: -6px 0 17px; color: var(--text); font: 700 clamp(28px, 3.5vw, 45px)/1.13 var(--sans); letter-spacing: -.04em; }.now-card h2 em { color: var(--ice); font-style: normal; }.now-card div > p { max-width: 570px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.contact-row { display: grid; grid-template-columns: 28% 1fr auto; gap: 9%; align-items: center; margin-top: 14px; padding: 21px 25px; border: 1px solid var(--line); border-radius: 10px; background: rgb(33 33 33 / 54%); }.contact-row > p { margin: 0; color: var(--muted); font: 10px var(--mono); }
.contact-email { display: inline-flex; align-items: center; gap: 11px; width: max-content; padding: 0 0 5px; border: 0; border-bottom: 1px solid var(--ice); background: transparent; color: var(--text); cursor: pointer; font: 16px var(--mono); }.contact-email i,.contact-github i { width: 17px; color: var(--ice); }.contact-github { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 11px var(--mono); }.contact-github:hover { color: var(--ice); }

/* First-visit transition: four restrained strokes reveal the profile page. */
.flow-intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
  background: #2a2d30;
  opacity: 0;
  visibility: hidden;
  transition: opacity .56s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .56s;
}

.flow-intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

html.flow-intro-pending body {
  overflow: hidden;
}

html.flow-intro-pending body > :not(.flow-intro):not(script) {
  opacity: var(--flow-reveal, 0);
  transform: translateY(calc((1 - var(--flow-reveal, 0)) * 2px));
  transition: none;
}

html.flow-intro-pending .flow-intro {
  display: block;
  opacity: 1;
  visibility: visible;
  transition: none;
  animation: flow-intro-failsafe .01s linear 4.2s forwards;
}

@keyframes flow-intro-failsafe {
  to { opacity: 0; visibility: hidden; }
}

.flow-intro.is-leaving {
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .flow-intro { display: none !important; }
  html.flow-intro-pending body { overflow: auto; }
  html.flow-intro-pending body > :not(.flow-intro):not(script) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  .work-section { padding: 68px 0 76px; }
  .section-intro { display: block; }
  .section-intro { margin-bottom: 34px; }
  .section-intro h2 { margin-top: 24px; font-size: 34px; }
  .work-list { grid-template-columns: 1fr; gap: 14px; }
  .project-preview { min-height: 218px; padding: 19px; }
  .search-query { margin-top: 33px; }.component-flow { min-height: 142px; margin-top: 18px; }
  .project-card-body { min-height: 0; padding: 22px 20px 23px; }.project-card-body h3 { font-size: 22px; }.project-card-body > div > p:last-child { font-size: 12px; }
  .work-arrow { width: 32px; height: 32px; }
  .github-section { padding: 70px 0 76px; }.github-profile-layout { display: block; }.github-title-row { margin-bottom: 30px; }.github-title-row h2 { font-size: 48px; }.github-year-total { margin-bottom: 3px; font-size: 10px; }.github-heatmap { margin-inline: -20px; padding: 28px 20px 24px; border-inline: 1px solid var(--line); border-radius: 10px; }.github-months { gap: 2px; width: calc(100% - 43px); height: 25px; margin-left: 43px; font-size: 8px; }.github-graph { gap: 7px; }.github-days { width: 36px; font-size: 8px; }.github-grid { gap: 2px; }.github-heatmap-foot { margin-top: 22px; padding-top: 16px; }.github-scale { gap: 4px; }.github-scale i { width: 13px; height: 13px; }.github-years { display: flex; gap: 5px; margin-top: 18px; padding-top: 0; overflow-x: auto; }.github-years button { flex: 0 0 auto; width: auto; padding: 7px 12px; }
  .token-profile-layout { display: block; }.token-years { display: flex; gap: 5px; margin-top: 18px; overflow-x: auto; }.token-years button { flex: 0 0 auto; width: auto; padding: 7px 12px; }
  .token-usage-embed { padding: 70px 0 76px; }.token-usage-embed .calendar-head { margin-bottom: 30px; }.token-usage-embed .calendar-head h2 { margin-top: 24px; font-size: 48px; }
  .token-usage-embed .heatmap { margin-inline: -20px; padding: 28px 20px 24px; border-inline: 1px solid var(--line); }
  .token-usage-embed .heatmap-months { gap: 2px; width: calc(100% - 43px); margin-left: 43px; font-size: 8px; }
  .token-usage-embed .heatmap-layout { gap: 7px; }.token-usage-embed .heatmap-days { width: 36px; font-size: 8px; }.token-usage-embed .heatmap-grid { gap: 2px; }.token-usage-embed .heatmap-foot { margin-top: 26px; }
  .usage-summary { grid-template-columns: 1fr; margin-inline: -20px; border-inline: 0; }.usage-summary div { padding: 18px 20px; }.usage-summary div + div { border-top: 0; border-left: 0; }.usage-summary dd { font-size: 24px; }
  .token-usage-embed .model-mix { grid-template-columns: 1fr; gap: 34px; margin-top: 48px; padding: 34px 25px; }
  .token-usage-embed .donut-wrap { margin: auto; }
  .closing-section { padding-bottom: 60px; }.now-card { display: block; padding: 31px 24px 33px; }.now-card > .section-label { margin-bottom: 23px; }.now-card h2 { margin: 0 0 17px; font-size: 30px; }.now-card div > p { font-size: 12px; }.contact-row { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 10px; padding: 19px 20px; }.contact-row > p { width: 100%; }.contact-email { font-size: 14px; }.contact-github { margin-left: auto; }
}

/* Card atlas: a single visual system for profile, work, and activity. */
:root { --card: #232323; --card-raised: #292929; --card-line: #45494b; --blue-soft: #a7ddfa; }
body { background: #191a1b; }
.ambient-wallpaper { background: radial-gradient(ellipse 70% 38% at 82% -10%, rgb(75 139 177 / 19%), transparent 72%), radial-gradient(ellipse 42% 32% at 5% 70%, rgb(118 135 145 / 10%), transparent 72%), #191a1b; }
.ambient-wallpaper::before { opacity: .16; background-size: 128px 128px; }
.site-atlas { padding: 44px 0 92px; }
.atlas-card { border: 1px solid var(--card-line); border-radius: 8px; background: linear-gradient(135deg, rgb(41 43 44 / 94%), rgb(31 32 33 / 95%)); box-shadow: 0 18px 44px rgb(0 0 0 / 16%); }
.card-index, .activity-kicker { margin: 0; color: var(--ice); font: 10px/1 var(--mono); letter-spacing: .06em; }
.identity-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 46px; min-height: 432px; padding: 34px 38px; overflow: hidden; }
.identity-card::before { position: absolute; right: -210px; top: -245px; width: 550px; height: 550px; border: 1px solid rgb(167 221 250 / 13%); border-radius: 50%; box-shadow: 0 0 0 58px rgb(167 221 250 / 3%), 0 0 0 117px rgb(167 221 250 / 2%); content: ""; pointer-events: none; }
.identity-copy { position: relative; z-index: 1; }
.identity-copy h1 { margin: 26px 0 15px; color: var(--text); font: 700 clamp(48px, 6.2vw, 76px)/.92 var(--sans); letter-spacing: 0; }
.identity-lead { max-width: 500px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.identity-card .presence-card { position: relative; z-index: 1; width: 100%; align-self: stretch; justify-self: end; padding: 17px; border-color: rgb(241 241 241 / 19%); border-radius: 7px; background: rgb(27 29 30 / 76%); box-shadow: none; }
.identity-card .presence-top { display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--card-line); color: var(--muted); font: 10px var(--mono); }
.identity-card .presence-card .portrait { width: 88px; height: 88px; margin: 20px 0 13px; }.identity-card .presence-card .portrait img { border: 1px solid rgb(167 221 250 / 30%); filter: saturate(.75); }.identity-card .presence-card .portrait span { border-color: #202223; }
.identity-card .presence-card h2 { margin: 0; color: var(--text); font: 700 21px/1 var(--sans); }.identity-card .presence-card > p { margin: 4px 0 17px; color: var(--muted); font: 11px var(--mono); }.identity-card .presence-card dl { margin: 0; padding: 14px 0; border-block: 1px solid var(--card-line); }.identity-card .presence-card dl div + div { margin-top: 11px; }.identity-card .presence-card dt { color: var(--muted); font: 9px var(--mono); }.identity-card .presence-card dd { margin: 3px 0 0; color: var(--text); font: 11px var(--mono); }.identity-card .presence-card > a { display: flex; justify-content: space-between; padding-top: 14px; color: var(--ice); font: 10px var(--mono); }.identity-card .presence-card > a i { width: 14px; }

.work-section, .activity-section { padding: 84px 0 0; }
.atlas-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.atlas-section-head h2 { margin: 0; color: var(--text); font: 700 clamp(24px, 3vw, 34px)/1 var(--sans); letter-spacing: 0; }
.work-list { gap: 18px; }
.project-card { min-height: 432px; border-color: var(--card-line); border-radius: 8px; background: linear-gradient(140deg, rgb(43 45 46 / 96%), rgb(32 33 34 / 96%)); box-shadow: 0 12px 34px rgb(0 0 0 / 13%); }
.project-card:hover { border-color: rgb(167 221 250 / 58%); background: linear-gradient(140deg, rgb(48 51 52 / 98%), rgb(35 37 38 / 98%)); transform: translateY(-3px); }
.project-preview { min-height: 242px; border-bottom-color: var(--card-line); background: linear-gradient(135deg, rgb(22 30 34 / 96%), rgb(31 36 38 / 90%)); }
.project-card-xists .project-preview { padding: 20px; background: #171a1d; }
.project-card-xists .project-preview::after { display: none; }
.xists-cover-copy { position: relative; z-index: 1; }
.xists-cover-mark { position: absolute; z-index: 0; top: 50%; left: 50%; width: min(29%, 144px); height: auto; transform: translate(-50%, -50%); }
.xists-cover-copy { position: absolute; right: 20px; bottom: 20px; left: 20px; color: #f3f0e8; text-align: center; }.xists-cover-tagline { margin: 0; color: #d9d6cf; font: 600 14px/1.2 var(--sans); }
.project-card-cotoco .project-preview { background: linear-gradient(135deg, rgb(31 35 36 / 96%), rgb(27 33 36 / 90%)); }
.project-card-cotoco .project-preview { display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: radial-gradient(ellipse 70% 95% at -5% 50%, rgb(234 179 8 / 12%), transparent 72%), #161718; }
.project-card-cotoco .project-preview::before { position: absolute; top: -126px; left: -100px; width: 330px; height: 330px; border: 1px solid rgb(234 179 8 / 13%); border-radius: 50%; box-shadow: 0 0 0 58px rgb(234 179 8 / 2%); content: ""; }
.project-card-cotoco .project-preview::after { right: -86px; bottom: -138px; width: 278px; height: 278px; background: radial-gradient(circle, rgb(234 179 8 / 12%), transparent 68%); }
.cotoco-mark, .cotoco-pronounce, .cotoco-line, .cotoco-pipeline { position: relative; z-index: 1; }
.cotoco-mark { display: flex; justify-content: center; font: 800 clamp(51px, 6vw, 72px)/.84 var(--sans); letter-spacing: 0; }
.cotoco-mark span:nth-child(1) { color: #cacaca; }.cotoco-mark span:nth-child(2) { color: #c9ae6a; }.cotoco-mark span:nth-child(3) { color: #eab308; }
.cotoco-pronounce { margin: 22px 0 10px; color: #a9a9aa; font: 11px var(--mono); text-align: center; }
.cotoco-line { margin: 0; color: #d4d4d8; font: 13px var(--sans); text-align: center; }.cotoco-line b { display: inline-block; padding: 2px 5px; border-radius: 4px; background: rgb(234 179 8 / 13%); color: #eab308; font: 700 13px var(--mono); }
.cotoco-pipeline { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 24px; color: #d6d3d1; font: 9px var(--mono); }.cotoco-pipeline span { padding: 5px 7px; border: 1px solid rgb(234 179 8 / 22%); border-radius: 4px; background: rgb(234 179 8 / 6%); }.cotoco-pipeline i { width: 14px; height: 1px; background: rgb(234 179 8 / 40%); }
.project-preview::after { background: radial-gradient(circle, rgb(167 221 250 / 16%), transparent 67%); }
.project-card-body { min-height: 190px; padding: 26px; }
.activity-stack { display: grid; gap: 18px; }
.github-section, .token-usage-embed { padding: 30px; border-top: 1px solid var(--card-line); }
.github-profile-layout, .token-profile-layout { grid-template-columns: minmax(0, 1fr) 112px; gap: 26px; }
.github-title-row, .token-usage-embed .calendar-head { min-height: 54px; margin: 0 0 22px; }
.github-title-row h3, .token-usage-embed .calendar-head h3 { margin: 8px 0 0; color: var(--text); font: 700 32px/.9 var(--sans); letter-spacing: 0; }
.github-year-total { align-self: flex-end; margin: 0 0 2px; }
.github-heatmap, .token-usage-embed .heatmap { padding: 25px 28px 21px; border-color: var(--card-line); border-radius: 6px; background: rgb(23 25 26 / 76%); }
.github-heatmap-foot, .token-usage-embed .heatmap-foot { margin-top: 19px; padding-top: 15px; border-top-color: var(--card-line); }
.github-years { gap: 5px; padding-top: 96px; position: relative; top: -20px; align-content: start; }
.github-years button { padding: 8px 10px; border-radius: 4px; color: var(--muted); font: 12px/18px var(--mono); }
.github-years button:hover { background: rgb(167 221 250 / 8%); color: var(--text); }
.github-years button.is-active { background: var(--ice); color: #1d272d; }
.token-usage-embed { padding-bottom: 30px; }
.token-usage-embed .calendar-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }.token-usage-embed .calendar-head .github-year-total { margin: 0 0 2px; }
.usage-summary { margin-top: 14px; border-color: var(--card-line); border-radius: 6px; background: rgb(23 25 26 / 62%); }
.usage-summary div { padding: 19px 20px; }.usage-summary div + div { border-left-color: var(--card-line); }
.token-usage-embed .model-mix { margin-top: 18px; padding: 32px 34px; border-color: var(--card-line); border-radius: 6px; background: rgb(23 25 26 / 62%); }
.donut-center { background: #222425; }.model-mix h3 { font-size: 28px; }.closing-section { padding: 18px 0 0; }
.closing-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: clamp(42px, 8vw, 118px); align-items: center; min-height: 270px; padding: 48px 54px; background: radial-gradient(ellipse 42% 115% at 100% 50%, rgb(143 207 243 / 10%), transparent 72%), linear-gradient(135deg, rgb(41 43 44 / 94%), rgb(31 32 33 / 95%)); }
.closing-now h2 { max-width: 650px; margin: 0 0 17px; color: var(--text); font: 700 clamp(30px, 3.3vw, 44px)/1.12 var(--sans); letter-spacing: 0; }.closing-now h2 em { color: var(--ice); font-style: normal; }.closing-now > p:last-child { max-width: 640px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.closing-contact { display: grid; align-content: center; justify-items: start; gap: 10px; min-height: 132px; padding-left: clamp(34px, 5vw, 72px); border-left: 1px solid var(--card-line); }.closing-contact .contact-email { font-size: 17px; }.closing-contact .contact-note { margin: 0; color: var(--muted); font: 11px var(--mono); }

/* Both activity calendars use the same floating record card. It is allowed to
   rise above the calendar rather than being cut off by its lower edge. */
.github-heatmap, .token-usage-embed .heatmap { overflow: visible; }
.github-tooltip, .token-usage-embed .chart-tooltip { z-index: 12; min-width: 0; max-width: min(320px, calc(100vw - 16px)); max-height: none; overflow: visible; padding: 10px 12px; border: 1px solid var(--card-line); border-radius: 6px; background: #1c2024; color: var(--text); box-shadow: 0 16px 32px rgb(0 0 0 / 36%); font: 11px/1.6 var(--mono); white-space: normal; opacity: 0; transform: translateY(4px); transition: left .14s cubic-bezier(.22, 1, .36, 1), top .14s cubic-bezier(.22, 1, .36, 1), opacity .12s ease, transform .12s ease; will-change: left, top, opacity, transform; }
.github-tooltip.is-visible, .token-usage-embed .chart-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.github-tooltip { white-space: nowrap; }
.github-tooltip .tooltip-date, .token-usage-embed .chart-tooltip .tooltip-date { display: block; color: var(--muted); font: 10px/1.4 var(--mono); }.github-tooltip .tooltip-value, .token-usage-embed .chart-tooltip .tooltip-value { display: block; margin-top: 3px; color: var(--ice); font: 700 12px/1.55 var(--mono); }.token-usage-embed .tooltip-models { display: grid; gap: 3px; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--card-line); }.token-usage-embed .tooltip-model { display: grid; grid-template-columns: 5px minmax(0, 1fr) auto; gap: 6px; align-items: center; color: var(--muted); font: 10px/1.45 var(--mono); }.token-usage-embed .tooltip-model i { width: 5px; height: 5px; border-radius: 50%; background: var(--ice); }.token-usage-embed .tooltip-model b { color: var(--text); font: 500 10px/1.45 var(--mono); }.heatmap-cell.is-future, .github-cell.is-future { opacity: .42; cursor: default; pointer-events: none; }
.github-cell.is-padding { visibility: hidden; pointer-events: none; }
.token-usage-embed .heatmap-cell.is-padding { visibility: hidden; pointer-events: none; }

/* Preserve usable, square activity cells on narrow screens. */
@media (max-width: 760px) {
  .github-heatmap, .token-usage-embed .heatmap { overflow-x: auto; overflow-y: visible; scrollbar-width: thin; scrollbar-color: var(--card-line) transparent; }
  .github-calendar, .token-usage-embed .heatmap-layout { width: max-content; min-width: 726px; }
  .github-months, .token-usage-embed .heatmap-months { grid-template-columns: repeat(53, 10px); gap: 4px; width: 738px; margin-left: 38px; font-size: 10px; }
  .github-graph, .token-usage-embed .heatmap-layout { gap: 8px; }
  .github-days, .token-usage-embed .heatmap-days { grid-template-rows: repeat(7, 10px); gap: 4px; width: 30px; font-size: 9px; line-height: 10px; }
  .github-grid, .token-usage-embed .heatmap-grid { flex: none; grid-template-columns: repeat(53, 10px); grid-template-rows: repeat(7, 10px); gap: 4px; width: 742px; height: 94px; aspect-ratio: auto; }
  .github-cell, .token-usage-embed .heatmap-cell { width: 10px; height: 10px; }
  .github-heatmap-foot, .token-usage-embed .heatmap-foot { width: 780px; }
}

@media (max-width: 760px) {
  .site-atlas { padding: 20px 0 58px; }
  .identity-card { grid-template-columns: 1fr; min-height: 0; gap: 28px; padding: 27px 24px 25px; }
  .identity-card::before { right: -320px; top: -330px; }
  .identity-copy h1 { margin: 21px 0 13px; font-size: 49px; }
  .identity-lead { font-size: 13px; }
  .identity-card .presence-card { width: 100%; min-height: 0; padding: 16px; }.identity-card .presence-card .portrait { width: 78px; height: 78px; margin: 18px 0 12px; }.identity-card .presence-card dd { font-size: 10px; }
  .work-section, .activity-section { padding-top: 54px; }.atlas-section-head { margin-bottom: 14px; }.atlas-section-head h2 { font-size: 26px; }
  .project-card { min-height: 0; }.project-preview { min-height: 218px; }.project-card-body { min-height: 0; }
  .project-card-xists .project-preview { padding: 16px; }.xists-cover-mark { top: 50%; width: min(33%, 124px); }.xists-cover-copy { right: 16px; bottom: 16px; left: 16px; }.xists-cover-tagline { font-size: 12px; }
  .cotoco-mark { font-size: 52px; }.cotoco-pronounce { margin-top: 18px; }.cotoco-line { font-size: 11px; }.cotoco-line b { font-size: 11px; }.cotoco-pipeline { gap: 5px; margin-top: 19px; font-size: 8px; }.cotoco-pipeline span { padding: 5px; }.cotoco-pipeline i { width: 8px; }
  .activity-stack { gap: 14px; }.github-section, .token-usage-embed { padding: 20px 16px; }.github-title-row, .token-usage-embed .calendar-head { min-height: 28px; margin-bottom: 17px; }.github-title-row h3, .token-usage-embed .calendar-head h3 { margin: 0; font-size: 28px; }.github-years, .token-years { padding-top: 0; }
  .github-year-total { display: none; }.token-usage-embed .calendar-head .github-year-total { display: block; font-size: 10px; }.github-heatmap, .token-usage-embed .heatmap { margin-inline: 0; padding: 19px 14px 16px; }.github-years, .token-years { margin-top: 14px; }.usage-summary { margin-inline: 0; border: 1px solid var(--card-line); }.usage-summary div + div { border-top: 1px solid var(--card-line); }.token-usage-embed .model-mix { margin-top: 14px; padding: 25px 20px; }.closing-section { padding-top: 14px; }.closing-card { display: block; padding: 27px 24px; }.closing-now h2 { margin: 0 0 14px; font-size: 29px; }.closing-now > p:last-child { font-size: 12px; }.closing-contact { gap: 13px; min-height: 0; margin-top: 27px; padding: 21px 0 0; border-top: 1px solid var(--card-line); border-left: 0; }.closing-contact .contact-email { font-size: 14px; }
}
