:root {
  color-scheme: light;
  --ink: #202827;
  --muted: #68716e;
  --line: #dce2de;
  --paper: #f7f8f5;
  --white: #fff;
  --green: #167b58;
  --coral: #c95142;
  --amber: #a76710;
  --blue: #466c95;
  --serif: "Iowan Old Style", "Noto Serif CJK SC", "Songti SC", "Source Han Serif SC", serif;
  --shell: min(1320px, calc(100% - 80px));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

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

body { width: 100%; max-width: 100vw; margin: 0; min-width: 320px; overflow-x: hidden; background: var(--paper); }

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

button { color: inherit; font: inherit; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  height: 78px;
  border-bottom: 1px solid var(--line);
}

.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }

.wordmark-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-family: var(--serif);
  font-size: 16px;
}

.main-nav { display: flex; gap: 34px; color: var(--muted); font-size: 13px; }

.main-nav a, .header-link, .text-link, .project-foot a, .web-shot figcaption a, .site-footer > a:last-child { transition: color 160ms ease; }

.main-nav a:hover, .header-link:hover, .text-link:hover, .project-foot a:hover, .web-shot figcaption a:hover, .site-footer > a:last-child:hover { color: var(--green); }

.header-link { font-size: 13px; font-weight: 700; }

.header-link span { margin-left: 6px; color: var(--green); }

.hero {
  width: var(--shell);
  min-height: clamp(540px, calc(100vh - 170px), 760px);
  margin: 0 auto;
  padding: clamp(52px, 6vh, 84px) 0 clamp(56px, 6vh, 88px);
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  align-items: center;
  gap: clamp(44px, 4vw, 80px);
}

.hero-copy { padding-bottom: 18px; }

.eyebrow, .hero-visual-note, .section-kicker, .project-meta, .project-index, .project-foot, .metrics-caption, .site-footer { font-family: var(--serif); }

.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 28px; color: var(--muted); font-size: 11px; font-family: inherit; font-weight: 700; }

.eyebrow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

h1 { margin: 0; font-family: var(--serif); font-size: clamp(62px, 5vw, 88px); line-height: 1.12; font-weight: 600; }

