:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --text: #ededed;
  --muted: #a3a3a3;
  --dim: #858585;
  --border: #292929;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: #d4d4d4; color: #111111; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 1px solid #eeeeee; outline-offset: 6px; }
.skip { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 10px 20px; background: #eeeeee; color: #111111; }
.skip:focus { top: 15px; }
.shell { max-width: 700px; margin: auto; padding: 0 30px; }
.dock { display: flex; align-items: center; gap: 25px; padding-top: 36px; }
.dock a, .dock button { padding: 0; border: 0; background: none; color: var(--dim); font-size: 13px; }
.dock a:hover, .dock a.active, .dock button:hover { color: var(--text); }
.dock a.active { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.dock button { margin-left: auto; font-size: 17px; line-height: 1; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 58px 0 48px; }
h1 { margin: 0; font-size: 41px; font-weight: 650; letter-spacing: -1.6px; line-height: 1.2; }
.hero-description { margin: 10px 0 5px; font-size: 15px; color: var(--muted); }
.availability { font-size: 13px; color: var(--dim); }
/* Keep the original hero layout; only the sticker turns. */
.mascot-button { width: 152px; height: 152px; margin: -22px; flex-shrink: 0; position: relative; border: 0; padding: 0; background: none; perspective: 650px; border-radius: 18%; touch-action: manipulation; }
.mascot-flip { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.mascot-button.is-flipped .mascot-flip { transform: rotateY(180deg); }
.mascot-face { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; pointer-events: none; }
.mascot-front { transform: rotateY(0deg); }
.mascot-back { inset: 22px; transform: rotateY(180deg); border-radius: 18%; overflow: hidden; }
.mascot-face img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.mascot-back img { object-fit: cover; }
.section { padding-top: 42px; }
.about { padding-top: 0; }
.section-label { margin-bottom: 17px; }
h2 { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: -.3px; font-weight: 600; }
h3 { margin: 0 0 3px; font-size: 16px; line-height: 1.5; font-weight: 550; }
.about-copy p { margin: 0 0 17px; color: var(--muted); }
.project-row { position: relative; display: flex; gap: 18px; padding: 8px 0 25px; }
.project-row + .project-row { padding-top: 13px; }
.project-copy { flex: 1; min-width: 0; }
.project-kind { display: block; margin-bottom: 4px; color: var(--dim); font-size: 12px; }
.project-copy p { margin: 3px 0 7px; font-size: 14px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; }
.tags span { font-size: 12px; line-height: 1.7; color: var(--dim); }
.tags span:not(:last-child)::after { content: '·'; margin: 0 7px; }
.project-open { align-self: stretch; border: 0; padding: 0 2px 0 12px; background: none; color: var(--dim); }
.project-open::after { position: absolute; inset: 0; content: ''; }
.project-open:focus-visible { outline: none; }
.project-row:has(.project-open:focus-visible) { outline: 1px solid var(--text); outline-offset: 8px; }
.project-arrow { font-size: 19px; }
.project-row:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.project-row:hover .project-arrow { color: var(--text); }
.toolbox-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.group-label { margin: 0 0 9px; color: var(--dim); font-size: 12px; letter-spacing: .3px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 5px 16px; }
.skill-list span { font-size: 14px; color: #bdbdbd; }
.learning { margin-top: 20px; }
.learning p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.9; }
.learning strong { font-weight: 400; color: #c4c4c4; margin-right: 4px; }
.learning p > span { color: var(--dim); font-size: 12px; }
.education-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 6px 0 18px; }
.education-row p { margin: 0; color: var(--muted); font-size: 14px; }
.education-row div > span, .education-date { color: var(--dim); font-size: 12px; }
.education-date { white-space: nowrap; padding-top: 3px; }
.school-row { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; }
.certificate-title { margin-top: 30px; margin-bottom: 11px; }
.certificates > div { display: flex; justify-content: space-between; gap: 18px; padding: 6px 0; color: var(--muted); font-size: 13px; }
.issuer { color: var(--dim); font-size: 12px; }
.contact > p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.email-link { font-size: 18px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #555555; }
.email-link span { color: var(--dim); margin-left: 5px; }
.contact-actions { display: flex; align-items: center; gap: 23px; margin-top: 19px; color: var(--muted); font-size: 13px; }
.text-button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; }
.contact-actions a:hover, .text-button:hover { color: var(--text); }
.contact-actions span { color: var(--dim); margin-left: 5px; }
.contact .copy-status { min-height: 16px; margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.on-repeat { display: flex; align-items: center; gap: 15px; margin-top: 33px; padding-top: 19px; border-top: 1px solid var(--border); color: var(--dim); font-size: 12px; }
.on-repeat > span:first-child { flex: 1; }
.on-repeat strong { font-weight: 400; margin-left: 10px; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 15px; padding: 27px 0 45px; color: var(--dim); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#cursor-star { display: none; position: fixed; top: 0; left: 0; width: 16px; height: 16px; font-size: 15px; line-height: 16px; color: #eab272; pointer-events: none; z-index: 1000; transform: translate(-50%,-50%); }
.effects-off #cursor-star { display: none !important; }
@media (hover:hover) and (pointer:fine) {
  body.custom-cursor, body.custom-cursor a, body.custom-cursor button { cursor: none; }
  body.custom-cursor #cursor-star.visible { display: block; }
  body.custom-cursor input, body.custom-cursor select, body.custom-cursor textarea { cursor: auto; }
}
dialog { width: min(660px,calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 29px 32px; border: 0; border-radius: 0; background: #101010; color: var(--text); overflow: auto; }
dialog::backdrop { background: #000000c9; }
dialog, dialog button, dialog a { cursor: auto !important; }
dialog button, dialog a { cursor: pointer !important; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dialog-eyebrow { color: var(--dim); font-size: 12px; }
.dialog-close { padding: 0 5px; border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; }
#dialog-title { margin: 0 0 13px; font-size: 27px; line-height: 1.3; font-weight: 550; letter-spacing: -.7px; }
.dialog-summary { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 27px 0; }
.detail-grid h3 { margin: 0 0 7px; font-size: 14px; }
.detail-grid p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.demo-panel { margin: 27px 0 18px; padding: 23px 0 0; border-top: 1px solid var(--border); }
.demo-header { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.demo-header h3 { font-size: 16px; margin: 0; }
.sample-label { color: var(--dim); font-size: 12px; }
.demo-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 17px; }
.demo-controls label { font-size: 14px; color: var(--muted); }
select { min-width: 130px; padding: 7px 9px; border: 1px solid #424242; border-radius: 0; background: #141414; color: var(--text); font-size: 14px; }
.friend-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--border); gap: 15px; }
.friend-identity { font-size: 14px; }
.friend-state { font-size: 13px; color: var(--muted); }
.demo-note { margin: 15px 0 0; font-size: 12px; line-height: 1.8; color: var(--dim); }
.api-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.method { font: 13px ui-monospace, monospace; color: var(--muted); }
.api-bar select { flex: 1; min-width: 0; }
.run-button { border: 1px solid #a3a3a3; border-radius: 0; background: none; color: var(--text); padding: 7px 12px; font-size: 14px; }
.run-button:hover { background: #242424; }
.api-response { margin-top: 22px; border-top: 1px solid var(--border); }
.response-meta { display: flex; justify-content: space-between; padding: 12px 0; color: var(--dim); font-size: 12px; }
pre { margin: 0; padding: 4px 0 12px; font: 13px/1.8 ui-monospace, SFMono-Regular, monospace; color: #bdbdbd; white-space: pre-wrap; word-break: break-word; overflow: auto; }
.api-explain { margin: 16px 0 0; font-size: 14px; color: var(--muted); line-height: 1.8; }
.keyboard-hint { color: var(--dim); font-size: 12px; text-align: right; margin-top: 20px; }
@media (max-width: 600px) {
  .hero { padding-top: 42px; gap: 18px; }
  h1 { font-size: 35px; }
  .mascot-button { width: 128px; height: 128px; margin: -18px; }
  .mascot-back { inset: 18px; }
  .hero-description { font-size: 14px; }
  .toolbox-grid { gap: 20px; }
}
@media (max-width: 480px) {
  .shell { padding: 0 23px; }
  .dock { gap: 22px; padding-top: 25px; }
  .hero { padding: 35px 0 38px; gap: 12px; }
  h1 { font-size: 29px; letter-spacing: -1.1px; }
  .hero-description { max-width: 210px; font-size: 14px; }
  .mascot-button { width: 102px; height: 102px; margin: -12px; }
  .mascot-back { inset: 12px; }
  .availability { font-size: 12px; }
  .section { padding-top: 33px; }
  .about { padding-top: 0; }
  .project-row { gap: 12px; }
  .toolbox-grid { grid-template-columns: 1fr; gap: 20px; }
  .education-row { flex-wrap: wrap; gap: 4px; }
  .education-date { padding: 0; width: 100%; }
  .email-link { font-size: 17px; }
  .contact-actions { gap: 20px; }
  .on-repeat strong { display: block; margin-left: 0; }
  .footer { flex-wrap: wrap; gap: 9px 16px; }
  dialog { padding: 23px 20px; }
  #dialog-title { font-size: 24px; }
  .detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .demo-header { align-items: flex-start; flex-wrap: wrap; gap: 5px; }
  .api-bar { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Transparent photo cutouts sit in the margin, with no card or backdrop. */
.ye-stage { position: fixed; right: 16px; bottom: 12px; width: 238px; height: 220px; overflow: hidden; pointer-events: none; user-select: none; z-index: 4; visibility: hidden; contain: layout paint; }
.ye-stage.is-ready { visibility: visible; }
.ye-portrait { position: absolute; inset: 0; opacity: 0; }
.ye-portrait img { position: absolute; max-width: none; height: auto; pointer-events: none; }
.ye-sad img { width: 158px; left: 86px; top: 18px; }
.ye-happy img { width: 140px; left: 94px; top: 32px; transform: scale(var(--ye-pop, 1)); transform-origin: 50% 55%; }
.ye-drinking img { width: 199px; left: 72px; top: 31px; }
.ye-stage[data-pose="sad"] .ye-sad, .ye-stage[data-pose="drinking"] .ye-drinking, .ye-stage[data-pose="happy"] .ye-happy { opacity: 1; }
.rolling-bottle { position: fixed; top: 0; left: 0; width: 78px; aspect-ratio: 1; transform-origin: center; pointer-events: none; user-select: none; visibility: hidden; will-change: transform; z-index: 5; }
.rolling-bottle img { display: block; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 1179px) {
  .ye-stage { position: relative; right: auto; bottom: auto; margin: -8px 14px 12px auto; }
}
@media (max-width: 700px) {
  .shell { padding-right: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .rolling-bottle { display: none; }
}
