/* Palette, typography and spacing can be customized here. */
:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #f0f8fd; --ink: #002334;
  --muted: #507680; --dim: #7b98a5; --line: #d7e6f0;
  --accent: #1c98d7; --accent-strong: #1075a7; --accent-soft: #e8f4fc;
  --yellow: #ffbb00; --red: #ea4335; --green: #67b134; --amber: #f29900;
  --line-soft: #e4eef5;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --radius: 30px;
  --shadow: 0 1px 2px rgba(16, 60, 80, .05), 0 10px 30px rgba(16, 60, 80, .07);
  --shadow-hover: 0 2px 4px rgba(16, 60, 80, .06), 0 20px 48px rgba(16, 60, 80, .13);
  --ease: cubic-bezier(.22, .68, .32, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background-color: var(--bg); background-image: linear-gradient(180deg, #f0f8fd 0, #ffffff 640px); background-repeat: no-repeat; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
::selection { background: #bee3f8; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .5; cursor: wait; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-small { width: 18px; height: 18px; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.mono { font: .75rem/1.5 var(--mono); letter-spacing: .035em; }
.accent { color: var(--accent); }
.skip-link { position: fixed; top: -80px; left: 24px; padding: 12px 20px; z-index: 100; border-radius: 8px; background: var(--accent); color: #fff; }
.skip-link:focus { top: 12px; }

/* Decorative thread line running through the whole page (as on the reference site) */
.thread-line { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0; opacity: .8; pointer-events: none; user-select: none; }
body { position: relative; }
main, .footer { position: relative; z-index: 1; }

/* Header */
.header { height: 80px; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: #fffffff2; backdrop-filter: blur(18px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 28px; font-weight: 800; letter-spacing: -1.4px; line-height: 1; }
.brand-symbol { position: relative; width: 31px; height: 33px; display: grid; place-items: center; border-radius: 10px; background: var(--yellow); color: var(--ink); letter-spacing: -3px; padding-right: 5px; font-size: 31px; }
.brand-symbol > span { position: absolute; right: 5px; top: 1px; font-size: 17px; letter-spacing: 0; color: var(--red); }
.brand .accent { color: var(--red); }
.navigation { display: flex; gap: 33px; margin-left: 64px; }
.navigation a { font-size: .875rem; color: var(--muted); transition: color .2s; }
.navigation a:hover, .navigation a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-github { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .875rem; transition: border-color .2s, background .2s; }
.header-github > .icon:first-child { width: 19px; height: 19px; }
.header-github:hover { border-color: var(--accent); background: var(--accent-soft); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; }
.menu-toggle span { height: 2px; border-radius: 2px; background: var(--ink); width: 22px; display: block; margin: 5px 0; transition: transform .2s; }

/* First screen */
.hero { padding-top: 34px; }
.hero-topline { display: flex; justify-content: space-between; color: var(--dim); letter-spacing: .06em; }
.hero-topline > span:first-child { display: flex; align-items: center; gap: 9px; }
.tiny-cross { color: var(--red); font-size: 20px; line-height: 14px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 54px; padding: 67px 0 72px; }
.hero-copy { min-width: 0; }
.intro { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; font-size: .875rem; color: var(--muted); }
.intro-line { width: 26px; height: 2px; border-radius: 2px; background: var(--accent); }
h1 { font-weight: 700; font-size: clamp(3.75rem, 5.95vw, 5.75rem); line-height: 1.025; letter-spacing: -.065em; text-wrap: balance; }
h1 .accent-line { display: block; color: var(--accent); font-size: .77em; letter-spacing: -.055em; margin-top: 9px; }
.title-dot { color: var(--red); }
.hero-description { font-size: 1rem; line-height: 1.8; color: var(--muted); max-width: 400px; margin-top: 28px; }
.hero-buttons { display: flex; align-items: center; gap: 26px; margin-top: 31px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 52px; padding: 12px 26px; border-radius: 999px; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.button:hover { transform: translateY(-2px); }
.button-accent { color: #fff; background: var(--accent); box-shadow: 0 6px 18px rgba(28, 152, 215, .28); }
.button-accent:hover { background: var(--accent-strong); box-shadow: 0 10px 26px rgba(26, 115, 232, .38); }
.text-link { display: inline-flex; gap: 14px; align-items: center; font-size: .875rem; font-weight: 500; padding: 0; min-height: 44px; color: var(--accent); }
.text-link > .icon { transition: transform .2s; }
.text-link:hover > .icon { transform: translate(3px, -3px); }
.hero-note { display: flex; gap: 19px; color: var(--dim); margin-top: 26px; }
.hero-note span + span::before { content: "/"; margin-right: 19px; color: #d4d7dc; }
.system-panel { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.panel-heading { height: 46px; display: flex; justify-content: space-between; align-items: center; padding: 0 19px; border-bottom: 1px solid var(--line); color: var(--muted); }
.panel-heading > span:first-child { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.panel-heading > span:last-child { color: var(--dim); }
.panel-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.system-diagram { height: 365px; position: relative; background-image: radial-gradient(#dfe3e8 .9px, transparent .9px); background-size: 19px 19px; overflow: hidden; }
.diagram-caption { position: absolute; top: 23px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: var(--dim); font-size: .75rem; letter-spacing: .04em; }
.connections { position: absolute; inset: 0; width: 100%; height: 100%; }
.connection { fill: none; stroke: #d4d7dc; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.flow { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 9 180; animation: flow 7s linear infinite; vector-effect: non-scaling-stroke; }
.flow-two { animation-delay: -3.5s; stroke: var(--red); }
.core-ring { fill: none; stroke: #e3d28f; stroke-dasharray: 3 5; }
.corner { stroke: #d7dce3; fill: none; }
.core-node { position: absolute; top: 48.65%; left: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: var(--yellow); color: var(--ink); box-shadow: 0 10px 30px rgba(251, 188, 4, .45); }
.core-node .icon { width: 30px; height: 30px; stroke-width: 2; }
.core-node > span { font-size: 16px; font-weight: 700; letter-spacing: -.5px; }
.diagram-node { position: absolute; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 8px rgba(60, 64, 67, .08); border-radius: 999px; height: 40px; min-width: 117px; padding: 0 14px; transform: translate(-50%, -50%); font: .75rem var(--mono); color: var(--muted); white-space: nowrap; }
.diagram-node > .icon { width: 17px; height: 17px; color: var(--accent); }
.node-glyph { font-size: 16px; color: var(--accent); }
.node-one { left: 22.92%; top: 25.68%; } .node-two { left: 77.08%; top: 25.68%; }
.node-three { left: 22.92%; top: 77.03%; } .node-four { left: 77.08%; top: 77.03%; }
.diagram-coordinate, .diagram-scale { position: absolute; bottom: 18px; color: var(--dim); font-size: .75rem; }
.diagram-coordinate { left: 25px; } .diagram-scale { right: 25px; }
.system-tabs { display: flex; border-block: 1px solid var(--line); padding: 0 16px; gap: 14px; }
.system-tab { position: relative; font: .75rem/1.5 var(--mono); padding: 16px 0; color: var(--dim); flex: 1; white-space: nowrap; transition: color .2s; }
.system-tab::after { content: ""; height: 3px; border-radius: 3px 3px 0 0; background: transparent; position: absolute; bottom: -1px; left: 0; right: 0; }
.system-tab.active { color: var(--accent); } .system-tab.active::after { background: var(--accent); }
.system-tab:hover { color: var(--ink); }
.system-detail { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; min-height: 90px; }
.system-detail p { font-size: .875rem; color: var(--muted); line-height: 1.7; }
.detail-marker { color: var(--accent); font-size: 18px; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; padding: 23px 0; border-top: 1px solid var(--line); color: var(--dim); }
.hero-bottom a { display: flex; gap: 18px; align-items: center; color: var(--muted); }
.hero-bottom a:hover { color: var(--accent); }

/* Mascot */
.hero-dragon { position: absolute; top: -84px; right: 18px; width: 128px; height: auto; z-index: 2; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(60, 64, 67, .18)); }
.dragon-shadow { fill: #3c4043; opacity: .12; }
.dragon-float { animation: dragon-float 3.6s ease-in-out infinite alternate; }
.dragon-wing { transform-box: fill-box; animation: dragon-flap 2.4s ease-in-out infinite; }
.dragon-wing-left { transform-origin: 100% 100%; }
.dragon-wing-right { transform-origin: 0% 100%; animation-name: dragon-flap-right; }
.dragon-eyes { transform-box: fill-box; transform-origin: center; animation: dragon-blink 4.8s infinite; }
@keyframes dragon-float { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes dragon-flap { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
@keyframes dragon-flap-right { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(9deg); } }
@keyframes dragon-blink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }

/* Work */
.section { padding-block: 116px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; gap: 32px; }
.eyebrow { display: flex; gap: 12px; align-items: center; font: .75rem/1.5 var(--mono); letter-spacing: .06em; color: var(--dim); margin-bottom: 23px; }
.eyebrow > span { color: var(--accent); }
.work .eyebrow > span { color: var(--red); }
.about .eyebrow > span { color: var(--green); }
.stack .eyebrow > span { color: var(--amber); }
.contact .eyebrow > span { color: var(--red); }
h2 { font-size: clamp(2.5rem, 4vw, 3.75rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 600; text-wrap: balance; }
.muted-heading { color: var(--dim); }
.section-description { color: var(--muted); font-size: 1rem; line-height: 1.8; max-width: 310px; }
.project-card { border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.project-card:hover { border-color: #b9dcef; box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.featured-project { display: grid; grid-template-columns: 1fr 1.08fr; min-height: 405px; }
.featured-copy { padding: 29px 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.project-topline { display: flex; align-items: center; justify-content: space-between; color: var(--dim); font-size: .75rem; }
.project-status { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); color: var(--muted); padding: 3px 10px; border-radius: 999px; letter-spacing: 0; }
.project-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.project-card h3 { font-size: 2.5rem; line-height: 1.12; letter-spacing: -.05em; font-weight: 500; }
.featured-copy > div > p { font-size: 1rem; color: var(--muted); margin: 18px 0 22px; max-width: 385px; line-height: 1.8; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { font: .75rem/1.5 var(--mono); color: #3c4043; background: #f6f9fb; border: 1px solid var(--line-soft); padding: 5px 12px; border-radius: 999px; transition: border-color .2s, color .2s, background .2s; }
a:hover .tags span, .project-card:hover .tags span { border-color: #c4e2f2; }
.tags span:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.project-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icon-link { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; border-radius: 50%; color: var(--muted); transition: color .2s, background .2s; }
.icon-link:hover { color: var(--accent); background: var(--accent-soft); }
.project-actions > .text-link > .icon { color: var(--accent); }
.veil-visual { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); background: radial-gradient(ellipse at 55% 50%, #dce9fd, transparent 72%), #f1f4f9; overflow: hidden; padding: 58px 35px; }
.visual-label { display: flex; justify-content: space-between; position: absolute; left: 23px; right: 23px; top: 20px; color: var(--muted); }
.architecture-card { width: 100%; max-width: 385px; border: 1px solid #e0e4ea; border-radius: 16px; background: #fff; box-shadow: 0 20px 45px rgba(60, 64, 67, .18); transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) rotate(-3deg); transition: transform .55s; }
.featured-project:hover .architecture-card { transform: perspective(1000px) rotateY(0) rotateX(0) rotate(-1deg); }
.architecture-toolbar { height: 36px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef0f3; padding: 0 13px; color: var(--dim); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.window-dots i:nth-child(2) { background: #fbbc04; }
.window-dots i:last-child { background: var(--green); }
.architecture-content { padding: 28px 20px 23px; }
.architecture-v { display: block; color: var(--ink); text-align: center; font-size: 45px; line-height: 1; letter-spacing: -5px; }
.architecture-v > span { color: var(--accent); }
.architecture-content > p { text-align: center; font-size: 1.25rem; line-height: 1.3; margin: 16px 0 22px; letter-spacing: -.025em; color: var(--muted); }
.architecture-flow { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: .75rem; }
.architecture-flow > span { border: 1px solid #e0e4ea; border-radius: 999px; padding: 6px 10px; color: var(--muted); white-space: nowrap; }
.architecture-flow > i { font-style: normal; color: var(--dim); }
.visual-footnote { position: absolute; bottom: 18px; left: 23px; color: var(--dim); font-size: .75rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.small-project { padding: 24px; display: flex; flex-direction: column; }
.small-project > .project-topline > .icon { width: 18px; height: 18px; color: var(--accent); }
.small-project:nth-child(2) > .project-topline > .icon { color: var(--green); }
.small-project:nth-child(3) > .project-topline > .icon { color: var(--amber); }
.small-project h3 { font-size: 1.875rem; margin-top: 24px; }
.small-project > p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin: 13px 0 23px; }
.small-project > .tags { margin-top: auto; margin-bottom: 22px; }
.small-project > .project-actions { border-top: 1px solid var(--line); padding-top: 12px; }
.terminal-preview, .task-preview, .password-preview { height: 150px; display: flex; flex-direction: column; justify-content: center; margin-top: 20px; border-radius: 14px; background: #202124; padding: 18px; overflow: hidden; }
.terminal-comment { color: #9aa0a6; }
.terminal-preview > p { font-size: 1rem; white-space: nowrap; color: #e8eaed; margin: 10px 0 12px; }
.terminal-preview .accent { color: #fdd663; }
.terminal-cursor { color: #81c995; margin-left: 8px; }
.terminal-options { display: flex; gap: 10px; color: #bdc1c6; }
.terminal-options > span { padding-right: 10px; border-right: 1px solid #3c4043; }
.terminal-options > span:last-child { border: 0; }
.task-preview { gap: 13px; }
.task-preview > div { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: #bdc1c6; white-space: nowrap; }
.task-check { width: 13px; height: 13px; border: 1px solid #5f6368; border-radius: 3px; flex-shrink: 0; font-size: 12px; line-height: 11px; text-align: center; }
.task-check.done { border-color: #81c995; background: #81c995; color: #202124; }
.task-check.current { border-color: #81c995; }
.task-preview > div:first-child > span:nth-child(2) { text-decoration: line-through; color: #9aa0a6; }
.password-preview { text-align: center; }
.password-preview > span { color: #9aa0a6; font-size: .75rem; }
.password-preview > div { font-size: 1.875rem; letter-spacing: .07em; color: #e8eaed; margin: 6px 0; }
.password-preview > div > span { color: #fdd663; }
.all-projects { display: flex; align-items: center; justify-content: center; gap: 16px; width: fit-content; margin: 34px auto 0; padding: 14px 28px; font-size: .875rem; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 999px; background: #fff; transition: color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.all-projects:hover { color: var(--accent); border-color: #b9dcef; box-shadow: var(--shadow); transform: translateY(-2px); }

/* About, toolkit and GitHub */
.about { border-block: 1px solid var(--line); background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; }
.about h2 { font-size: clamp(2.5rem, 4.6vw, 4.375rem); }
.about-signature { display: flex; align-items: center; gap: 12px; color: var(--dim); margin-top: 34px; }
.about-signature > .icon { color: var(--accent); width: 20px; height: 20px; }
.about-lead { font-size: 1.375rem; line-height: 1.65; letter-spacing: -.025em; color: #3c4043; }
.about-lead > span { color: var(--accent); }
.about-copy > p + p { margin-top: 20px; font-size: 1rem; line-height: 1.85; color: var(--muted); }
.principles { margin-top: 27px; }
.principles > div { display: flex; gap: 20px; border-top: 1px solid var(--line); padding: 18px 0; }
.principles > div > .mono { padding-top: 4px; }
.principles > div:nth-child(1) > .mono { color: var(--accent); }
.principles > div:nth-child(2) > .mono { color: var(--red); }
.principles > div:nth-child(3) > .mono { color: var(--green); }
.principles p { font-size: .875rem; color: var(--muted); line-height: 1.8; }
.principles strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 3px; font-size: 1rem; }
.stack { padding-bottom: 44px; }
.stack-table { border-top: 1px solid var(--line); }
.stack-row { display: grid; grid-template-columns: 220px 1fr 180px; align-items: center; gap: 26px; border-bottom: 1px solid var(--line); padding: 29px 20px; margin-inline: -20px; border-radius: 16px; transition: background .25s var(--ease); }
.stack-row:hover { background: #f4fafd; }
.stack-category { display: flex; align-items: center; gap: 28px; }
.stack-category > .mono { color: var(--dim); }
.stack-category h3 { font-weight: 400; font-size: 1.125rem; letter-spacing: -.02em; }
.stack-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-tools > span { font-size: .875rem; line-height: 1.6; border: 1px solid var(--line); background: #fff; padding: 5px 14px; border-radius: 999px; white-space: nowrap; color: #3c4043; }
.stack-tools > .tool-prime { border-color: #d2e3fc; color: var(--accent); background: var(--accent-soft); }
.stack-note { color: var(--dim); text-align: right; font-size: .75rem; }
.github-section { padding-top: 60px; }
.github-card { display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.github-intro { position: relative; padding: 38px; }
.github-large { position: absolute; top: 39px; right: 35px; width: 28px; height: 28px; color: var(--dim); }
.github-intro h2 { font-size: 2.625rem; }
.github-intro > p:not(.eyebrow) { font-size: 1rem; color: var(--muted); margin-top: 22px; line-height: 1.8; }
.button-outline { border: 1px solid var(--line); margin-top: 27px; color: #3c4043; font: .875rem/1.5 var(--mono); min-height: 45px; }
.button-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.github-feed { padding: 28px 32px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); min-width: 0; }
.feed-heading { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.github-stats { display: flex; gap: 36px; margin: 12px 0 20px; }
.github-stats[hidden] { display: none; }
.github-stats > div { display: flex; flex-direction: column; gap: 3px; }
.github-stats strong { font-size: 1.75rem; line-height: 1.1; color: var(--accent); font-weight: 400; letter-spacing: -.04em; }
.github-stats span { font-size: .75rem; color: var(--muted); }
.activity-list { min-height: 240px; display: flex; flex-direction: column; justify-content: center; }
.activity-item { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 1px solid var(--line); }
.event-symbol { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 9px; color: var(--accent); flex-shrink: 0; font: 14px var(--mono); }
.activity-item > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.activity-item strong { font: .875rem/1.4 var(--mono); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item small { font-size: .75rem; color: var(--muted); line-height: 1.6; }
.activity-item > .icon { margin-left: auto; color: var(--dim); }
.activity-item:hover strong { color: var(--accent); }
.feed-status { color: var(--muted); font-size: .75rem; margin-top: 19px; line-height: 1.8; }

/* Contact and footer */
.contact { padding-top: 8px; padding-bottom: 64px; }
.contact-top { display: flex; align-items: flex-start; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 35px; gap: 30px; }
.contact-aside { color: var(--dim); padding-top: 3px; }
.contact-main { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin: 25px 0 38px; }
.contact h2 { font-size: clamp(3.75rem, 7.7vw, 7rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.04; }
.contact-arrow { width: 123px; height: 123px; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: border-color .2s, background .2s, transform .3s; margin-right: 14px; flex-shrink: 0; }
.contact-arrow > .icon { width: 55px; height: 55px; stroke-width: 1.1; color: var(--accent); transition: color .2s; }
.contact-arrow:hover { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.contact-arrow:hover > .icon { color: #fff; }
.contact-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; }
.contact-bottom > p { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.contact-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.contact-links > a { display: flex; align-items: center; gap: 8px; font-size: .875rem; min-height: 44px; }
.contact-links > a > .icon:first-child { width: 19px; height: 19px; color: var(--accent); }
.contact-links > a > .icon:last-child { width: 14px; height: 14px; color: var(--dim); }
.contact-links > a:hover { color: var(--accent); }
#copy-contact { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .875rem; min-height: 44px; padding: 0; }
#copy-contact:hover { color: var(--accent); }
.footer { border-top: 1px solid var(--line); padding-block: 29px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--dim); }
.footer > div { display: flex; align-items: center; gap: 16px; }
.footer-brand { font-size: 24px; color: var(--ink); gap: 8px; }
.brand-mascot { width: 30px; height: 30px; }
.back-top { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.back-top:hover { color: var(--accent); }
.back-top > .icon { transform: rotate(180deg); }

/* Interaction states */
.project-dialog { color: var(--ink); background: #fff; border: 0; border-radius: 28px; padding: 0; width: min(600px, calc(100% - 32px)); max-height: 85vh; max-height: 85dvh; box-shadow: 0 24px 80px rgba(60, 64, 67, .35); }
.project-dialog::backdrop { background: rgba(32, 33, 36, .5); backdrop-filter: blur(9px); }
.dialog-body { padding: 30px; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-top > .eyebrow { margin: 0; color: var(--accent); }
.project-dialog h2 { font-size: 2.625rem; margin: 24px 0 18px; }
.dialog-description { color: #3c4043; font-size: 1rem; line-height: 1.8; }
.dialog-body > .tags { margin: 20px 0 28px; }
.dialog-details { border-top: 1px solid var(--line); padding-top: 23px; }
.dialog-details h3 { font-size: 1rem; font-weight: 500; }
.dialog-details ul { padding-left: 19px; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.dialog-details li::marker { color: var(--accent); }
.dialog-note { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 25px 0; color: #3c4043; font-size: .875rem; }
.dialog-body > .button { margin-top: 2px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); max-width: calc(100% - 32px); width: max-content; color: #fff; background: #202124; border-radius: 10px; box-shadow: 0 10px 40px rgba(60, 64, 67, .4); padding: 13px 22px; font-size: .875rem; opacity: 0; pointer-events: none; z-index: 80; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.motion-ready .reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes flow { to { stroke-dashoffset: -378; } }

/* Tablet */
@media (min-width: 1600px) { .hero-grid { padding-block: 84px; } .hero-description { font-size: 1.0625rem; } .system-diagram { height: 395px; } }
@media (max-width: 1150px) {
  .wrap { width: calc(100% - 72px); } .hero-grid { gap: 30px; padding-block: 54px; }
  h1 { font-size: 5.8vw; } .system-diagram { height: 320px; }
  .hero-buttons { gap: 16px; } .hero-buttons .button { gap: 12px; }
  .stack-row { grid-template-columns: 190px 1fr; } .stack-note { display: none; }
  .featured-copy { padding: 26px; } .github-intro { padding: 30px; } .github-feed { padding: 25px; }
  .github-stats { gap: 25px; } .contact-links { gap: 16px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .small-project:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
  .small-project:last-child .project-topline { grid-column: 1 / -1; }
  .small-project:last-child .password-preview { grid-row: 2 / 5; margin: 0; height: 100%; min-height: 150px; }
  .small-project:last-child h3 { margin: 0; } .small-project:last-child > p { margin: 0; }
  .small-project:last-child > .tags { margin: 0; } .small-project:last-child .project-actions { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .header { height: 72px; } .navigation { gap: 20px; margin-left: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; } h1 { font-size: 5.25rem; }
  .hero-copy { max-width: 620px; } .hero-description { max-width: 500px; }
  .system-panel { width: 100%; max-width: 620px; } .system-diagram { height: 340px; }
  .hero-dragon { width: 104px; top: -56px; right: 18px; }
  .hero-note { margin-top: 24px; } .hero-bottom a { font-size: 0; gap: 0; }
  .featured-project { grid-template-columns: 1fr 1fr; }
  .veil-visual { padding-inline: 20px; } .architecture-flow { flex-wrap: wrap; }
  .visual-footnote { right: 20px; font-size: .75rem; }
  .section { padding-block: 80px; } .about-grid { gap: 7%; }
  .about-lead { font-size: 1.25rem; } .github-intro h2 { font-size: 2.25rem; }
  .github-large { display: none; } .github-stats { gap: 22px; }
  .contact-aside { display: none; } .contact-arrow { width: 95px; height: 95px; margin: 0; }
  .contact-bottom { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-note { display: none; }
}

/* Phone */
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); } .header { height: 64px; } .brand { font-size: 26px; }
  .header-github { padding: 9px 11px; } .header-github > span, .header-github > .icon-small { display: none; }
  .header-github > .icon:first-child { width: 20px; height: 20px; } .header-actions { gap: 10px; }
  .menu-toggle { display: block; }
  .navigation { display: none; position: absolute; top: 63px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 23px 25px; gap: 0; box-shadow: 0 16px 24px rgba(60, 64, 67, .18); }
  .navigation.is-open { display: flex; flex-direction: column; } .navigation > a { padding: 14px 5px; font-size: 1rem; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { padding-top: 24px; } .hero-topline { gap: 20px; }
  .hero-topline > span:last-child { display: none; }
  .hero-grid { gap: 38px; padding: 41px 0 30px; }
  .intro { margin-bottom: 21px; } h1 { font-size: clamp(3.75rem, 13vw, 5.5rem); line-height: 1.02; letter-spacing: -.055em; }
  h1 .accent-line { font-size: .72em; margin-top: 9px; }
  .hero-description { max-width: 420px; line-height: 1.8; margin-top: 23px; }
  .hero-buttons { flex-wrap: wrap; gap: 10px 20px; margin-top: 25px; }
  .hero-buttons .button { gap: 12px; white-space: nowrap; }
  .hero-buttons .text-link { white-space: nowrap; }
  .hero-note { gap: 16px; margin-top: 22px; } .hero-note span + span::before { margin-right: 16px; }
  .system-panel { max-width: 500px; } .system-diagram { height: 310px; }
  .hero-dragon { width: 88px; top: -48px; }
  .diagram-node { min-width: 105px; padding: 0 10px; gap: 5px; height: 37px; }
  .diagram-node > .icon { width: 16px; height: 16px; } .core-node { width: 88px; height: 88px; }
  .system-tabs { padding-inline: 18px; gap: 13px; } .system-detail { min-height: 96px; padding: 15px 19px; }
  .hero-bottom { gap: 20px; padding: 19px 0; } .hero-bottom > a > .icon { width: 20px; height: 20px; }
  .section { padding-block: 65px; } .section-heading { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 31px; }
  .eyebrow { margin-bottom: 19px; } h2 { font-size: 2.625rem; }
  .section-description br { display: none; }
  .featured-project { grid-template-columns: 1fr; } .featured-copy { padding: 24px; gap: 29px; }
  .project-card h3 { font-size: 2.25rem; } .featured-copy > div > p { max-width: 440px; }
  .veil-visual { border-left: 0; border-top: 1px solid var(--line); padding: 55px 30px; min-height: 340px; }
  .architecture-card { max-width: 365px; } .architecture-flow { gap: 7px; }
  .visual-footnote { font-size: .75rem; }
  .project-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .small-project, .small-project:last-child { padding: 24px; display: flex; gap: 0; }
  .terminal-preview, .task-preview, .password-preview, .small-project:last-child .password-preview { height: 155px; padding: 20px; margin-top: 20px; }
  .terminal-preview > p { font-size: 1.125rem; } .terminal-options { gap: 15px; }
  .task-preview { gap: 15px; } .task-preview > div { gap: 10px; }
  .password-preview > div { font-size: 2.125rem; }
  .small-project h3, .small-project:last-child h3 { font-size: 1.875rem; margin-top: 24px; }
  .small-project > p, .small-project:last-child > p { margin: 13px 0 20px; }
  .small-project > .tags, .small-project:last-child > .tags { margin-bottom: 22px; }
  .small-project > .project-actions { padding-top: 14px; }
  .all-projects { font-size: .875rem; text-align: center; }
  .about-grid { grid-template-columns: 1fr; gap: 35px; } .about h2 { font-size: 2.875rem; }
  .about-signature { margin-top: 24px; }
  .stack-row { grid-template-columns: 1fr; gap: 18px; padding: 25px 0; margin-inline: 0; }
  .stack-category { gap: 16px; } .stack-tools { gap: 8px; }
  .stack-tools > span { padding: 5px 10px; } .stack { padding-bottom: 22px; }
  .github-section { padding-top: 35px; } .github-card { grid-template-columns: 1fr; }
  .github-intro { padding: 28px; } .github-intro h2 { font-size: 2.5rem; }
  .github-large { display: block; top: 29px; right: 26px; width: 23px; height: 23px; }
  .github-feed { border-left: 0; border-top: 1px solid var(--line); padding: 20px 25px 25px; }
  .github-stats { justify-content: space-between; gap: 15px; margin-bottom: 26px; }
  .contact { padding-top: 0; padding-bottom: 40px; } .contact-top { padding-top: 27px; }
  .contact-main { gap: 15px; margin: 18px 0 27px; }
  .contact h2 { font-size: clamp(2.75rem, 9.8vw, 4.3rem); line-height: 1.1; }
  .contact-arrow { width: 61px; height: 61px; border-width: 1px; } .contact-arrow > .icon { width: 30px; height: 30px; }
  .contact-links { gap: 22px; } .contact-links > a { font-size: 1rem; }
  .footer { padding-block: 23px; } .footer > div { gap: 12px; } .footer-brand { font-size: 23px; }
  .dialog-body { padding: 24px; } .project-dialog h2 { font-size: 2.125rem; }
  .dialog-body > .button { width: 100%; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); } .hero-buttons { flex-wrap: wrap; gap: 10px 20px; }
  h1 .accent-line { font-size: .61em; }
  .hero-note { gap: 10px; } .hero-note span + span::before { margin-right: 10px; }
  .hero-dragon { width: 76px; top: -42px; right: 12px; }
  .diagram-node { min-width: 96px; } .diagram-node > .node-glyph, .diagram-node > .icon { display: none; }
  .contact-main { flex-wrap: wrap; } .contact-arrow { width: 55px; height: 55px; }
  .architecture-flow { gap: 4px; } .architecture-flow > span { padding: 5px; }
  .github-large { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .architecture-card, .featured-project:hover .architecture-card, .project-card:hover, .button:hover { transform: none; }
}

/* Hedgehog companion. The character is a generated transparent image. */
[hidden] { display: none !important; }
.hero-hedgehog { width:100%; display:flex; align-items:center; gap:12px; padding:8px 20px; border-radius:24px 24px 0 0; border-bottom:1px solid var(--line); background:linear-gradient(110deg,#edf5ff,#fff 80%); text-align:left; }
.hero-hedgehog img { width:80px; height:80px; object-fit:contain; transition:transform .3s; }
.hero-hedgehog span { font-size:.875rem; font-weight:600; color:#1967d2; }
.hero-hedgehog:hover img { transform:rotate(-9deg) translateY(-3px); }
.brand-mascot { width:40px; height:40px; object-fit:contain; }
.hedgehog-companion { position:fixed; z-index:30; right:max(20px,env(safe-area-inset-right)); bottom:max(18px,env(safe-area-inset-bottom)); width:90px; pointer-events:none; }
.hedgehog-toggle { display:grid; place-items:center; width:90px; height:90px; padding:0; border-radius:50%; pointer-events:auto; position:relative; touch-action:manipulation; }
.hedgehog-toggle img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 5px 9px #1a73e82b); animation:hedgehog-bob 4.5s ease-in-out infinite; transform-origin:50% 80%; }
.hedgehog-toggle:hover img { animation-play-state:paused; }
.hedgehog-hint { position:absolute; right:90%; top:24px; white-space:nowrap; font-size:.8125rem; background:#fff; border:1px solid #dce8fa; border-radius:999px; padding:5px 13px; color:#1967d2; box-shadow:0 3px 12px #1a73e81a; opacity:0; transform:translateX(5px); transition:opacity .2s,transform .2s; pointer-events:none; }
.hedgehog-toggle:hover .hedgehog-hint,.hedgehog-toggle:focus-visible .hedgehog-hint { opacity:1; transform:none; }
.hedgehog-panel { position:absolute; right:0; bottom:100px; width:min(320px,calc(100vw - 32px)); max-height:calc(100dvh - 160px); overflow-y:auto; overscroll-behavior:contain; background:#fff; border:1px solid #d9e6f8; border-radius:24px; padding:16px 22px 20px; box-shadow:0 12px 48px #28466a29; pointer-events:auto; animation:hedgehog-panel-in .2s ease-out; }
.hedgehog-panel-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.hedgehog-label { font: .6875rem var(--mono); letter-spacing:.05em; color:var(--muted); }
.hedgehog-panel h2 { font-size:1.4rem; line-height:1.3; letter-spacing:-.025em; margin:8px 0 10px; }
.hedgehog-panel h2 span { color:#1a73e8; }
.hedgehog-panel p { color:var(--muted); font-size:.9375rem; line-height:1.7; margin-bottom:17px; }
.hedgehog-shortcut { display:flex; justify-content:space-between; align-items:center; gap:14px; min-height:48px; padding:10px 14px; border-radius:12px; background:#edf4ff; color:#185abc; font-size:.875rem; margin-top:8px; }
.hedgehog-shortcut:hover { background:#dceaff; }
.hedgehog-hide { margin-top:12px; min-height:44px; padding:8px 0; color:var(--muted); font-size:.8125rem; text-decoration:underline; text-underline-offset:4px; }
.modal-open .hedgehog-companion { visibility:hidden; }
@keyframes hedgehog-bob { 0%,100% { transform:translateY(0) rotate(-3deg); } 50% { transform:translateY(-5px) rotate(3deg); } }
@keyframes hedgehog-panel-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* Reflow, safe areas, touch targets and text scaling across the entire page. */
main,section,article,.hero-grid>*,.project-grid>*,.about-grid>*,.github-card>*,.stack-row>* { min-width:0; }
html { scroll-padding-top:96px; }
body { overflow-wrap:break-word; }
.hero-buttons,.hero-note { flex-wrap:wrap; }
.hero-buttons .button { white-space:nowrap; }
.header-github,.navigation a,.system-tab { min-height:44px; }
.navigation a { display:flex; align-items:center; }
.project-topline { flex-wrap:wrap; gap:8px; }
.terminal-preview,.task-preview,.password-preview { height:auto; min-height:150px; }
.task-preview>div { white-space:normal; }
.terminal-preview>p { white-space:normal; overflow-wrap:anywhere; }
.architecture-flow { flex-wrap:wrap; }
.diagram-caption { max-width:90%; text-align:center; white-space:normal; }
.system-detail { min-height:108px; }
.project-dialog { width:min(600px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overscroll-behavior:contain; }
.dialog-top { position:sticky; top:-1px; background:#fff; z-index:1; padding-bottom:8px; }
.dialog-top>.eyebrow { min-width:0; overflow-wrap:anywhere; }
.contact-links { min-width:0; }
.footer { padding-bottom:max(110px,calc(env(safe-area-inset-bottom) + 90px)); }
.toast { bottom:110px; text-align:center; }
@media (min-width:901px) and (max-width:1100px) {
  .hero-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; }
  .hero-buttons { align-items:flex-start; gap:12px; }
  .hero-note { gap:10px; }
  .hero-note span+span::before { margin-right:10px; }
  .diagram-node { min-width:0; padding-inline:8px; gap:5px; }
}
@media (min-width:701px) and (max-width:900px) {
  .hero-grid { grid-template-columns:minmax(0,1fr); }
  .hero-copy,.system-panel { max-width:100%; }
  .system-diagram { height:360px; }
  h1 { font-size:clamp(3.75rem,9vw,5.5rem); }
  .header-inner { gap:20px; }
  .navigation { gap:18px; }
  .github-card { grid-template-columns:minmax(0,1fr); }
  .github-feed { border-left:0; border-top:1px solid var(--line); }
}
@media (max-width:700px) {
  .wrap { width:calc(100% - 40px); }
  h1 { font-size:clamp(3rem,12.5vw,5rem); }
  h1 .accent-line { font-size:.72em; }
  h2,.about h2 { font-size:clamp(2rem,8.5vw,3rem); }
  .hero-buttons { gap:12px; align-items:center; }
  .hero-buttons .button { padding-inline:20px; }
  .hero-note { column-gap:12px; row-gap:8px; }
  .hero-note span+span::before { margin-right:12px; }
  .hero-hedgehog { padding:4px 14px; }
  .hero-hedgehog img { width:68px; height:68px; }
  .system-detail { min-height:120px; }
  .system-tab { font-size:.8125rem; }
  .navigation { max-height:calc(100dvh - 70px); overflow-y:auto; }
  .project-card,.github-card { border-radius:20px; }
  .small-project,.small-project:last-child,.featured-copy { padding:22px; }
  .veil-visual { min-height:330px; padding-inline:20px; }
  .visual-footnote { right:20px; }
  .contact-main { flex-wrap:wrap; }
  .contact h2 { font-size:clamp(2.35rem,9vw,4rem); }
  .contact-links { gap:8px 20px; }
  .hedgehog-companion { width:72px; right:max(10px,env(safe-area-inset-right)); bottom:max(10px,env(safe-area-inset-bottom)); }
  .hedgehog-toggle { width:72px; height:72px; }
  .hedgehog-panel { bottom:83px; right:0; width:min(320px,calc(100vw - 24px)); max-height:calc(100dvh - 110px); }
  .hedgehog-hint { display:none; }
  .github-stats { flex-wrap:wrap; gap:20px; }
  .activity-item { gap:10px; }
  .footer { flex-wrap:wrap; row-gap:20px; }
}
@media (max-width:380px) {
  .wrap { width:calc(100% - 32px); }
  h1 { font-size:clamp(2.85rem,14vw,3.2rem); }
  h1 .accent-line { font-size:.72em; }
  .hero-buttons { align-items:stretch; flex-direction:column; }
  .hero-buttons .text-link { justify-content:center; }
  .system-tabs { padding-inline:8px; gap:5px; }
  .system-tab { font-size:.75rem; }
  .diagram-node { font-size:.6875rem; min-width:84px; }
  .diagram-coordinate { left:14px; } .diagram-scale { right:14px; }
  .small-project,.small-project:last-child,.featured-copy,.github-intro,.github-feed { padding:18px; }
  .project-actions { gap:4px; }
  .project-actions .text-link { gap:8px; }
  .architecture-content { padding-inline:12px; }
  .github-intro h2 { font-size:2rem; }
  .dialog-body { padding:20px; }
}
@media (max-height:500px) and (orientation:landscape) {
  .header { position:relative; }
  .project-dialog { max-height:calc(100dvh - 16px); }
  .hedgehog-panel { max-height:calc(100dvh - 100px); bottom:78px; }
  .hedgehog-toggle { width:64px; height:64px; }
}
@media (hover:none) { .project-card:hover,.button:hover,.contact-arrow:hover,.featured-project:hover .architecture-card { transform:none; } }
@media (prefers-reduced-motion:reduce) {
  .hedgehog-toggle img,.hedgehog-panel { animation:none; }
  .hero-hedgehog:hover img { transform:none; }
}

/* Natural-colour walking pet. Keep the hit target stable during jumps. */
.hedgehog-companion { left:0; right:auto; bottom:max(6px,env(safe-area-inset-bottom)); width:100px; will-change:transform; }
.hedgehog-toggle { width:100px; height:100px; }
.hedgehog-jumper,.hedgehog-facing { display:block; width:100%; height:100%; position:relative; pointer-events:none; }
.hedgehog-facing { transform:scaleX(var(--pet-direction,1)); }
.hedgehog-toggle img { animation:none; filter:drop-shadow(0 4px 3px #49362620); }
.pet-walking .hedgehog-facing img { animation:pet-steps .5s ease-in-out infinite; }
.hedgehog-blink { position:absolute; inset:0; pointer-events:none; }
.hedgehog-blink i { position:absolute; border-radius:50%; background:radial-gradient(ellipse at 50% 35%,#f3e2cc,#e9d0b4 75%,#dec09c); box-shadow:0 1px 1px #6d4f3440; transform:scaleY(0); transform-origin:50% 0; animation:pet-blink 6s ease-in-out infinite; }
.hedgehog-blink i:nth-child(1) { left:51.8%; top:47%; width:9.6%; height:11.2%; }
.hedgehog-blink i:nth-child(2) { left:69.4%; top:45.9%; width:5.2%; height:6.4%; animation-delay:.04s; }
.pet-jumping .hedgehog-jumper { animation:pet-jump .8s cubic-bezier(.36,0,.66,1); }
.hedgehog-panel { right:auto; bottom:105px; }
.hedgehog-hint { left:50%; right:auto; top:-16px; transform:translateX(-50%); color:#725031; border-color:#eadbc8; }
.hedgehog-toggle:hover .hedgehog-hint,.hedgehog-toggle:focus-visible .hedgehog-hint { transform:translateX(-50%); }
.hero-hedgehog { background:linear-gradient(110deg,#faf3e9,#fff 80%); }
.hero-hedgehog span { color:#765035; }
@keyframes pet-steps { 0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-3px) rotate(2deg)} }
@keyframes pet-blink {
  0%, 91.5%, 100% { transform:scaleY(0); }
  93.5%, 95% { transform:scaleY(1); }
}
@keyframes pet-jump {0%,100%{transform:translateY(0) scale(1)}15%{transform:scale(1.08,.9)}48%{transform:translateY(calc(-1 * var(--jump-height,50px))) scale(.95,1.04)}85%{transform:translateY(0) scale(1.08,.92)}}
.new-project-visual { min-height:200px; margin:24px 0; border-radius:16px; padding:20px; position:relative; overflow:hidden; background:#eaf2ff; color:#174ea6; }
.new-project-visual>.mono{font-size:.6rem;letter-spacing:.08em;position:relative;z-index:1}
.new-project-visual strong {display:block;font-size:2rem;line-height:1.15;letter-spacing:-.055em;margin-top:22px;position:relative;z-index:1}
.visual-orbit{position:absolute;width:135px;height:135px;border:24px solid currentColor;opacity:.1;border-radius:50%;right:-40px;bottom:-30px}
.visual-bot{background:#edf5ed;color:#237744}.visual-shop{background:#fff1dd;color:#a14c21}.visual-travel{background:#e3f4f2;color:#087b75}.visual-weather{background:#fdf3cd;color:#976d0b}
.project-topline { flex-wrap:wrap; gap:8px; }
.project-topline .project-status {font-size:.6rem;white-space:normal}
.lab-section { padding-top:20px; }
.lab-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.lab-grid article {border:1px dashed #bbc8da;border-radius:24px;padding:28px;background:#f8faff;min-width:0}
.lab-grid h3 {font-size:1.5rem;margin:22px 0 12px;letter-spacing:-.04em}
.lab-grid p {font-size:.9375rem;color:var(--muted);line-height:1.7}
.lab-grid small {display:block;margin-top:20px;line-height:1.6;color:var(--muted)}
@media(max-width:900px){.lab-grid{grid-template-columns:1fr}}
@media(max-width:700px){.hedgehog-companion,.hedgehog-toggle{width:84px;height:84px}.hedgehog-panel{bottom:90px}.new-project-visual{min-height:175px}.lab-grid article{padding:22px}.thread-line{opacity:.5}}
@media(prefers-reduced-motion:reduce){.pet-walking .hedgehog-facing img,.pet-waving .hedgehog-paw,.pet-waving .hedgehog-facing img,.pet-jumping .hedgehog-jumper{animation:none!important}.hedgehog-companion{will-change:auto}}