.hero-lead { max-width: 420px; margin: 24px 0 26px; color: #4e5b57; font-size: 17px; line-height: 1.9; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }

.hero-tags span { padding: 7px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.text-link { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 7px; border-bottom: 1px solid #7faaa0; color: var(--green); font-size: 14px; font-weight: 700; }

.hero-visual { position: relative; width: 100%; max-width: clamp(470px, 36vw, 560px); min-width: 0; margin: 0; justify-self: end; }

.hero-visual::before { content: ""; position: absolute; top: -16px; right: -16px; width: 78%; height: 86%; border: 1px solid #b8d1c8; pointer-events: none; }

.hero-visual-note { position: relative; z-index: 1; display: flex; justify-content: space-between; margin: 0 12px 12px; color: var(--muted); font-size: 10px; }

.screen-button { display: block; width: 100%; min-width: 0; overflow: hidden; padding: 0; border: 0; background: #e9eeeb; cursor: zoom-in; }

.screen-button:focus-visible { outline: 3px solid #237c5e; outline-offset: 4px; }

.screen-button img { display: block; width: 100%; height: auto; }

.hero-screen { position: relative; z-index: 1; max-height: clamp(392px, 40vh, 520px); border: 7px solid #fff; box-shadow: 0 18px 50px rgba(32, 40, 39, 0.12); }

.hero-screen img { width: 100%; max-height: calc(clamp(392px, 40vh, 520px) - 14px); object-fit: cover; object-position: top; }

.hero-caption { position: relative; z-index: 1; display: flex; justify-content: space-between; margin: 13px 0 0; font-size: 13px; font-weight: 700; }

.hero-caption span:last-child { color: var(--green); font-size: 12px; }

.numbers-section { padding: clamp(34px, 4vh, 52px) max(40px, calc((100% - 1320px) / 2)) clamp(38px, 4.4vh, 54px); background: #ecefeb; }

.section-kicker { display: flex; align-items: center; gap: 15px; }

.section-kicker > span { color: var(--green); font-size: 12px; font-weight: 700; }

.section-kicker h2 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 26px; }

.metric { min-height: 102px; padding: 6px 24px 0; border-left: 1px solid #cfd6d1; }

.metric:first-child { padding-left: 0; border-left: 0; }

.metric strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 34px; line-height: 1.1; font-weight: 600; white-space: nowrap; }

.metric strong span { font-size: 23px; }

.metric-label { color: var(--muted); font-size: 12px; }

.metric-green strong { color: var(--green); }
.metric-coral strong { color: var(--coral); }
.metric-amber strong { color: var(--amber); font-size: 27px; }
.metric-blue strong { color: var(--blue); }

.metrics-caption { margin: 6px 0 0; color: #7d8581; font-size: 11px; }

.projects-section { width: var(--shell); margin: 0 auto; padding: clamp(64px, 7vh, 92px) 0 clamp(30px, 4vh, 46px); }

.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 12px; }

.section-heading .section-kicker h2 { font-size: 30px; }

.section-heading > p { margin: 0; color: var(--muted); font-size: 13px; }

.project { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 58px; align-items: center; min-width: 0; padding: 50px 0 58px; border-top: 1px solid var(--line); }

.project-copy { max-width: 470px; min-width: 0; }

.project-meta { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }

.project-index { color: #929b96; font-size: 12px; }

.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; background: var(--white); color: var(--muted); font-size: 11px; }

.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.status-pending i { background: var(--amber); }
.status-web i { background: var(--blue); }

.project h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 38px; line-height: 1.2; font-weight: 600; }

.project-title-row { display: flex; align-items: center; justify-content: flex-start; gap: 18px; }

.project-title-copy { min-width: 0; }

.qr-card { flex: 0 0 auto; width: 88px; margin: 0; text-align: center; }

.qr-button {
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 160ms ease;
}

.qr-button:hover { border-color: var(--green); }

.project-toolbox .qr-button:hover { border-color: var(--blue); }

.qr-card figcaption { margin-top: 6px; color: var(--muted); font-size: 10px; }

.project-type { margin: 0; color: var(--muted); font-size: 13px; }

.project-summary { margin: 22px 0 24px; color: #4c5753; font-size: 14px; line-height: 1.9; }

.feature-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }

.feature-list li { display: grid; grid-template-columns: 27px 1fr; gap: 10px; }

.feature-list li > span { padding-top: 2px; color: #9aa29e; font-family: var(--serif); font-size: 11px; }

.feature-list b { display: block; margin-bottom: 4px; font-size: 13px; }

.feature-list small { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; }

.feature-list-compact { gap: 12px; }

.project-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 25px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; }

.project-metric { color: var(--green); font-weight: 700; }

.project-metric i { padding: 0 3px; color: #9aa29e; font-style: normal; }

.project-foot a { color: var(--muted); white-space: nowrap; }

.screens { display: flex; align-items: start; justify-content: center; gap: 15px; min-width: 0; padding: 16px 20px 0; }

.screens-two .phone-shot { width: min(31%, 174px); }

.screens-three .phone-shot { width: min(28%, 145px); }

.phone-shot { min-width: 0; margin: 0; }

.phone-shot .screen-button { max-height: 365px; border: 5px solid #fff; box-shadow: 0 11px 30px rgba(32, 40, 39, 0.11); }

.phone-shot img { max-height: 355px; object-fit: cover; object-position: top; }

.phone-offset { margin-top: 32px; }

.phone-shot figcaption { margin-top: 10px; color: var(--muted); font-size: 10px; text-align: center; }

.project-lock { background: linear-gradient(90deg, rgba(221, 238, 229, 0.56), rgba(221, 238, 229, 0) 66%); }

.project-toolbox { background: linear-gradient(90deg, rgba(224, 233, 242, 0.58), rgba(224, 233, 242, 0) 66%); }

.tool-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }

.tool-list li { padding: 7px 9px; border: 1px solid #d4dce4; background: rgba(255, 255, 255, 0.65); color: #4b5e72; font-size: 11px; }

.project-toolbox .project-metric { color: var(--blue); }

.project-game { background: linear-gradient(90deg, rgba(243, 231, 238, 0.63), rgba(243, 231, 238, 0) 66%); }

.project-game .project-metric { color: var(--amber); }

.development-note { margin: 20px 0 0; padding: 10px 12px; border-left: 2px solid #c58c43; background: rgba(255, 255, 255, 0.62); color: #6e5a3d; font-size: 11px; line-height: 1.7; }

.game-screens .phone-shot .screen-button { max-height: 400px; }

.game-screens .phone-shot img { max-height: 390px; }

.project-jida { grid-template-columns: 0.78fr 1.22fr; align-items: start; background: linear-gradient(90deg, rgba(242, 235, 218, 0.58), rgba(242, 235, 218, 0) 66%); }

.project-jida .project-copy { padding-top: 8px; }

.project-jida .project-metric { color: var(--amber); }

.web-shot { min-width: 0; margin: 0; padding: 9px; border: 1px solid #d7ddd8; background: var(--white); box-shadow: 0 12px 35px rgba(32, 40, 39, 0.08); }

.web-shot .screen-button { background: #edf0ed; }

.web-shot img { aspect-ratio: 1440 / 1100; object-fit: cover; object-position: top; }

.web-shot figcaption { display: flex; justify-content: space-between; margin: 10px 2px 1px; color: var(--muted); font-size: 11px; }

.web-shot figcaption a { color: var(--blue); font-weight: 700; }

.notes-section { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: clamp(36px, 4vw, 60px); padding: clamp(36px, 4.4vh, 54px) max(40px, calc((100% - 1320px) / 2)) clamp(44px, 5vh, 64px); background: #ecefeb; }

.notes-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.notes-content p { margin: 0; padding-left: 13px; border-left: 1px solid #b8c0bb; color: #59645f; font-size: 11px; line-height: 1.8; }

.site-footer { min-height: 80px; color: var(--muted); font-family: inherit; font-size: 11px; }

.site-footer .wordmark { color: var(--ink); }

.image-viewer { width: min(94vw, 1040px); max-width: 1040px; max-height: 94vh; padding: 44px 16px 14px; border: 0; background: #202827; color: var(--white); }

.image-viewer::backdrop { background: rgba(16, 22, 20, 0.84); }

.image-viewer form { position: absolute; top: 8px; right: 10px; }

.viewer-close { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: var(--white); font-size: 25px; line-height: 1; cursor: pointer; }

.viewer-image { display: block; max-width: 100%; max-height: calc(94vh - 90px); margin: auto; object-fit: contain; }

.viewer-caption { margin: 10px 0 0; color: #d1d8d4; font-size: 12px; text-align: center; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr 0.8fr; gap: 30px; }
  h1 { font-size: 62px; }
  .hero-screen { max-height: 330px; }
  .hero-screen img { max-height: 316px; }
  .project { grid-template-columns: 0.85fr 1.15fr; gap: 24px; }
  .project-title-row { flex-wrap: wrap; gap: 10px 14px; }
  .project-title-copy { flex: 1 0 max-content; }
  .project h3 { font-size: 34px; }
  .qr-card { width: 62px; }
  .project-jida { grid-template-columns: 1fr; }
  .web-shot { margin-top: 4px; }
  .screens { gap: 8px; padding-inline: 3px; }
  .phone-shot .screen-button { border-width: 4px; }
  .notes-section { grid-template-columns: 1fr; gap: 23px; }
}

@media (max-width: 620px) {
  main { width: 100%; max-width: 100%; overflow-x: hidden; }
  .site-header, .site-footer, .hero, .projects-section { width: calc(100% - 36px); max-width: calc(100% - 36px); }
  .site-header { height: 64px; }
  .main-nav { gap: 10px; font-size: 12px; }
  .header-link { display: none; }
  .wordmark { font-size: 12px; }
  .hero { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 0 44px; }
  .hero-copy { width: 100%; min-width: 0; padding-bottom: 0; }
  .eyebrow { margin-bottom: 18px; font-size: 10px; }
  h1 { font-size: 52px; }
  .hero-lead { width: 100%; max-width: 100%; margin-top: 16px; font-size: 15px; }
  .hero-tags { margin-bottom: 22px; }
  .hero-visual { width: min(100%, 400px); justify-self: center; }
  .hero-visual::before { top: -10px; right: -8px; }
  .hero-screen { max-height: 320px; }
  .hero-screen img { max-height: 306px; }
  .numbers-section { padding: 28px 18px 27px; }
  .section-kicker h2 { font-size: 18px; }
  .metrics { grid-template-columns: 1fr 1fr; row-gap: 22px; margin-top: 22px; }
  .metric { min-height: 80px; padding: 2px 12px 0; }
  .metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .metric strong { font-size: 30px; }
  .metric strong span { font-size: 20px; }
  .metric-amber strong { font-size: 23px; }
  .metric-label { font-size: 10px; }
  .metrics-caption { max-width: 290px; line-height: 1.7; }
  .projects-section { padding-top: 54px; }
  .section-heading { align-items: start; margin-bottom: 5px; }
  .section-heading .section-kicker h2 { font-size: 26px; }
  .section-heading > p { max-width: 90px; padding-top: 4px; font-size: 11px; text-align: right; }
  .project { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 33px 0 39px; }
  .project h3 { font-size: 33px; }
  .project-title-row { gap: 14px; }
  .qr-card { width: 88px; }
  .project-summary { margin: 17px 0 20px; font-size: 13px; }
  .feature-list { gap: 12px; }
  .feature-list small { font-size: 11px; }
  .project-foot { flex-wrap: wrap; font-size: 10px; }
  .screens { gap: 9px; padding: 9px 0 0; }
  .screens-two .phone-shot { width: min(37%, 152px); }
  .screens-three .phone-shot { width: min(31%, 118px); }
  .phone-shot .screen-button { max-height: 300px; }
  .phone-shot img { max-height: 290px; }
  .phone-offset { margin-top: 20px; }
  .phone-shot figcaption { font-size: 9px; }
  .game-screens .phone-shot .screen-button { max-height: 320px; }
  .game-screens .phone-shot img { max-height: 310px; }
  .project-jida { gap: 20px; }
  .web-shot { margin-top: 0; padding: 6px; }
  .web-shot figcaption { font-size: 9px; }
  .notes-section { padding: 28px 18px 34px; }
  .notes-content { grid-template-columns: 1fr; gap: 13px; }
  .notes-content p { font-size: 11px; }
  .site-footer { min-height: 72px; }
  .site-footer > span { display: none; }
  .image-viewer { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
