:root {
  color-scheme: light;
  --paper: #fbfbfd;
  --paper-strong: #ffffff;
  --paper-soft: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --muted-strong: #424245;
  --line: rgba(29, 29, 31, 0.1);
  --line-strong: rgba(29, 29, 31, 0.18);
  --accent: #0a57ff;
  --accent-hover: #004ee6;
  --accent-soft: #eaf0ff;
  --accent-ink: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.8);
  --status-blue: #0a57ff;
  --status-green: #16864b;
  --status-red: #d94b51;
  --content: 1280px;
  --gutter: clamp(24px, 4.6vw, 72px);
  --rail: 0px;
  --radius-small: 14px;
  --radius-medium: 22px;
  --radius-large: 32px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #09090b;
  --paper-strong: #111113;
  --paper-soft: #19191c;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --muted-strong: #d2d2d7;
  --line: rgba(245, 245, 247, 0.11);
  --line-strong: rgba(245, 245, 247, 0.2);
  --accent: #4d7dff;
  --accent-hover: #6c93ff;
  --accent-soft: #172345;
  --accent-ink: #ffffff;
  --header-bg: rgba(24, 24, 27, 0.78);
}

:root[data-theme="dark"] .hero-character {
  overflow: visible;
  margin: 30px auto 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html {
  background: var(--paper);
  scroll-padding-top: 92px;
}

body {
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main,
.site-footer,
.identity-line,
.error-page {
  margin-left: 0;
}

.skip-link {
  left: 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 74%, white);
  outline-offset: 4px;
}

.issue-rail {
  display: none;
}

.site-header,
.site-header.is-scrolled,
.site-header:has(.nav-shell.is-open) {
  position: fixed;
  z-index: 110;
  inset: 16px 0 auto;
  background: transparent;
  pointer-events: none;
}

.nav-shell {
  width: min(calc(100% - 32px), 1388px);
  min-height: 54px;
  margin: 0 auto;
  padding: 6px 10px 6px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 8px 28px rgba(22, 32, 55, 0.04);
  pointer-events: auto;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 240ms ease, transform 240ms var(--ease-out);
}

.site-header.is-scrolled .nav-shell,
.nav-shell.is-open {
  border-color: var(--line-strong);
  box-shadow: 0 14px 40px rgba(22, 32, 55, 0.11);
}

.brand {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-name {
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 520;
  white-space: nowrap;
}

.nav-chapters {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.site-nav a,
.site-nav a:hover,
.site-nav a.is-active {
  min-height: 42px;
  padding: 11px 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  color: inherit;
  transition: color 170ms ease, background-color 170ms ease, transform 180ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.nav-primary-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-primary-actions .nav-theme-toggle,
.site-nav .nav-cta,
.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  height: 40px;
  min-height: 40px;
  border-radius: var(--radius-small);
}

.nav-primary-actions .nav-theme-toggle {
  padding-right: 16px;
  padding-left: 16px;
}

.site-nav .nav-cta,
.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  padding: 9px 18px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-nav .nav-cta-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  filter: brightness(0) invert(1);
  transition: transform 180ms ease;
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.site-nav .nav-cta:hover .nav-cta-icon {
  transform: translateX(2px);
}

.site-nav .nav-cta:active {
  transform: scale(0.97);
}

.nav-actions {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.nav-theme-mobile {
  display: none;
}

.nav-menu-button {
  min-width: 58px;
  min-height: 44px;
  border-color: var(--line);
  background: var(--paper-strong);
  color: var(--ink);
}

.section-shell {
  width: min(100%, var(--content));
}

.section-pad {
  padding: clamp(112px, 10vw, 168px) var(--gutter);
}

.hero {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: block;
  background: #ffffff;
}

:root[data-theme="dark"] .hero {
  background: var(--paper);
}

.hero-stage {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 116px 0 clamp(24px, 3.5svh, 34px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.hero-copy {
  width: min(calc(100% - 40px), 960px);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  max-width: none;
  font-size: clamp(64px, 5.2vw, 78px);
  font-weight: 730;
  letter-spacing: -0.062em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-line {
  position: relative;
  width: max-content;
  max-width: 100%;
  overflow: visible;
  display: block;
  margin: 0 auto;
}

.hero-line + .hero-line {
  margin-top: 0.02em;
}

.hero-line-window {
  overflow: clip;
  display: block;
  padding: 0 0 0.06em;
}

.hero-line-window > span {
  display: block;
  white-space: nowrap;
}

.hero-punctuation {
  position: absolute;
  top: 0;
  inset-inline-start: 100%;
  display: block;
  white-space: nowrap;
}

.hero-line-accent,
.hero-line-accent > span {
  color: var(--ink);
}

.hero-stop,
.hero-line-accent .hero-stop {
  color: var(--accent);
}

.hero-intro {
  max-width: 670px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 420;
  letter-spacing: -0.012em;
  line-height: 1.6;
}

.hero-character {
  width: min(600px, 86vw);
  margin: 30px auto 0;
  display: block;
}

@media (min-width: 861px) {
  .about-lead {
    position: relative;
    top: -28px;
  }
}

.hero-character picture {
  display: block;
  transform: none !important;
  transition: none;
}

.hero-character-art-dark {
  display: none !important;
}

:root[data-theme="dark"] .hero-character-art-light {
  display: none !important;
}

:root[data-theme="dark"] .hero-character-art-dark {
  display: block !important;
}

.hero-character img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

.hero-character figcaption {
  display: none;
}

.method-rail {
  width: min(calc(100% - 64px), 1280px);
  min-height: 90px;
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper-strong);
}

.method-rail article {
  min-width: 0;
  padding: 17px 32px 19px;
  text-align: center;
}

.method-rail article + article {
  border-left: 1px solid var(--line);
}

.method-rail h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.method-rail p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hero-proofs {
  width: 100%;
  margin: 0;
  border: 0;
  display: block;
  background: var(--paper-soft);
}

.hero-proof {
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  min-width: 0;
  margin: 0 auto;
  padding: clamp(76px, 7vw, 110px) 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1.36fr);
  align-items: start;
  gap: clamp(48px, 4.8vw, 70px);
}

.hero-proof + .hero-proof {
  padding-left: 0;
  border-top: 1px solid var(--line);
  border-left: 0;
}

.hero-proof:first-child {
  padding-right: 0;
}

#featured-work {
  padding-top: 28px;
  padding-bottom: clamp(76px, 7vw, 104px);
}

.hero-proof:nth-child(even) .hero-proof-copy {
  order: 2;
}

.hero-proof:nth-child(even) figure {
  order: 1;
}

.hero-proof-copy {
  align-self: start;
  padding-top: 30px;
  display: block;
}

.hero-proof-copy > span,
.section-label,
.profile-monogram span,
.case-title > span,
.preview-heading > span,
.now-stream article > span,
.notes-status > span,
.error-code {
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero-proof h2 {
  margin-top: 24px;
  font-size: clamp(34px, 2.6vw, 42px);
  font-weight: 680;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.hero-proof p {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
}

.hero-proof a,
.case-links a,
.all-projects-link,
.site-footer a {
  width: fit-content;
  margin-top: 26px;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 560;
  transition: color 170ms ease, transform 180ms var(--ease-out);
}

.hero-proof a:hover,
.case-links a:hover,
.all-projects-link:hover,
.site-footer a:hover {
  color: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-proof figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--paper-strong);
  box-shadow: 0 24px 68px rgba(24, 32, 56, 0.1);
}

.hero-proof figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.proof-demo-frame {
  aspect-ratio: 1092 / 662;
  isolation: isolate;
}

.proof-demo-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #f5f5f7;
}

.proof-demo-hint {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  color: #424245;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.03em;
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 6px 20px rgba(24, 32, 56, 0.08);
  pointer-events: none;
}

.hero-proof figure figcaption {
  display: none;
}

.identity-line {
  min-height: 0;
  padding: 34px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: var(--paper-strong);
}

.identity-line p {
  width: min(100%, var(--content));
  justify-content: center;
  gap: 22px;
  text-align: center;
}

.identity-line strong {
  color: var(--accent);
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.identity-line span {
  color: var(--muted);
  font-weight: 440;
}

.about,
.now {
  background: var(--paper-strong);
}

.work,
.notes {
  border: 0;
  background: var(--paper-soft);
}

.about-grid {
  gap: 72px 34px;
}

.about-lead {
  grid-column: 1 / 9;
}

.about-lead::before,
.section-heading::before,
.now-lead::before,
.notes-heading::before {
  display: none;
}

.about-lead .section-label {
  display: block;
  margin-bottom: 20px;
}

.about-lead h2 {
  font-size: clamp(46px, 3.8vw, 54px);
  font-weight: 670;
  letter-spacing: -0.052em;
  line-height: 1.08;
}

.about-title-line {
  display: block;
  text-wrap: balance;
}

.about-title-line + .about-title-line {
  margin-top: 0.12em;
}

.section-heading h2,
.now-lead h2,
.notes-heading h2,
.closing-inner h2 {
  font-size: clamp(46px, 4.6vw, 68px);
  font-weight: 670;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

#work-title > span {
  display: block;
}

.about-lead > p:not(.section-label),
.section-heading > p:last-child,
.now-lead > p,
.notes-heading > p {
  max-width: 720px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.65;
}

.profile-plate {
  padding: 26px;
  border: 0;
  border-radius: var(--radius-medium);
  background: var(--paper-soft);
  container-name: profile-plate;
  container-type: inline-size;
}

.profile-monogram {
  position: relative;
  min-height: 76px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: visible;
}

.profile-logo-trigger {
  position: relative;
  z-index: 4;
  width: 76px;
  height: 76px;
  padding: 4px;
  border: 0;
  border-radius: var(--radius-small);
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease, transform 220ms var(--ease-out);
}

.profile-logo-trigger img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-small);
}

.profile-logo-trigger[aria-expanded="true"] {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.profile-logo-trigger:active {
  transform: scale(0.96);
}

.profile-logo-story-slot {
  position: relative;
  z-index: 3;
  min-width: 0;
  height: 76px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.profile-logo-story {
  position: relative;
  width: min(100%, 460px);
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--paper-strong);
  box-shadow: 0 12px 34px rgba(22, 32, 55, 0.12);
  color: var(--muted-strong);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-12px, 0, 0) scale(0.975);
  transform-origin: left center;
  pointer-events: none;
}

.profile-logo-story::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  width: 12px;
  height: 12px;
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--paper-strong);
  transform: translateY(-50%) rotate(45deg);
}

.profile-logo-story.is-open {
  pointer-events: auto;
}

.profile-logo-story p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
}

