:root {
  --font-sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas,
    monospace;
  --color-bg: rgb(251, 250, 247);
  --color-fg: #191918;
  --color-surface: #f1efeb;
  --color-secondary: #2c2b29;
  --color-muted: #6f6d66;
  --color-tertiary: #a8a59f;
  --color-edge: #ebeae6;
  --tag-blue-bg: #e8f2f7;
  --tag-blue-fg: #3a82b3;
  --tag-orange-bg: #fbf0e1;
  --tag-orange-fg: #cc7e3a;
  --container-px: clamp(20px, 4.4vw, 64px);
  --space-brand-top: clamp(36px, 5vw, 80px);
  --space-brand-bottom: clamp(96px, 14vw, 192px);
  --space-section-lg: clamp(80px, 12vw, 168px);
  --space-section-md: clamp(64px, 10vw, 128px);
  --space-footer-top: clamp(96px, 14vw, 192px);
  --space-footer-bottom: clamp(28px, 4vw, 56px);
  --space-grid-gutter: clamp(28px, 5vw, 72px);
  --space-stack-lg: clamp(28px, 3.5vw, 44px);
  --space-bento-gap: clamp(16px, 1.6vw, 22px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-window: 0 1px 2px rgba(10, 10, 10, 0.04), 0 20px 40px -16px rgba(10, 10, 10, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: rgb(251, 250, 247);
  color: var(--color-fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background: rgb(251, 250, 247);
  overflow-x: hidden;
}

::selection {
  background: var(--color-fg);
  color: var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

.container-x {
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.brand {
  padding-top: var(--space-brand-top);
  padding-bottom: var(--space-brand-bottom);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.project-section {
  padding-bottom: var(--space-section-lg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-grid-gutter);
  row-gap: var(--space-stack-lg);
}

.project-copy {
  grid-column: span 5;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.project-media,
.web-carousel {
  grid-column: span 7;
  min-width: 0;
}

.tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.tag-blue {
  background: var(--tag-blue-bg);
  color: var(--tag-blue-fg);
}

.tag-orange {
  background: var(--tag-orange-bg);
  color: var(--tag-orange-fg);
}

.project-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(56px, 5.6vw, 80px);
}

.project-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-fg);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.link-with-arrow span {
  position: relative;
}

.link-with-arrow span::before,
.link-with-arrow span::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
}

.link-with-arrow span::before {
  opacity: 0.15;
}

.link-with-arrow span::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.link-with-arrow:hover span::after {
  transform: scaleX(1);
}

.project-title svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 0.3s ease-out;
}

.project-title:hover svg {
  transform: translate(2px, -2px);
}

.project-year {
  flex-shrink: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.project-desc {
  max-width: 58ch;
  margin-top: clamp(28px, 2.5vw, 36px);
  color: var(--color-secondary);
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.85;
}

.image-card {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-edge);
  border-radius: 6px;
  background: var(--color-surface);
  box-shadow: var(--shadow-window);
  cursor: pointer;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cursor-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: none;
  pointer-events: none;
  transform: translate(-9999px, -9999px);
}

.cursor-tip span,
.cursor-tip {
  white-space: nowrap;
}

.cursor-tip {
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  margin-left: 12px;
  border: 1px solid var(--color-edge);
  border-radius: 6px;
  background: var(--color-bg);
  padding: 6px 12px;
  color: var(--color-fg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-window);
}

.cursor-tip svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.web-section {
  background: rgb(251, 250, 247);
  padding-bottom: var(--space-section-lg);
  overflow: hidden;
}

.web-copy {
  position: relative;
  z-index: 3;
  background: rgb(251, 250, 247);
  isolation: isolate;
  min-height: clamp(360px, 30.25vw, 436px);
}

.web-copy::before {
  position: absolute;
  top: 0;
  right: calc(-1 * var(--space-grid-gutter));
  bottom: -72px;
  left: calc(-1 * var(--container-px));
  z-index: 0;
  content: "";
  background: rgb(251, 250, 247);
  pointer-events: none;
}

.web-copy > * {
  position: relative;
  z-index: 1;
}

#web .project-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

#web .project-desc {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.85;
}

.carousel-controls {
  position: relative;
  z-index: 4;
  display: flex;
  align-self: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 40px;
}

.carousel-btn {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #c5c3bc;
  border-radius: 6px;
  background: transparent;
  color: var(--color-fg);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.carousel-btn:hover {
  border-color: #c5c3bc;
  color: var(--color-fg);
  transform: none;
}

.carousel-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.carousel-viewport {
  position: relative;
  z-index: 1;
  width: calc(100vw - 2 * var(--container-px) - 5 / 12 * (100vw - 2 * var(--container-px)));
  min-width: 100%;
  overflow: visible;
}

.carousel-track {
  display: flex;
  gap: 18px;
  will-change: transform;
}

.carousel-slide {
  position: relative;
  flex: 0 0 clamp(250px, 22.66vw, 326.3125px);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--color-edge);
  border-radius: 6px;
  background: var(--color-surface);
  box-shadow: var(--shadow-window);
}

.carousel-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-label {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.carousel-slide::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 28%;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.carousel-slide.is-active .slide-label {
  opacity: 1;
  transform: translateY(0);
}

.core-section {
  padding-top: var(--space-section-md);
  padding-bottom: var(--space-section-lg);
}

.core-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.core-inner h2 {
  color: var(--color-fg);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: center;
}

.core-grid {
  display: grid;
  width: 100%;
  max-width: 1180px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-bento-gap);
  margin-top: clamp(56px, 5.6vw, 80px);
}

.core-card {
  position: relative;
  display: flex;
  min-height: 383px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-surface);
  box-shadow: var(--shadow-window);
  user-select: none;
}

.card-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px 0;
}

