:root {
  --bg: #191919;
  --bg-deep: #111111;
  --surface: #242424;
  --surface-soft: #202020;
  --surface-hover: #2f2f2f;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #7dd7f6;
  --accent-soft: rgba(125, 215, 246, 0.14);
  --header-bg: rgba(14, 15, 16, 0.82);
  --header-text: rgba(255, 255, 255, 0.88);
  --header-link: rgba(255, 255, 255, 0.68);
  --hero-bg: #161719;
  --hero-panel: #202225;
  --hero-text: rgba(255, 255, 255, 0.94);
  --hero-muted: rgba(255, 255, 255, 0.7);
  --hero-line: rgba(255, 255, 255, 0.12);
  --hero-photo-bg: #2b2d31;
  --button-text: #081013;
  --max: 1064px;
  --bar: 44px;
}

body[data-theme="light"] {
  --bg: #f4f3f0;
  --bg-deep: #e8e6e1;
  --surface: #ffffff;
  --surface-soft: #f7f6f2;
  --surface-hover: #eceae5;
  --text: rgba(25, 25, 25, 0.92);
  --muted: rgba(25, 25, 25, 0.62);
  --faint: rgba(25, 25, 25, 0.4);
  --line: rgba(25, 25, 25, 0.12);
  --line-strong: rgba(25, 25, 25, 0.22);
  --accent: #1f9bc2;
  --accent-soft: rgba(31, 155, 194, 0.12);
  --header-bg: rgba(250, 249, 246, 0.86);
  --header-text: rgba(25, 25, 25, 0.88);
  --header-link: rgba(25, 25, 25, 0.62);
  --hero-bg: #eceae5;
  --hero-panel: #f8f7f3;
  --hero-text: rgba(22, 22, 22, 0.94);
  --hero-muted: rgba(22, 22, 22, 0.66);
  --hero-line: rgba(22, 22, 22, 0.12);
  --hero-photo-bg: #d8d5ce;
  --button-text: #f8fdff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    "Apple Color Emoji",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: var(--bg);
}

body::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--hero-text);
}

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
  height: var(--bar);
  padding: 0 22px;
  color: var(--header-text);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.site-brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-brand img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.site-nav a,
.site-header-cta,
.theme-toggle {
  color: var(--header-link);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-header-cta {
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, transparent);
  border-radius: 999px;
  color: var(--text);
  background: rgba(118, 217, 255, 0.09);
}

.site-header-cta:hover {
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  background: var(--accent-soft);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--header-link);
  background: transparent;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 38px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  transform: translateX(16px);
}

.theme-toggle-label {
  min-width: 32px;
  text-align: left;
}

.notion-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bar);
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.86);
  background: #1b1b1b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.topbar-crumbs {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  max-width: min(58vw, 760px);
  text-decoration: none;
}

.topbar-crumbs img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
}