.profile-logo-story strong {
  color: var(--ink);
  font-weight: 680;
}

.profile-monogram-meta {
  position: relative;
  z-index: 1;
  grid-column: 3;
  grid-row: 1;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 170ms ease, transform 220ms var(--ease-out);
}

.profile-monogram b {
  display: none;
}

:root[data-theme="dark"] .profile-logo-story {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

@media (hover: hover) and (pointer: fine) {
  .profile-logo-trigger:hover {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    transform: scale(1.03);
  }

  .profile-logo-trigger[aria-expanded="true"]:hover {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
  }
}

@container profile-plate (max-width: 520px) {
  .profile-logo-story-slot {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .profile-monogram.is-story-open .profile-monogram-meta {
    opacity: 0;
    transform: translate3d(8px, 0, 0);
  }
}

.profile-plate dl div {
  min-height: 56px;
  padding: 14px 0;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-color: var(--line);
}

.profile-plate dt {
  font-size: 13px;
}

.profile-plate dd {
  font-size: 15px;
  line-height: 1.5;
}

.about-portrait img,
.case-media img {
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-medium);
  background: var(--paper-soft);
}

.profile-details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--paper-strong);
}

.profile-details summary {
  padding: 20px 24px;
}

.profile-details-body {
  padding: 34px 24px 44px;
}

