@font-face {
  font-family: Inter;
  src: url('/assets/5a9db70e0fbc3067-s.p.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-synthesis: none;
  --paper: #fff;
  --ink: #232323;
  --muted: #737379;
  --line: #ececee;
  --accent: #45454a;
  --stage: #edf1ef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, video:focus-visible, summary:focus-visible { outline: 2px solid #74828c; outline-offset: 5px; }
::selection { background: #e7e7e7; color: var(--ink); }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* App color belongs to the media; the surrounding portfolio stays consistent. */
.project-canopy { --stage: #edf1e5; }
.project-crux { --stage: #ecefe5; }
.project-margin { --stage: #f3efe8; }
.project-shell { position: relative; width: 100%; max-width: 856px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; z-index: 10; top: -100px; left: 20px; padding: 12px; background: #fff; }
.skip-link:focus { top: 12px; }

.project-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 0 0 80px; }
.project-intro { min-width: 0; }
.project-lockup { display: flex; gap: 14px; align-items: center; margin-bottom: 32px; }
.project-lockup img { width: 52px; height: 52px; flex-shrink: 0; border-radius: 22%; }
.project-lockup h1 { margin: 0 0 3px; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -.7px; }
.project-lockup p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.project-tagline { margin: 0 0 24px; font-size: 44px; font-weight: 500; line-height: 1.14; letter-spacing: -1.7px; text-wrap: balance; }
.project-description { margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.project-features { list-style: none; padding: 0; margin: 0 0 28px; }
.project-features li { display: flex; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding: 13px 0; font-size: 14px; line-height: 1.65; }
.project-features li span { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.project-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; font-size: 13px; line-height: 1.7; }
.project-actions a { border-bottom: 1px solid #cfcfd3; padding: 5px 0; }
.project-actions a:hover { border-color: var(--ink); }

.project-demo { min-width: 0; margin: 0; }
.demo-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 25px 22px; border-radius: 12px; background: var(--stage); }
.stage-label, .stage-marker { color: #65676a; font-size: 12px; line-height: 1.6; text-align: center; }
.stage-marker { letter-spacing: .03em; }
.demo-phone { position: relative; width: 264px; max-width: 100%; aspect-ratio: 1360 / 2850; padding: 7px; border: 3px solid #555852; border-radius: 16% / 7.6%; background: #090b0a; box-shadow: 0 0 0 1px #171a18, 0 19px 30px -20px #121a1866; }
.demo-phone video { display: block; width: 100%; height: 100%; object-fit: contain; overflow: hidden; border-radius: 13.6% / 6.3%; background: #090b0a; }
.project-demo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.project-demo figcaption a { color: var(--ink); }
.project-demo figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.demo-description { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.demo-description summary { cursor: pointer; color: var(--ink); }
.demo-description summary span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.demo-description p { margin: 14px 0 0; }
.demo-description p:last-child { font-size: 12px; }

.project-direction { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; border-top: 1px solid var(--line); padding: 40px 0 72px; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; letter-spacing: .02em; }
.project-direction h2 { margin: 0; font-size: 32px; font-weight: 500; line-height: 1.25; letter-spacing: -.9px; text-wrap: balance; }
.project-direction > p { margin: 33px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: 36px; font-weight: 500; line-height: 1.2; letter-spacing: -1.1px; }
.screen-hint { max-width: 160px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: right; }
.capture-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-capture { min-width: 0; margin: 0; }
.capture-link { display: flex; position: relative; justify-content: center; padding: 24px 18px 44px; border-radius: 12px; background: var(--stage); }
.capture-link img { display: block; width: 100%; max-width: 236px; height: auto; transition: transform .3s; }
.capture-link:hover img { transform: translateY(-4px); }
.enlarge-label { position: absolute; right: 16px; bottom: 13px; color: #65676a; font-size: 12px; line-height: 1.5; }
.project-capture figcaption { padding-top: 20px; }
.screen-number { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.project-capture h3 { margin: 9px 0 10px; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -.35px; }
.project-capture p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.project-scope { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-top: 72px; border-block: 1px solid var(--line); padding: 32px 0; }
.project-scope h2 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -.3px; }
.project-scope p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.project-scope p:last-child { margin-bottom: 0; }
.next-project { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 36px 0 56px; }
.back-projects { color: var(--muted); font-size: 13px; line-height: 1.7; }
.back-projects:hover { color: var(--ink); }
.next-project-link { display: flex; align-items: center; gap: 22px; }
.next-project-link small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.next-project-link strong { font-size: 26px; font-weight: 500; line-height: 1.3; letter-spacing: -.7px; }
.next-project-link strong span { display: inline-block; margin-left: 5px; font-size: 22px; }
.next-project-link img { width: 48px; height: 48px; border-radius: 22%; }
.next-project-link:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.project-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 24px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.project-footer > a { color: var(--ink); }

/* Full-size screenshots remain keyboard-accessible in the native dialog. */
.screen-viewer { width: min(940px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; }
.screen-viewer::backdrop { background: #232323d9; backdrop-filter: blur(6px); }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.viewer-header h2 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.6; }
.viewer-close { width: 44px; height: 44px; flex-shrink: 0; border: 0; background: none; font-size: 28px; }
.viewer-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 22px; align-items: center; padding: 20px 24px; }
.viewer-image { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 220px); object-fit: contain; margin: auto; }
.viewer-stage button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 20px; }
.viewer-stage button:hover { background: #f7f7f8; }
.viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 24px 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.viewer-full-size { color: var(--ink); }
.viewer-full-size:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .project-hero { grid-template-columns: 1fr; gap: 40px; padding: 0 0 56px; }
  .project-lockup { margin-bottom: 28px; }
  .project-tagline { max-width: 520px; font-size: 40px; letter-spacing: -1.3px; }
  .project-description { max-width: 540px; }
  .project-features { max-width: 540px; }
  .demo-stage { padding: 28px 24px; }
  .demo-phone { width: 264px; }
  .project-direction { grid-template-columns: 1fr; gap: 22px; padding: 32px 0 56px; }
  .project-direction h2 { max-width: 490px; }
  .project-direction > p { max-width: 540px; margin: 0; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2 { font-size: 32px; letter-spacing: -.9px; }
  .screen-hint { display: block; max-width: none; margin-top: 16px; text-align: left; }
  .capture-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .capture-link { padding: 28px 24px 46px; }
  .capture-link img { max-width: 250px; }
  .project-capture h3 { font-size: 20px; }
  .project-capture p { max-width: 540px; font-size: 15px; }
  .project-scope { grid-template-columns: 1fr; gap: 18px; margin-top: 56px; padding: 28px 0; }
  .next-project { padding: 30px 0 44px; }
  .viewer-header { gap: 10px; padding: 10px 14px; }
  .viewer-header h2 { font-size: 14px; }
  .viewer-stage { gap: 4px; padding: 16px 8px; }
  .viewer-footer { padding: 8px 16px 20px; }
  .viewer-keyboard { display: none; }
  .viewer-image { max-height: calc(100dvh - 210px); }
}

@media (max-width: 420px) {
  .project-shell { padding-inline: 20px; }
  .project-tagline { font-size: 36px; letter-spacing: -1.2px; }
  .project-lockup p { max-width: 200px; }
  .project-actions { gap: 12px 20px; }
  .next-project { align-items: flex-start; flex-direction: column; gap: 24px; }
  .next-project-link { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .capture-link img { transition: none; }
  .capture-link:hover img { transform: none; }
}