#topbar-title {
  overflow: hidden;
  min-width: 0;
  color: var(--header-text);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crumb-part {
  float: left;
  display: block;
  max-width: 28ch;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.crumb-part:hover {
  color: var(--text);
}

.crumb-part + .crumb-part::before {
  content: "/";
  margin: 0 7px;
  color: var(--faint);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-actions button,
.notion-free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border: 0;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
}

.topbar-actions button {
  width: 32px;
  padding: 0;
}

.topbar-actions button:hover,
.notion-free:hover {
  background: rgba(255, 255, 255, 0.08);
}

.topbar-actions svg,
.database-toolbar svg,
.download-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.notion-free {
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.app-shell {
  min-height: 100svh;
  padding-top: var(--bar);
}

.hero-cover {
  position: relative;
  height: 216px;
  overflow: hidden;
  background: #050505;
}

.hero-cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

.notion-page {
  width: min(var(--max), calc(100% - 208px));
  margin: 0 auto;
}

.home-page {
  padding-bottom: 72px;
}

.avatar {
  position: relative;
  z-index: 2;
  width: 124px;
  height: 124px;
  margin-top: -72px;
  object-fit: cover;
  border-radius: 4px;
}

.page-title,
.collection-title,
.project-title {
  margin: 20px 0 28px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
}

.project-title {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 42px);
}

.collection-title {
  margin: 12px 0 14px;
  font-size: 32px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 64px;
  align-items: start;
}

.main-column,
.side-column {
  min-width: 0;
}

.summary-quote {
  margin: 0 0 16px;
  padding: 2px 0 2px 22px;
  border-left: 3px solid rgba(255, 255, 255, 0.78);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.notion-section {
  margin-top: 34px;
}

.compact-section {
  margin-top: 40px;
}

.block-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.side-section .block-title {
  font-size: 28px;
}

.block-rule {
  height: 1px;
  margin: 14px 0 18px;
  background: var(--line);
}

.experience-item + .experience-item {
  margin-top: 20px;
}

.experience-item h3,
.mini-block h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}

.experience-item p,
.mini-block p,
.side-section p,
.body-copy {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.experience-item p a {
  color: var(--muted);
}

.notion-list {
  margin: 14px 0 0;
  padding-left: 28px;
  color: rgba(255, 255, 255, 0.9);
}

.notion-list li {
  margin: 6px 0;
  padding-left: 2px;
}

.notion-list li::marker {
  color: rgba(255, 255, 255, 0.86);
}

.link-list a {
  color: rgba(255, 255, 255, 0.78);
}

.cv-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0 12px;
  min-height: 112px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  text-decoration: none;
}

.cv-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.download-icon {
  grid-row: span 3;
  color: var(--faint);
}

.download-icon img {
  width: 18px;
  height: 18px;
  opacity: 0.68;
}

.cv-card strong {
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.cv-card span:last-child {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
}

.page-shortcuts {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.page-shortcuts a {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.74);
}

.side-section {
  color: rgba(255, 255, 255, 0.84);
}

.side-section p + p {
  margin-top: 16px;
}

.mini-block + .mini-block {
  margin-top: 24px;
}

.mini-block span {
  display: block;
  margin-top: 18px;
  color: var(--faint);
}

.skill-list {
  padding-left: 26px;
}

.linked-collection {
  margin-top: 12px;
}

.empty-database {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.empty-database span,
.database-footer {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.empty-database p {
  margin: 0;
  color: var(--faint);
}

.collection-preview-head a {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.74);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.database-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
}

.database-toolbar > svg {
  width: 16px;
  height: 16px;
}

.toolbar-spacer {
  flex: 1;
}

.collection-page {
  padding: 0 0 72px;
}

.database-footer {
  margin-top: 18px;
  font-size: 14px;
}

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

.preview-grid {
  gap: 12px;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.gallery-card:hover {
  background: var(--surface-hover);
}

.project-cover {
  position: relative;
  overflow: hidden;
  background: #eeeeee;
}

.project-cover-card {
  height: 148px;
}

.preview-grid .project-cover-card {
  height: 122px;
}

.project-cover img,
.project-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-cover .cover-contain {
  object-fit: contain;
  padding: 18px;
  background: #ffffff;
}

.gallery-card-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 62px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.page-icon {
  width: 18px;
  height: 18px;
  overflow: hidden;
  font-size: 15px;
  line-height: 18px;
  opacity: 0.9;
}

.generated-cover {
  display: flex;
  align-items: center;
  padding: 20px;
  color: #191919;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
}

.generated-babyprogress {
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 48% 54%, rgba(0, 82, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.generated-beauty-store {
  color: #653f3f;
  background:
    radial-gradient(circle at 84% 58%, #e7adbd 0 9%, transparent 10%),
    radial-gradient(circle at 78% 46%, #f4c1cc 0 8%, transparent 9%),
    radial-gradient(circle at 90% 43%, #f5d4a8 0 8%, transparent 9%),
    linear-gradient(90deg, #ffffff, #f3e9e5);
}

.generated-confectionery-shop {
  justify-content: flex-start;
  color: #372112;
  background:
    radial-gradient(circle at 76% 48%, #ffa2a2 0 8%, transparent 8.5%),
    radial-gradient(circle at 83% 55%, #ffd0a8 0 8%, transparent 8.5%),
    radial-gradient(circle at 73% 62%, #fff 0 7%, transparent 7.5%),
    linear-gradient(135deg, #fff6de 0%, #ecd2a0 100%);
}

.home-hero {
  position: relative;
  min-height: clamp(620px, calc(100svh - var(--bar)), 820px);
  overflow: hidden;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--hero-bg) 98%, #000 2%) 0%, var(--hero-bg) 52%, var(--hero-panel) 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -22vw -10vw;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 62%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.9fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  width: min(1240px, calc(100% - 96px));
  min-height: inherit;
  margin: 0 auto;
  padding: 74px 0 64px;
}

.hero-copy {
  max-width: 660px;
  animation: home-rise 700ms ease both;
}

.hero-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--hero-text);
  font-size: clamp(58px, 7.2vw, 96px);
  line-height: 0.9;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--hero-muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.48;
}

.hero-summary p {
  margin: 0;
}

.hero-summary p + p {
  margin-top: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-action {
  color: var(--button-text);
  background: var(--accent);
}

.secondary-action {
  border: 1px solid var(--hero-line);
  color: var(--hero-text);
  background: color-mix(in srgb, var(--surface) 52%, transparent);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.hero-portrait-wrap {
  position: relative;
  display: grid;
  align-self: stretch;
  min-height: 520px;
  animation: home-rise 700ms 120ms ease both;
}

.hero-portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 7% 3% 10%;
  border-radius: 44px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 44%),
    var(--hero-photo-bg);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.22);
}

.hero-portrait {
  position: absolute;
  right: clamp(-36px, -3.5vw, -18px);
  bottom: 0;
  z-index: 1;
  width: min(92%, 500px);
  height: min(82%, 590px);
  object-fit: cover;
  object-position: center 18%;
  border-radius: 36px;
  filter: saturate(0.95);
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hero-line);
  border-radius: 50%;
  color: var(--hero-muted);
  background: color-mix(in srgb, var(--surface) 42%, transparent);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.hero-scroll-cue:hover {
  color: var(--hero-text);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--hero-line));
  transform: translate(-50%, -2px);
}

.hero-scroll-cue span {
  font-size: 19px;
  line-height: 1;
}

.home-page {
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto;
  padding: 74px 0 96px;
}

body[data-theme="light"] .home-page .gallery-card,
body[data-theme="light"] .cv-panel {
  box-shadow: 0 18px 48px rgba(22, 22, 22, 0.08);
}

body[data-theme="light"] .experience-meta h3,
body[data-theme="light"] .home-section-head h2,
body[data-theme="light"] .rail-section h2,
body[data-theme="light"] .rail-item h3,
body[data-theme="light"] .cv-panel,
body[data-theme="light"] .profile-shortcuts a {
  color: var(--text);
}

body[data-theme="light"] .experience-points li,
body[data-theme="light"] .credential-list li,
body[data-theme="light"] .course-list li,
body[data-theme="light"] .rail-list li,
body[data-theme="light"] .rail-section p {
  color: var(--muted);
}

body[data-theme="light"] .credential-list a,
body[data-theme="light"] .course-list a,
body[data-theme="light"] .rail-section a,
body[data-theme="light"] .experience-meta a {
  color: rgba(25, 25, 25, 0.82);
}

body[data-theme="light"] .home-page .gallery-card {
  background: rgba(255, 255, 255, 0.76);
}

body[data-theme="light"] .home-page .gallery-card:hover {
  background: #ffffff;
}

body[data-theme="light"] .gallery-card-title {
  color: rgba(22, 22, 22, 0.9);
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: start;
}

.home-main,
.profile-rail {
  min-width: 0;
}

.home-section {
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-section + .home-section {
  margin-top: 56px;
}

.home-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.home-section-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-section-head h2 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: 0;
}

.experience-stream {
  display: grid;
  gap: 18px;
}

.experience-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 30px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.experience-meta h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.experience-meta p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.experience-meta a {
  color: inherit;
}

.experience-meta span {
  display: block;
  margin-top: 8px;
  color: var(--faint);
  font-size: 13px;
}

.experience-points .notion-list {
  margin: 0;
  padding-left: 20px;
}

.experience-points li {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.78);
}

.experience-points li::marker {
  color: currentColor;
  font-size: 0.9em;
}

.home-page .project-preview {
  margin-top: 0;
}

.home-page .collection-preview-head a {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  font-weight: 800;
}

.home-page .preview-grid {
  gap: 14px;
}

.home-page .gallery-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.home-page .gallery-card:hover {
  border-color: rgba(118, 217, 255, 0.34);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-3px);
}

.home-page .project-cover-card,
.home-page .preview-grid .project-cover-card {
  height: 136px;
}

.home-page .gallery-card-title {
  min-height: 74px;
  padding: 14px;
  font-size: 15px;
}

.credential-list,
.course-list,
.rail-list {
  margin: 0;
  padding-left: 20px;
}

.credential-list li,
.course-list li,
.rail-list li {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.8);
}

.credential-list a,
.course-list a,
.rail-section a {
  color: rgba(255, 255, 255, 0.86);
}

.profile-rail {
  position: sticky;
  top: calc(var(--bar) + 28px);
  display: grid;
  gap: 28px;
}

.profile-overview {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.cv-panel {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(118, 217, 255, 0.28);
  border-radius: 12px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(118, 217, 255, 0.11), rgba(255, 255, 255, 0.045));
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.cv-panel:hover {
  border-color: rgba(118, 217, 255, 0.58);
  transform: translateY(-2px);
}

.download-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #061116;
  background: var(--accent);
  font-size: 20px;
  font-weight: 800;
}

.cv-panel strong {
  font-size: 16px;
}

.cv-panel span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.profile-shortcuts {
  display: grid;
  gap: 12px;
}

.profile-shortcuts a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.18;
  font-weight: 800;
}

.rail-section {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rail-section h2 {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.15;
}

.rail-section p {
  display: grid;
  gap: 3px;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.78);
}

.rail-section .contact-line {
  display: block;
}

.rail-section p span,
.rail-item span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-item + .rail-item {
  margin-top: 20px;
}

.rail-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.rail-item p {
  margin: 6px 0;
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-page {
  padding-bottom: 72px;
}

.case-page {
  padding-bottom: 96px;
}

.case-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100svh - var(--bar));
  padding: clamp(320px, 42svh, 430px) max(48px, calc((100vw - 1240px) / 2)) 96px;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--hero-panel) 0%, var(--hero-bg) 100%);
}

.case-hero-copy {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  text-align: center;
  animation: home-rise 650ms ease both;
}

.case-back {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.case-back:hover {
  color: var(--text);
}

.case-eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-hero h1 {
  max-width: 840px;
  margin: 0 auto;
  color: var(--hero-text);
  font-size: clamp(50px, 6.6vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
}

.case-lede {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--hero-muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
}

.case-page-paydigital-storefront-retention .case-hero h1,
.case-page-babyprogress .case-hero h1,
.case-page-prompthub .case-hero h1 {
  max-width: 1080px;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1;
}

.case-page-paydigital-storefront-retention .case-lede,
.case-page-babyprogress .case-lede,
.case-page-prompthub .case-lede {
  max-width: 900px;
  margin-top: 20px;
  font-size: clamp(16px, 1.25vw, 19px);
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--hero-line);
  border-radius: 999px;
  color: var(--hero-text);
  background: color-mix(in srgb, var(--surface) 52%, transparent);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.case-link-primary {
  border-color: transparent;
  color: var(--button-text);
  background: var(--accent);
}

.case-hero-media {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: min(560px, 64svh);
  margin: 0;
  animation: home-rise 650ms 100ms ease both;
  pointer-events: none;
}

.case-hero-media::before {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  z-index: 2;
  height: 86%;
  border-radius: 0;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      color-mix(in srgb, var(--hero-bg) 8%, transparent) 14%,
      color-mix(in srgb, var(--hero-bg) 58%, transparent) 54%,
      color-mix(in srgb, var(--hero-bg) 88%, transparent) 88%,
      var(--hero-bg) 100%
    );
  backdrop-filter: blur(7px) saturate(0.92);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 30%, #000 66%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 30%, #000 66%);
}

.case-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--hero-bg) 10%, transparent) 54%, color-mix(in srgb, var(--hero-bg) 84%, transparent) 100%),
    radial-gradient(circle at 50% 66%, color-mix(in srgb, var(--surface) 30%, transparent), transparent 42%);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.case-hero-media img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: 0;
  background: #f3f2ff;
  box-shadow: none;
}

