:root {
  --bg: #fff; --surface: #fff; --text: #202124; --muted: #5f6368; --line: #dadce0;
  --link: #1a0dab; --hover: #f1f3f4; --accent: #1a73e8; --shadow: 0 1px 6px rgba(32,33,36,.18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #202124; --surface: #2d2e31; --text: #e8eaed; --muted: #9aa0a6; --line: #3c4043;
    --link: #8ab4f8; --hover: #3c4043; --accent: #8ab4f8; --shadow: 0 1px 6px rgba(0,0,0,.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }

.top { max-width: 720px; margin: 0 auto; padding: 24px 16px 8px; }
.searchbar {
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); border-color: transparent;
}
.s-ico { width: 20px; height: 20px; fill: var(--muted); flex: none; }

main { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }

.card {
  margin-top: 20px; background: var(--surface); overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px;
}
.cover {
  aspect-ratio: 16 / 5;
  background-color: #1e4d2b;
  background:
    url(assets/cover.jpg) center 52% / cover no-repeat,
    linear-gradient(120deg, #e8232a 0%, #c026d3 50%, #f97316 100%);
}
.hero { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; padding: 0 24px 24px; }
.hero-text { padding-top: 24px; }
.name { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 400; }
.tagline { margin: 4px 0 12px; color: var(--muted); }
.bio { margin: 0 0 12px; }
.bio:last-of-type { margin-bottom: 0; }
.avatar {
  flex: none; width: 128px; height: 128px; border-radius: 50%; overflow: hidden;
  margin-top: -64px; border: 4px solid var(--surface); position: relative;
  display: grid; place-items: center; font-size: 40px; font-weight: 500; color: #fff;
  background: #fff linear-gradient(135deg, #1a73e8, #a142f4);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }

.highlights { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.highlights li { font-size: 13px; padding: 4px 12px; border-radius: 16px; background: var(--hover); }

.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; padding: 0; }
.stats strong { display: block; font-size: 20px; font-weight: 500; }
.stats span { color: var(--muted); font-size: 13px; }
.stats .views strong { display: flex; align-items: center; gap: 6px; }
.stats .views strong span { color: inherit; font-size: inherit; }
.stats .views .icon { width: 20px; height: 20px; background: var(--muted); }

.tabs {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; margin-top: 12px;
  padding: 0 4px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.tabs a { padding: 14px 16px 12px; color: var(--muted); border-bottom: 3px solid transparent; font-size: 14px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }

.block { padding-top: 28px; }
.block h2 { margin: 0 0 14px; font-size: 20px; font-weight: 400; }

.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.profile {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.profile:hover { background: var(--hover); }
.icon {
  flex: none; width: 24px; height: 24px; background: var(--text);
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
}
.p-text { display: flex; flex-direction: column; min-width: 0; }
.p-name { font-weight: 500; }
.p-handle { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.project {
  display: flex; flex-direction: column; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; transition: transform .15s, box-shadow .15s;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--surface); }
.p-top { position: relative; display: grid; place-items: center; height: 120px; }
.p-logo { width: 72px; height: 72px; object-fit: cover; border-radius: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.p-top .chip { position: absolute; top: 10px; right: 10px; color: #fff; border-color: rgba(255,255,255,.55); background: rgba(0,0,0,.2); }
.p-body { display: flex; flex-direction: column; gap: 4px; padding: 16px; flex: 1; }
.p-title { font-size: 18px; font-weight: 500; }
.chip { font-size: 12px; padding: 1px 10px; border-radius: 10px; border: 1px solid var(--line); }
.p-desc { color: var(--muted); font-size: 14px; flex: 1; }
.p-cta { margin-top: 8px; font-size: 14px; color: var(--link); }

.press { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.press-item { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: transform .15s, box-shadow .15s; }
.press-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.press-pic { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.press-pic .icon { width: 44px; height: 44px; }
.press-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.press-pic img.press-art { position: absolute; inset: 0; }
.press-pic img.press-logo { width: 64px; height: 64px; object-fit: contain; }
.press-ph { color: #fff; font-weight: 500; }
.press-text { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.press-src { font-size: 12px; color: var(--muted); }
.press-title { color: var(--link); }
.press-item:hover .press-title { text-decoration: underline; }

.contact .mail { color: var(--link); }
.contact .mail:hover { text-decoration: underline; }

footer { text-align: center; max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 520px) {
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: 56px; }
  .top { padding: 16px 12px 4px; }
  main { padding: 0 12px 40px; }
  footer { padding-left: 12px; padding-right: 12px; }
  .card { margin-top: 14px; border-radius: 14px; }
  .cover { aspect-ratio: 16 / 6; }

  .hero { flex-direction: column-reverse; align-items: center; gap: 0; padding: 0 16px 20px; }
  .avatar { width: 96px; height: 96px; margin-top: -48px; font-size: 32px; }
  .hero-text { padding-top: 12px; width: 100%; }
  .name { font-size: 26px; text-align: center; }
  .tagline { text-align: center; }
  .bio { text-align: left; font-size: 15px; }
  .stats { justify-content: center; }
  .highlights { justify-content: center; }

  .tabs { margin-top: 8px; padding: 0; }
  .tabs a { padding: 14px 12px 12px; }

  .block { padding-top: 24px; }
  .profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .profile { padding: 10px; gap: 10px; }
  .p-count { white-space: nowrap; }

  .projects { grid-template-columns: 1fr; gap: 12px; }
  .p-top { height: 96px; }
  .p-logo { width: 60px; height: 60px; }

  .press { grid-template-columns: 1fr; gap: 10px; }
  .press-item { flex-direction: row; border-radius: 12px; }
  .press-pic { flex: none; width: 112px; aspect-ratio: auto; }
  .press-pic .icon { width: 32px; height: 32px; }
  .press-pic img.press-art { position: absolute; inset: 0; }
.press-pic img.press-logo { width: 44px; height: 44px; }
  .press-text { justify-content: center; padding: 10px 12px; }
  .press-item:hover, .project:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; }
.p-count { font-size: 13px; font-weight: 500; color: var(--text); }

.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 14px 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--hover); border-radius: 12px; }
.faq p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

.kit-intro { margin: 0 0 16px; color: var(--muted); }
.kit-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.kit-pkg { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.kit-pkg h3 { margin: 8px 0 0; font-size: 18px; font-weight: 500; }
.kit-pkg p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.kit-pkg .kit-big { color: var(--text); font-size: 28px; line-height: 1.2; margin-top: 6px; }
.kit-pkg .chip { color: var(--muted); }
.kit-places { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.kit-places li { font-size: 13px; padding: 4px 12px; border-radius: 16px; background: var(--hover); }
.kit-notes { margin: 16px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.kit-notes li + li { margin-top: 6px; }
.kit-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 24px; background: var(--accent); color: var(--bg); font-weight: 500; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn:hover { filter: brightness(1.1); }
.kit-foot { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