.card-heading span {
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.card-heading strong {
  color: var(--color-fg);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-visual {
  position: relative;
  flex: 1;
  min-height: 280px;
  padding: 32px;
}

.research-visual,
.design-visual,
.ai-visual {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.research-visual {
  position: relative;
  width: 260px;
  height: 224px;
}

.note {
  position: absolute;
  z-index: 10;
  width: 96px;
  height: 96px;
  padding: 12px;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(10, 10, 10, 0.08), 0 14px 28px -8px rgba(10, 10, 10, 0.2);
  will-change: transform;
}

.note span {
  display: block;
  height: 3px;
  margin-bottom: 6px;
  opacity: 0.55;
}

.note .short {
  width: 64%;
}

.note-yellow {
  top: 20px;
  left: 30px;
  z-index: 14;
  background: #fff3a3;
}

.note-yellow span {
  background: #7a6c2a;
}

.note-blue {
  top: 20px;
  left: 132px;
  z-index: 12;
  background: #cfe4f7;
}

.note-blue span {
  background: #2c5b80;
}

.note-pink {
  top: 122px;
  left: 30px;
  z-index: 13;
  background: #f8d6e3;
}

.note-pink span {
  background: #8a3b62;
}

.note-green {
  top: 122px;
  left: 132px;
  z-index: 11;
  background: #d8ecca;
}

.note-green span {
  background: #3d6638;
}

.design-visual {
  position: relative;
}

.tiny-widget {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  will-change: transform, opacity;
}

.submit-widget {
  top: 14%;
  right: 10%;
  border-radius: 5px;
  background: #5865f2;
  padding: 5px 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.1), 0 8px 18px -4px rgba(10, 10, 10, 0.18);
}

.input-widget {
  top: 14%;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #eae9ea;
  border-radius: 5px;
  background: #fff;
  padding: 4px 7px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06), 0 8px 18px -4px rgba(10, 10, 10, 0.14);
}

.input-line {
  display: block;
  width: 42px;
  height: 2px;
  background: #d4d4d5;
}

.input-caret {
  display: block;
  width: 1.5px;
  height: 8px;
  background: #5865f2;
  animation: dev-caret 1s steps(2, end) infinite;
}

.icon-widget {
  right: 10%;
  bottom: 14%;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #eae9ea;
  border-radius: 5px;
  background: #fff;
  padding: 5px 7px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06), 0 8px 18px -4px rgba(10, 10, 10, 0.14);
}

.icon-widget svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: #6e6b6f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.active-widget {
  bottom: 14%;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #eae9ea;
  border-radius: 999px;
  background: #fff;
  padding: 3px 8px;
  color: #15803d;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06), 0 8px 18px -4px rgba(10, 10, 10, 0.14);
}

.active-widget span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.wireframe-wrap {
  position: relative;
  width: calc(min(64%, 290px) * var(--wf-grow, 0));
  transform-origin: 0 0;
  will-change: width;
}

.wireframe {
  position: relative;
  width: 100%;
  aspect-ratio: 355 / 252;
  border: 2px solid #1570ef;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 12px 28px -10px rgba(10, 10, 10, 0.09);
}

.wf-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wf-header {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  height: 10%;
  align-items: center;
  border-bottom: 1px solid #eae9ea;
  background: #fff;
  padding: 0 3%;
}

.wf-header span {
  color: #333;
  font-size: 6px;
  letter-spacing: 0.05em;
}

.wf-header i {
  display: block;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border-radius: 999px;
  background: #eae9ea;
}

.wf-header i:first-of-type {
  margin-left: auto;
}

.wf-header .blue-dot {
  background: #5865f2;
}

.wf-sidebar {
  position: absolute;
  top: 10%;
  bottom: 0;
  left: 0;
  display: flex;
  width: 14%;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-right: 1px solid #eae9ea;
  background: #fafafa;
  padding-top: 6%;
}

.wf-sidebar span {
  display: block;
  width: 60%;
  height: 3px;
  background: #d4d4d5;
}

.wf-sidebar .selected {
  background: #5865f2;
}

.wf-content {
  position: absolute;
  top: 10%;
  right: 0;
  bottom: 0;
  left: 14%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 3%;
}

.wf-card-row {
  display: flex;
  height: 34%;
  gap: 5px;
}