.case-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hero-line);
  border-radius: 50%;
  color: var(--hero-muted);
  background: color-mix(in srgb, var(--surface) 42%, transparent);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.case-scroll-cue:hover {
  color: var(--hero-text);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--hero-line));
  transform: translate(-50%, -2px);
}

.case-scroll-cue span {
  font-size: 19px;
  line-height: 1;
}

.case-layout {
  width: min(1040px, calc(100% - 96px));
  margin: 0 auto;
  padding-top: 84px;
}

.case-meta {
  margin-bottom: 52px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-meta dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.case-meta div {
  min-width: 0;
}

.case-meta dt {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.case-meta a {
  color: inherit;
}

.case-content {
  min-width: 0;
}

.case-content .markdown-content {
  padding-top: 0;
}

.case-content .markdown-heading {
  max-width: 860px;
  margin: 56px 0 16px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.case-content .markdown-content > .markdown-heading:first-child {
  margin-top: 0;
}

.case-content h3.markdown-heading {
  margin-top: 34px;
  font-size: 20px;
  line-height: 1.2;
}

.case-content .body-copy {
  max-width: 860px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.case-content .notion-list {
  max-width: 860px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.case-content .notion-list li::marker {
  color: currentColor;
}

.case-content .block-rule {
  max-width: 860px;
  margin: 36px 0;
  border-color: var(--line);
}

.case-content .media-row {
  gap: 18px;
  margin: 22px 0 34px;
}

.case-content .media-frame {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.12);
}

.case-content .media-frame img,
.case-content .media-frame video {
  background: var(--surface);
}

.team-structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 20px 0 38px;
}

.team-structure-grid section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.team-structure-grid h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.team-structure-grid .notion-list {
  margin: 0;
  padding-left: 20px;
}

.team-structure-grid .notion-list li {
  margin: 7px 0;
}

.team-structure-grid-compact section {
  display: flex;
  align-items: center;
  min-height: 86px;
}

.team-structure-grid-compact h3 {
  margin: 0;
  font-size: 17px;
}

.project-cover-hero {
  height: 216px;
  border-radius: 0;
}

.project-cover-hero.generated-cover {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: clamp(32px, 5vw, 62px);
}

.detail-inner {
  padding-top: 20px;
}

.detail-icon {
  margin-top: -2px;
  font-size: 42px;
  line-height: 1;
}

.project-title {
  max-width: 900px;
  margin-bottom: 20px;
}

.properties {
  display: grid;
  gap: 14px;
  max-width: 740px;
  padding: 10px 0 24px;
  border-bottom: 1px solid var(--line);
}

.properties div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.properties span {
  color: var(--muted);
}

.properties span::before {
  display: inline-block;
  width: 18px;
  margin-right: 8px;
  color: var(--faint);
}

.properties div:nth-child(1) span::before {
  content: "▣";
}

.properties div:nth-child(2) span::before {
  content: "🔗";
}

.properties div:nth-child(3) span::before {
  content: "☰";
}

.properties p {
  margin: 0;
  color: var(--text);
}

.new-section-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -8px 0 8px;
  padding: 4px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
}

.new-section-button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.markdown-content {
  padding-top: 28px;
}

.markdown-heading {
  max-width: 920px;
  margin: 32px 0 12px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0;
}

h3.markdown-heading {
  margin-top: 24px;
  font-size: 20px;
}

.markdown-content > .block-rule {
  max-width: 100%;
  margin: 22px 0 26px;
}

.markdown-content .notion-list {
  max-width: 920px;
}

.media-row {
  display: grid;
  gap: 14px;
  max-width: 100%;
  margin: 16px 0;
  align-items: start;
}

.media-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

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

.media-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.markdown-content .media-frame {
  max-width: 100%;
}

.markdown-content .media-frame img,
.markdown-content .media-frame video {
  max-height: none;
}

.body-copy {
  max-width: 920px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.58;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
}

.media-frame img,
.media-frame video {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #111;
}

.media-frame figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1040px) {
  .home-hero-inner,
  .home-page {
    width: min(100% - 48px, 980px);
  }

  .case-hero {
    padding-right: 32px;
    padding-left: 32px;
  }

  .case-hero h1,
  .case-lede {
    max-width: 820px;
  }

  .case-hero-media {
    max-width: none;
    transform: none;
  }

  .case-layout {
    width: min(100% - 64px, 920px);
    padding-top: 64px;
  }

  .case-meta dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .home-hero-inner {
    grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.82fr);
    gap: 32px;
  }

  .hero-portrait-wrap {
    min-height: 500px;
  }

  .home-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 42px;
  }

  .experience-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .notion-page {
    width: min(var(--max), calc(100% - 64px));
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 42px;
  }

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

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 0 14px;
  }

  #topbar-title .crumb-part:not(:last-child) {
    display: none;
  }

  #topbar-title .crumb-part::before {
    display: none;
  }

  .site-nav {
    display: none;
  }

  .site-header-cta {
    display: none;
  }

  .profile-overview .profile-shortcuts,
  .profile-overview .cv-panel {
    display: none;
  }

  .home-hero {
    min-height: auto;
  }

  .case-hero {
    min-height: auto;
    padding: 300px 16px 76px;
  }

  .case-back {
    margin-bottom: 28px;
  }

  .case-hero h1 {
    font-size: clamp(34px, 9.8vw, 52px);
  }

  .case-lede {
    margin-top: 18px;
    font-size: 15px;
  }

  .case-actions {
    margin-top: 28px;
  }

  .case-hero-media::before {
    inset: auto 0 -1px;
    border-radius: 0;
  }

  .case-hero-media {
    height: 330px;
  }

  .case-hero-media img {
    border-radius: 0;
    object-position: 16% top;
  }

  .case-scroll-cue {
    bottom: 24px;
  }

  .case-layout {
    width: calc(100% - 32px);
    padding-top: 48px;
  }

  .case-meta {
    margin-bottom: 38px;
    padding: 16px 0;
  }

  .case-meta dl {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .case-meta div {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .case-meta div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .team-structure-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    min-height: auto;
    padding: 40px 0 24px;
  }

  .home-hero::before {
    width: 90vw;
    height: 90vw;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-portrait-wrap {
    justify-self: center;
    width: min(100%, 320px);
    min-height: 0;
    aspect-ratio: 1;
    order: -1;
  }

  .hero-portrait-wrap::before {
    inset: 6% 8% 0;
    border-radius: 32px;
  }

  .hero-portrait {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 28px;
  }

  .hero-scroll-cue {
    position: static;
    display: grid;
    margin: 0 auto 28px;
    transform: none;
  }

  .hero-scroll-cue:hover {
    transform: translateY(-2px);
  }

  .home-page {
    width: calc(100% - 32px);
    padding-top: 52px;
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .profile-rail {
    position: static;
  }

  .topbar-actions button:nth-of-type(n + 2),
  .notion-free {
    display: none;
  }

  .hero-cover,
  .project-cover-hero {
    height: 190px;
  }

  .notion-page {
    width: calc(100% - 32px);
  }

  .avatar {
    width: 96px;
    height: 96px;
    margin-top: -50px;
  }

  .page-title {
    font-size: 31px;
  }

  .two-column,
  .properties,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .side-column {
    margin-top: 12px;
  }

  .cv-card {
    margin-top: 8px;
  }

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

  .media-count-2,
  .media-count-3 {
    grid-template-columns: 1fr;
  }

  .project-cover-card,
  .preview-grid .project-cover-card {
    height: 172px;
  }

  .collection-title,
  .project-title {
    font-size: 34px;
  }

  .properties div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 460px) {
  .app-shell {
    padding-top: 42px;
  }

  .case-actions {
    display: grid;
  }

  .case-link {
    justify-content: center;
  }

  .case-content .body-copy {
    font-size: 16px;
  }

  .site-header {
    height: 42px;
  }

  .theme-toggle-label {
    display: none;
  }

  .home-hero-inner {
    gap: 26px;
    padding-top: 32px;
  }

  .hero-kicker {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 14vw, 58px);
  }

  .hero-summary {
    margin-top: 18px;
    line-height: 1.42;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .primary-action,
  .secondary-action {
    justify-content: center;
  }

  .hero-portrait-wrap {
    width: min(100%, 250px);
  }

  .notion-topbar {
    height: 42px;
  }

  .hero-cover,
  .project-cover-hero {
    height: 168px;
  }

  .block-title,
  .side-section .block-title {
    font-size: 25px;
  }

  .page-shortcuts a {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

}