.about-pages {
  grid-column: 1 / -1;
  min-width: 0;
}

.about-pages-header {
  margin-bottom: 28px;
  display: block;
}

.about-pages-header .section-label {
  margin: 0 0 12px;
}

.about-pages-header h3 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 670;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.about-pages-stage {
  position: relative;
  min-width: 0;
  min-height: 650px;
  padding: clamp(28px, 3.2vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  display: grid;
  grid-template-columns: minmax(290px, 0.78fr) 58px minmax(0, 1.42fr);
  align-items: stretch;
  gap: clamp(22px, 2.4vw, 34px);
  background: var(--paper-soft);
}

.about-pages-controls {
  position: relative;
  z-index: 4;
  align-self: center;
  justify-self: center;
  padding: 9px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  display: none;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  background: color-mix(in srgb, var(--paper-strong) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 30px rgba(22, 32, 55, 0.1);
}

.about-pages.is-enhanced .about-pages-controls {
  display: flex;
}

.about-page-arrow:active:not(:disabled) {
  transform: scale(0.96);
}

.about-page-status {
  min-width: 40px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.about-page-arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-circle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-strong);
  cursor: pointer;
  transition: border-color 170ms ease, background-color 170ms ease, transform 120ms ease, opacity 170ms ease;
}

.about-page-arrow:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.about-page-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.about-page-arrow img {
  width: 18px;
  height: 18px;
}

.about-page-prev img {
  transform: rotate(-90deg);
}

.about-page-next img {
  transform: rotate(90deg);
}

:root[data-theme="dark"] .about-page-arrow img {
  filter: invert(1);
}

.about-pages-viewport {
  grid-column: 3;
  min-width: 0;
  border-radius: calc(var(--radius-large) - 10px);
}

.about-pages.is-enhanced .about-pages-viewport {
  overflow: hidden;
  transition: height 360ms var(--ease-out);
}

.about-pages-viewport:focus-visible {
  outline-offset: 8px;
}

.about-pages-track {
  display: grid;
  gap: 24px;
}

.about-pages.is-enhanced .about-pages-track {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  transition: transform 420ms var(--ease-out);
  will-change: transform;
}

.about-page {
  min-width: 0;
  min-height: 560px;
  padding: 6px 0 0;
  border: 0;
  background: transparent;
}

.about-pages.is-enhanced .about-page {
  width: 100%;
  flex: 0 0 auto;
}

.about-pages.is-enhanced .about-page:not(.is-active) {
  pointer-events: none;
}

.about-page-personality {
  display: block;
}

.about-pages-stage > .about-portrait {
  grid-column: 1;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.about-pages-stage > .about-portrait picture {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  display: block;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(24, 32, 56, 0.06);
}

.about-pages-stage > .about-portrait img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-medium);
  display: block;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.about-pages-stage > .about-portrait-gentle img {
  object-fit: cover;
  object-position: 50% 48%;
}

.about-pages-stage > .about-portrait figcaption {
  max-width: 100%;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.about-personality-content {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(210px, 0.94fr);
  gap: clamp(28px, 3vw, 46px);
}

.about-page .profile-traits,
.about-page .profile-life,
.about-page .life-timeline {
  grid-column: auto;
  min-width: 0;
}

.about-page .profile-traits h3,
.about-page .profile-life h3 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 670;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.about-page .profile-traits h3 span,
.about-page .profile-life h3 span {
  display: block;
}

.about-page .profile-traits dl,
.about-page .profile-life ul {
  margin: 0;
}

.about-page .profile-traits dl div,
.about-page .profile-life li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.about-page .profile-traits dt {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.018em;
}

.about-page .profile-traits dd,
.about-page .profile-life p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.about-page .profile-life li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.about-page .profile-life p {
  margin: 0;
}

.about-page .profile-life li > span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.4;
}

.about-page-timeline {
  display: block;
  padding-left: 8px;
  padding-right: 2px;
}

.about-page-timeline .timeline-heading {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(0, 1.18fr);
  align-items: end;
  gap: 12px 28px;
}

.about-page-kicker {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.about-page-timeline .timeline-heading h3 {
  margin: 0;
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 680;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.about-page-timeline .timeline-heading > p:last-child {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.about-page-timeline .life-timeline {
  padding: 0;
  border: 0;
}

.about-page-timeline .life-timeline ol {
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.about-page-timeline .life-timeline li {
  min-height: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(86px, 0.52fr) minmax(142px, 0.78fr) minmax(0, 1.4fr);
  align-items: baseline;
  gap: 16px;
}

.about-page-timeline .life-timeline li::before {
  display: none;
}

.about-page-timeline .life-timeline time {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 650;
}

.about-page-timeline .life-timeline strong {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.about-page-timeline .life-timeline li p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.life-timeline ol,
.case,
.now-stream,
.notes-board,
.focus-chain {
  border-color: var(--line-strong);
}

.case-list {
  margin-top: clamp(70px, 7vw, 104px);
  display: grid;
  gap: 28px;
}

.case {
  padding: clamp(30px, 4vw, 52px);
  border: 0;
  border-radius: var(--radius-large);
  background: var(--paper-strong);
  box-shadow: 0 18px 52px rgba(24, 32, 56, 0.06);
}

.case:last-child {
  border: 0;
}

.case-title h3 {
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 660;
  letter-spacing: -0.055em;
}

.case-title > p,
.case-facts dd {
  color: var(--muted);
}

.case-facts > div {
  border-color: var(--line);
}

.agentpet-preview {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--paper-soft);
}

.agent-lamp {
  border-color: var(--line);
  border-radius: var(--radius-small);
  background: var(--paper-strong);
}

.agent-lamp:hover {
  border-color: var(--line-strong);
  background: var(--paper-strong);
}

.all-projects-link {
  min-height: 56px;
  margin-top: 38px;
  padding: 0;
  border: 0;
}

.now-layout {
  align-items: stretch;
}

.notes-layout {
  align-items: start;
}

.now-left {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.focus-chain,
.now-stream,
.notes-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--paper-soft);
}

.focus-chain {
  padding: 24px;
  align-self: stretch;
}

.now-stream {
  height: auto;
  margin-top: 22px;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.now-stream article {
  display: grid;
  align-content: center;
}

.focus-chain li,
.now-stream article,
.notes-status,
.note-list li {
  padding-right: 24px;
  padding-left: 24px;
  border-color: var(--line);
}

.now-stream article {
  padding-top: 30px;
  padding-bottom: 30px;
}

.notes-board {
  background: var(--paper-strong);
}

.closing {
  background: var(--ink);
  color: var(--paper);
}

.closing .button-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #1d1d1f;
}

.closing .button-quiet {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

:root[data-theme="dark"] .closing .button-quiet {
  border-color: rgba(29, 29, 31, 0.34);
  background: rgba(29, 29, 31, 0.05);
  color: #1d1d1f;
}

:root[data-theme="dark"] .closing .button-quiet:hover {
  border-color: rgba(29, 29, 31, 0.52);
  background: rgba(29, 29, 31, 0.09);
}

.button {
  min-height: 48px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-weight: 620;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.site-footer {
  padding: 34px var(--gutter);
  border-color: var(--line);
  background: var(--paper-strong);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer a {
  margin: 0;
}

.theme-toggle {
  min-width: 62px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--muted-strong);
}

.nav-theme-toggle {
  width: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--paper-soft);
}

.error-page {
  padding: 40px var(--gutter);
  background: var(--paper);
}

.error-page h1 {
  font-weight: 680;
}

@media (max-width: 1120px) {
  .hero-proof {
    grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
    gap: 46px;
  }

  .about-lead {
    grid-column: 1 / 9;
  }

  .profile-plate {
    grid-column: 9 / 13;
  }
}

@media (max-width: 860px) {
  .site-header {
    inset: 10px 0 auto;
  }

  .nav-shell {
    width: calc(100% - 24px);
    min-height: 56px;
    padding-left: 18px;
  }

  .nav-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-actions {
    display: flex;
    margin-left: auto;
  }

  .nav-theme-desktop {
    display: none;
  }

  .nav-theme-mobile {
    display: inline-flex;
  }

  .nav-theme-mobile,
  .nav-menu-button {
    height: 44px;
    min-height: 44px;
    border-radius: var(--radius-small);
  }

  .site-nav {
    position: absolute;
    inset: 66px 0 auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper-strong);
    box-shadow: 0 18px 48px rgba(22, 32, 55, 0.14);
  }

  .nav-shell.is-open .site-nav {
    display: flex;
  }

  .nav-chapters {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-primary-actions {
    width: 100%;
    display: block;
  }

  .site-nav a,
  .site-nav a:hover,
  .site-nav a.is-active {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: var(--radius-small);
    justify-content: flex-start;
  }

  .site-nav a:not(.nav-cta):hover,
  .site-nav a:not(.nav-cta).is-active {
    background: var(--paper-soft);
  }

  .site-nav .nav-cta,
  .site-nav .nav-cta:hover,
  .site-nav .nav-cta.is-active {
    height: 48px;
    min-height: 48px;
    margin-top: 6px;
    justify-content: center;
  }

  .hero {
    padding-top: 0;
  }

  .hero-stage {
    padding-top: 104px;
    padding-bottom: clamp(24px, 4svh, 34px);
  }

  .hero h1 {
    font-size: clamp(50px, 7.8vw, 62px);
  }

  .hero-character {
    width: min(520px, 82vw);
    margin: 30px auto 0;
  }

  .hero-character picture {
    transform: none !important;
  }

  .method-rail {
    width: calc(100% - 40px);
    margin-top: 0;
  }

  .method-rail article {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-proof,
  .hero-proof + .hero-proof {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  #featured-work {
    padding-top: 64px;
  }

  .hero-proof:nth-child(even) .hero-proof-copy,
  .hero-proof:nth-child(even) figure {
    order: initial;
  }

  .about-grid,
  .now-layout,
  .notes-layout,
  .closing-inner {
    grid-template-columns: 1fr;
  }

  .now-stream {
    margin-top: 0;
  }

  .about-lead,
  .profile-plate,
  .about-pages {
    grid-column: 1;
  }

  .about-lead {
    top: 0;
  }

  .about-pages-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-pages-stage {
    display: grid;
    min-height: 0;
    padding: 30px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-pages-controls {
    position: static;
    grid-column: 1;
    width: auto;
    justify-self: end;
    flex-direction: row;
    transform: none;
  }

  .about-pages-viewport {
    grid-column: 1;
  }

  .about-pages-stage > .about-portrait {
    grid-column: 1;
    max-width: 620px;
    min-height: 0;
  }

  .about-pages-stage > .about-portrait picture {
    aspect-ratio: 4 / 5;
  }

  .about-pages-stage > .about-portrait img {
    object-fit: contain;
  }

  .about-pages-stage > .about-portrait-gentle img {
    object-fit: cover;
    object-position: 50% 48%;
  }

  .about-page {
    min-height: 0;
  }

  .about-personality-content {
    grid-template-columns: minmax(0, 1.06fr) minmax(220px, 0.94fr);
  }

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

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --radius-medium: 18px;
    --radius-large: 24px;
  }

  .nav-shell {
    width: calc(100% - 20px);
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .hero {
    width: 100%;
    padding: 0;
  }

  .hero-stage {
    padding: clamp(140px, 19svh, 180px) 0 24px;
    display: grid;
    grid-template-rows: auto minmax(28px, 1fr) auto minmax(20px, 1fr);
  }

  .hero-stage .hero-copy {
    grid-row: 1;
  }

  .hero-copy {
    width: calc(100% - 40px);
  }

  .hero h1 {
    font-size: clamp(38px, 11.8vw, 52px);
    letter-spacing: -0.065em;
    line-height: 1.04;
  }

  .hero-line-window > span {
    white-space: nowrap;
  }

  .hero-intro {
    max-width: 330px;
    margin-top: 20px;
    font-size: 16px;
  }

  .hero-stage .hero-character {
    grid-row: 3;
    width: min(440px, 96vw);
    margin: 0 auto;
  }

  :root[data-theme="dark"] .hero-stage .hero-character {
    margin: 0 auto;
  }

  .hero-character picture {
    transform: none !important;
  }

  .method-rail {
    width: calc(100% - 40px);
    display: block;
  }

  .method-rail article {
    min-height: 70px;
    padding: 15px 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    text-align: left;
  }

  .method-rail article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .method-rail p {
    margin: 0;
  }

  .hero-proof {
    width: 100%;
    padding: 72px 20px;
  }

  #featured-work {
    padding: 72px 20px;
  }

  .hero-proof h2 {
    font-size: 38px;
  }

  .hero-proof figure {
    border-radius: var(--radius-medium);
  }

  .identity-line {
    padding: 26px 20px;
  }

  .identity-line p {
    display: grid;
    gap: 8px;
  }

  .section-pad {
    padding: 96px 20px;
  }

  .about-grid {
    gap: 48px;
  }

  .about-pages-header {
    margin-bottom: 20px;
    gap: 20px;
  }

  .about-pages-header h3 {
    font-size: 34px;
  }

  .about-pages-controls {
    justify-self: start;
  }

  .about-pages-stage {
    padding: 20px;
  }

  .about-page {
    min-height: 0;
    padding: 5px 0 0;
  }

  .about-personality-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-page-timeline .timeline-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .about-page-timeline .timeline-heading h3 {
    font-size: 39px;
  }

  .about-page-timeline .life-timeline li {
    padding: 20px 0;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-lead h2,
  .section-heading h2,
  .now-lead h2,
  .notes-heading h2,
  .closing-inner h2 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .work-title-method > span {
    display: block;
  }

  .profile-details summary {
    padding: 20px;
  }

  .profile-details-body {
    padding: 28px 20px 36px;
  }

  .case-list {
    gap: 20px;
  }

  .case {
    padding: 24px;
    gap: 34px;
  }

  .case-title h3 {
    font-size: 40px;
  }

  .focus-chain,
  .now-stream,
  .notes-board {
    border-radius: var(--radius-medium);
  }

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

@media (prefers-reduced-transparency: reduce) {
  .nav-shell {
    background: var(--paper-strong);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-pages-viewport,
  .about-pages-track,
  .about-page-arrow {
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(29, 29, 31, 0.28);
    --line-strong: rgba(29, 29, 31, 0.52);
  }

  :root[data-theme="dark"] {
    --line: rgba(245, 245, 247, 0.3);
    --line-strong: rgba(245, 245, 247, 0.58);
  }

  .nav-shell,
  .profile-details,
  .focus-chain,
  .now-stream,
  .notes-board {
    background: var(--paper-strong);
  }
}

@media print {
  .site-header,
  .theme-toggle,
  .nav-menu-button {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-proofs,
  .work,
  .notes {
    background: #ffffff;
  }
}

/* V5.9 — one project system: evidence belongs inside each project. */
.project-system {
  background: var(--paper-soft);
}

.project-system-heading {
  padding-bottom: clamp(54px, 6vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.68fr);
  align-items: end;
  gap: clamp(54px, 8vw, 124px);
}

.project-system-heading .section-label {
  margin-bottom: 18px;
}

.project-system-heading h2 {
  margin: 0;
  font-size: clamp(54px, 5.8vw, 82px);
  font-weight: 680;
  letter-spacing: -0.062em;
  line-height: 1.01;
}

.project-system-heading > p {
  max-width: 540px;
  margin: 0 0 0.32em;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.72;
}

#featured-work.project-flagship {
  min-width: 0;
  padding: clamp(34px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1.24fr);
  align-items: stretch;
  gap: clamp(38px, 4.5vw, 68px);
  background: var(--paper-strong);
  box-shadow: 0 26px 76px rgba(24, 32, 56, 0.09);
}

.project-flagship-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.project-index,
.project-type {
  margin: 0;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.project-type {
  text-transform: none;
}

.project-flagship h3 {
  margin: 18px 0 0;
  font-size: clamp(43px, 4vw, 60px);
  font-weight: 680;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.project-declaration {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(21px, 1.75vw, 26px);
  font-weight: 560;
  letter-spacing: -0.032em;
  line-height: 1.36;
}

.project-tags {
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.project-tags li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper-soft);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 580;
  line-height: 1;
}

.project-evidence {
  margin: 32px 0 0;
}

.project-evidence > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.project-evidence dt,
.project-card-evidence dt {
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.project-evidence dd,
.project-card-evidence dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.project-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.project-link-primary,
.project-card-link,
.more-project-list a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  transition: color 170ms ease, transform 180ms var(--ease-out);
}

.project-link-primary:hover,
.project-card-link:hover,
.more-project-list a:hover {
  color: var(--accent-hover);
  transform: translateY(-1px);
}

.project-actions > span {
  color: var(--muted);
  font-size: 11px;
}

.project-demo-frame {
  position: relative;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-large) - 8px);
  display: flex;
  flex-direction: column;
  background: #f5f5f7;
  isolation: isolate;
}

.project-demo-frame iframe {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1092 / 662;
  flex: 0 0 auto;
  border: 0;
  display: block;
  background: #f5f5f7;
}

.project-demo-frame figcaption {
  min-height: 0;
  padding: 20px 24px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  background: var(--paper-soft);
}

.project-demo-frame figcaption span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.045em;
}

.project-demo-frame figcaption strong {
  margin-top: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.project-demo-frame figcaption small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.project-demo-hint {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  color: #424245;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 6px 20px rgba(24, 32, 56, 0.08);
  pointer-events: none;
}

.featured-projects {
  padding-top: clamp(112px, 11vw, 164px);
}

.project-group-heading {
  max-width: 1080px;
}

.project-group-heading h3 {
  margin: 20px 0 0;
  font-size: clamp(42px, 4.5vw, 66px);
  font-weight: 670;
  letter-spacing: -0.058em;
  line-height: 1.04;
}

.project-group-heading h3 span {
  display: block;
}

.mobile-only-break {
  display: none;
}

@media (min-width: 1051px) {
  .project-group-heading h3 span {
    white-space: nowrap;
  }
}

.project-card-grid {
  margin-top: clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  min-width: 0;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  display: flex;
  flex-direction: column;
  background: var(--paper-strong);
}

.project-card-copy h4,
.more-project-list h4 {
  margin: 14px 0 0;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 680;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.project-card-copy > p:last-child {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.project-card .agentpet-preview {
  margin-top: 30px;
  padding: 20px;
  min-height: clamp(320px, 25vw, 390px);
  border-radius: var(--radius-medium);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
}

.project-card-agentpet .preview-heading {
  margin-bottom: 0;
}

.project-card-agentpet .signal-tower {
  margin-top: 42px;
  margin-bottom: 0;
}

.project-card .signal-tower {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card .agent-lamp {
  min-width: 0;
  padding: 12px;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.project-card .lamp-meta {
  justify-items: center;
}

.signal-legend {
  min-height: 96px;
  margin: 34px 0 0;
  padding: 26px 0 12px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  list-style: none;
}

.signal-legend li {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.signal-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--muted) 10%, transparent);
}

.signal-legend-dot.is-blue {
  background: var(--status-blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-blue) 10%, transparent);
}

.signal-legend-dot.is-green {
  background: var(--status-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-green) 10%, transparent);
}

.signal-legend-dot.is-red {
  background: var(--status-red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--status-red) 10%, transparent);
}

.signal-legend strong,
.signal-legend small {
  display: block;
}

.signal-legend strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.signal-legend small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.project-card-media {
  order: -1;
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: #ffffff;
}

.project-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: center;
}

.project-card-evidence {
  margin: 30px 0 0;
}

.project-card-evidence > div {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
}

.project-card-link {
  width: fit-content;
  margin-top: auto;
  padding-top: 26px;
}

.project-card-memory {
  grid-column: 1 / -1;
  padding: clamp(34px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
  gap: clamp(42px, 5vw, 72px);
}

.project-card-memory-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.memory-principle {
  min-height: 440px;
  margin: 0;
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius-medium);
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: space-between;
  background: #1d1d1f;
  color: #ffffff;
}

.memory-principle p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 660;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.memory-principle footer {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.58);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.035em;
  line-height: 1.55;
}

.more-projects {
  margin-top: clamp(112px, 11vw, 164px);
  padding-top: clamp(44px, 5vw, 68px);
  border-top: 1px solid var(--line-strong);
}

.more-projects > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.more-projects > header h3 {
  margin: 14px 0 0;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 670;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.more-project-list {
  margin-top: 36px;
  border-top: 1px solid var(--line-strong);
}

.more-project-list article {
  min-height: 196px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.72fr) auto;
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
}

.more-project-list h4 {
  font-size: clamp(28px, 2.6vw, 38px);
}

.more-project-list article > div > p:last-child {
  max-width: 640px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.more-project-list .project-tags {
  margin: 0;
}

.more-project-list > article > a {
  white-space: nowrap;
}

.project-system .all-projects-link {
  min-height: 56px;
  margin-top: 32px;
  padding: 0;
  border: 0;
}

@media (max-width: 1050px) {
  .project-system-heading {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 52px;
  }

  #featured-work.project-flagship {
    grid-template-columns: 1fr;
  }

  .project-card-memory {
    grid-template-columns: 1fr;
  }

  .memory-principle {
    min-height: 0;
  }

  .more-project-list article {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .more-project-list .project-tags {
    grid-column: 1;
  }

  .more-project-list > article > a {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 760px) {
  .project-system-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .project-system-heading h2 {
    font-size: clamp(48px, 13vw, 64px);
  }

  .project-system-heading > p {
    max-width: 620px;
    margin: 0;
  }

  #featured-work.project-flagship {
    padding: 26px;
    gap: 34px;
  }

  .project-card-grid {
    grid-template-columns: 1fr;
  }

  .project-card-memory {
    grid-column: 1;
  }

  .more-project-list article {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .more-project-list .project-tags,
  .more-project-list > article > a {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .project-system-heading h2 {
    font-size: clamp(44px, 14vw, 58px);
  }

  #featured-work.project-flagship,
  .project-card,
  .project-card-memory {
    padding: 22px;
    border-radius: var(--radius-large);
  }

  .project-flagship h3 {
    font-size: 40px;
  }

  .project-declaration {
    font-size: 20px;
  }

  .project-evidence > div,
  .project-card-evidence > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .project-group-heading h3 {
    font-size: 38px;
  }

  .project-card .signal-tower {
    grid-template-columns: 1fr;
  }

  .project-card .agentpet-preview {
    min-height: 0;
  }

  .project-card-agentpet .signal-tower {
    margin-top: 26px;
  }

  .project-card .agent-lamp {
    flex-direction: row;
    text-align: left;
  }

  .project-card .lamp-meta {
    justify-items: start;
  }

  .signal-legend {
    min-height: 0;
    padding-inline: 0;
  }

  .memory-principle {
    padding: 18px;
    min-height: 320px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .project-demo-hint {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media print {
  .project-system {
    background: #ffffff;
  }

  .project-demo-hint {
    display: none;
  }
}

/* V5.16 — iPhone adaptation layered on top of the desktop composition. */
@media (max-width: 600px) {
  :root {
    --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  }

  html {
    scroll-padding-top: calc(82px + env(safe-area-inset-top));
  }

  .site-header,
  .site-header.is-scrolled,
  .site-header:has(.nav-shell.is-open) {
    inset: calc(10px + env(safe-area-inset-top)) 0 auto;
  }

  .nav-shell {
    width: auto;
    margin-right: max(10px, env(safe-area-inset-right));
    margin-left: max(10px, env(safe-area-inset-left));
  }

  .site-nav {
    max-height: calc(100vh - 86px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 86px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .hero {
    padding-top: 0;
  }

  .hero-stage {
    padding-top: calc(clamp(140px, 19svh, 180px) + env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .brand {
    min-height: 44px;
  }

  .hero-copy,
  .method-rail {
    width: auto;
    margin-right: var(--gutter);
    margin-left: var(--gutter);
  }

  .identity-line,
  .section-pad,
  .hero-proof,
  #featured-work {
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }

  .section-pad {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  #about.section-pad {
    padding-top: 80px;
  }

  .about-grid {
    gap: 42px;
  }

  .about-pages-header h3 {
    font-size: clamp(31px, 8.7vw, 36px);
  }

  .about-pages-title-line {
    display: block;
    white-space: nowrap;
  }

  .about-pages-stage {
    padding: 20px;
  }

  .about-pages-controls {
    margin-top: 2px;
  }

  .about-pages-viewport,
  .about-page {
    width: 100%;
  }

  .project-group-heading h3 {
    font-size: clamp(36px, 10.2vw, 42px);
    line-height: 1.06;
  }

  .mobile-only-break {
    display: block;
  }

  .project-demo-frame iframe {
    aspect-ratio: 4 / 3;
  }

  .project-demo-frame figcaption {
    padding: 18px;
  }

  .project-demo-frame figcaption small {
    font-size: 12px;
  }

  .project-link-primary,
  .project-card-link,
  .more-project-list a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .site-footer {
    padding-right: var(--gutter);
    padding-bottom: calc(34px + env(safe-area-inset-bottom));
    padding-left: var(--gutter);
  }

  .theme-toggle {
    min-height: 44px;
  }
}