.wf-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border: 1px solid #eae9ea;
  background: #f5f5f5;
  padding: 6%;
}

.wf-card span {
  display: block;
  width: 55%;
  height: 2px;
  background: #d4d4d5;
}

.wf-card b {
  display: block;
  width: 40%;
  height: 4px;
  background: #6e6b6f;
}

.wf-chart {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #eae9ea;
  background: #f5f5f5;
  padding: 4%;
}

.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-top span {
  display: block;
  width: 25%;
  height: 2px;
  background: #6e6b6f;
}

.chart-top i {
  width: 5px;
  height: 5px;
  margin-left: auto;
  background: #5865f2;
}

.chart-top b {
  width: 12px;
  height: 2px;
  margin-left: 3px;
  background: #d4d4d5;
}

.bar-row {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 3px;
  padding-top: 4px;
}

.bar-row span {
  flex: 1;
  background: #5865f2;
  transform-origin: bottom;
}

.bar-row span:nth-child(odd) {
  opacity: 0.85;
}

.wf-handle {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1.5px solid #1570ef;
  background: #fff;
}

.top-left {
  top: -4px;
  left: -4px;
}

.top-right {
  top: -4px;
  right: -4px;
}

.bottom-left {
  bottom: -4px;
  left: -4px;
}

.bottom-right {
  right: -4px;
  bottom: -4px;
}

.cursor-badge {
  position: absolute;
  right: -14px;
  bottom: -14px;
  z-index: 10;
  pointer-events: none;
  transform-origin: 2px 2px;
}

.cursor-badge svg {
  width: 16px;
  height: 16px;
}

.cursor-badge path {
  fill: #1570ef;
  stroke: #1570ef;
  stroke-linejoin: round;
  stroke-width: 0.5;
}

.cursor-badge span {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #1570ef;
  padding: 3px 8px;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
}

.ai-visual {
  position: relative;
}

.code-wrap {
  position: relative;
  width: min(72%, 290px);
}

.code-window {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #161616;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 12px 28px -10px rgba(10, 10, 10, 0.18);
  transform-origin: center;
  will-change: transform;
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  background: #222;
  padding: 7px 10px;
}

.code-titlebar i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.code-titlebar .red {
  background: #ff5f57;
}

.code-titlebar .yellow {
  background: #febc2e;
}

.code-titlebar .green {
  background: #28c840;
}

.code-titlebar span {
  margin-left: 6px;
  color: #8a8a8a;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
}

.code-body {
  padding: 12px;
  color: #d4d4d4;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.8;
}

.code-heading {
  color: #7c9cf0;
  font-weight: 700;
}

.code-body p {
  display: flex;
  gap: 18px;
}

.code-body p span:first-child {
  min-width: 45px;
  color: #a0a0a0;
}

.code-body b {
  color: #e2bf67;
}

.code-body em {
  color: #a3c98d;
  font-style: normal;
}

.code-body .prompt {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
}

.prompt i {
  color: #7c9cf0;
  font-style: normal;
}

.prompt span {
  display: block;
  width: 6px;
  height: 11px;
  margin-left: 0;
  background: #d4d4d4;
  animation: dev-caret 1s steps(2, end) infinite;
}

.ai-badge {
  position: absolute;
  z-index: 30;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(10, 10, 10, 0.18), 0 10px 22px -4px rgba(10, 10, 10, 0.32),
    0 18px 40px -12px rgba(10, 10, 10, 0.25);
  will-change: transform, opacity;
}

.ai-badge.claude {
  top: -16px;
  left: 16%;
}

.ai-badge.codex {
  top: 50%;
  right: -16px;
  margin-top: -16px;
}

.ai-badge.gemini {
  right: 18%;
  bottom: -16px;
}

.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: var(--space-footer-top);
  padding-bottom: var(--space-footer-bottom);
  color: var(--color-muted);
  font-size: 13px;
}

.site-footer a {
  position: relative;
  color: var(--color-fg);
}

.site-footer a::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.4;
}

[data-ux-fade],
[data-web-fade],
[data-web-carousel],
[data-core-fade],
[data-core-card] {
  opacity: 0;
}

@keyframes dev-caret {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

@media (hover: hover) {
  .cursor-tip {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .project-grid,
  .core-grid {
    grid-template-columns: 1fr;
  }

  .project-copy,
  .project-media,
  .web-carousel {
    grid-column: auto;
  }

  .web-copy {
    min-height: 0;
  }

  #web .project-title {
    font-size: 18px;
    line-height: 1.25;
  }

  #web .project-desc {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.85;
  }

  .carousel-controls {
    margin-top: auto;
  }

  .carousel-viewport {
    width: 100%;
    overflow: hidden;
  }

  .carousel-slide {
    flex-basis: min(74vw, 330px);
  }

  .core-card {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .brand {
    padding-bottom: 76px;
  }

  .project-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-year {
    font-size: 12px;
  }

  .core-card {
    min-height: 350px;
  }

  .card-heading {
    padding-inline: 20px;
  }

  .card-visual {
    padding: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
