/* Latin upright: the only subset and style used by this page. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/figtree/figtree-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ground: #ffffff;
  --surface: #f4f6fb;
  --text: #0b0f19;
  --secondary: #4a5265;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-tint: #e8eeff;
  --border: #e3e7ef;
  --shadow: 0 12px 32px -16px rgb(11 15 25 / 28%);
  accent-color: var(--accent);
  scrollbar-color: var(--accent) var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Figtree", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
::selection { background: var(--accent); color: var(--ground); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: normal; }
h1 { font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
h4 { font-size: 18px; line-height: 1.4; }
p { max-width: 68ch; }
a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:active { text-decoration-thickness: 3px; }
img { display: block; width: 100%; max-width: 100%; height: auto; }
.icon, .disclosure-icon, .check {
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.hero-layout > *, .project > *, .screen-grid > *, .services-grid > *, .skills > * { min-width: 0; }
.section { padding-block: 80px; }
.surface { background: var(--surface); }
.section-intro { margin-top: 16px; color: var(--secondary); }
.print-only { display: none; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 24px;
  padding: 12px 16px;
  transform: translateY(-160%);
  border-radius: 12px;
  background: var(--ground);
  font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 10; top: 0; height: 64px; border-bottom: 1px solid var(--border); background: var(--ground); }
.navigation { display: flex; height: 100%; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; color: var(--text); font-size: 20px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.wordmark:hover { color: var(--accent); }
.nav-links { display: none; margin: 0; padding: 0; list-style: none; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--ground); }
.button-primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); color: var(--ground); }
.button-secondary { border-color: var(--border); background: var(--ground); color: var(--text); }
.button-secondary:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-hover); }
.nav-email { flex-shrink: 0; }

.hero { padding-block: 48px 80px; }
.hero-layout { display: grid; gap: 40px; }
.eyebrow { margin-bottom: 16px; color: var(--secondary); font-size: 15px; font-weight: 500; }
.hero-support { margin-top: 24px; color: var(--secondary); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.fact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; margin-top: 32px; }
.fact { display: flex; min-width: 0; flex-direction: column-reverse; justify-content: flex-end; padding-right: 12px; }
.fact:nth-child(even) { padding-inline: 16px 0; border-left: 1px solid var(--border); }
.fact dt { margin-top: 4px; color: var(--secondary); font-size: 15px; line-height: 1.5; }
.fact dd { font-size: 28px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fact-date, .data-note { color: var(--secondary); font-size: 15px; line-height: 1.6; }
.fact-date { margin-top: 16px; }
.photo-link { display: block; border-radius: 16px; }
.cover-photo { border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
figcaption { margin-top: 12px; color: var(--secondary); font-size: 16px; line-height: 1.5; }
.picture-action, .project-links a, .contact-links a, .email-address {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-block: 8px;
  font-size: 16px;
}
.picture-action { margin-top: 4px; font-weight: 600; }

.projects { margin-top: 40px; }
.project { display: grid; grid-template-areas: "title" "photo" "copy" "screens"; gap: 32px; }
.project-title { grid-area: title; }
.project-photo { grid-area: photo; }
.project-copy { grid-area: copy; }
.screen-details { grid-area: screens; }
.project-copy > p:first-child { margin-top: 0; }
.screen-details > summary { margin-left: -13px; }
.project + .project { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--border); }
.project-photo { width: 100%; max-width: 466px; justify-self: center; }
.phone-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-radius: 12px; }
.phone-pair img, .phone-screen { border: 1px solid var(--border); border-radius: 12px; }
.project-copy > p { margin-top: 16px; }
.includes, .stack { color: var(--secondary); font-size: 16px; }
.proof { padding-top: 24px; border-top: 1px solid var(--border); font-weight: 600; font-variant-numeric: tabular-nums; }
.project-copy > .data-note { margin-top: 8px; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-weight: 600; }
.screen-details summary {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.screen-details summary::-webkit-details-marker { display: none; }
.screen-details summary:hover { background: var(--accent-tint); color: var(--accent-hover); }
.screen-details[open] > summary { border-color: var(--border); background: var(--accent-tint); color: var(--accent-hover); }
.screen-details[open] .disclosure-icon { transform: rotate(180deg); }
.screen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px 16px; margin-top: 24px; }
.phone-grid img, .phone-grid figcaption { max-width: 280px; margin-inline: auto; }
.details-content h4 { margin-top: 32px; }
.build-list { display: grid; gap: 12px; max-width: 70ch; margin: 16px 0 0; padding: 0; list-style: none; }
.build-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; }
.check { width: 24px; height: 24px; margin-top: 2px; padding: 2px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); }
.demo-note { margin-top: 16px; }

.services-grid { display: grid; gap: 24px; margin-top: 40px; }
.service-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--ground); box-shadow: var(--shadow); }
.service-card > p { margin-top: 16px; color: var(--secondary); font-size: 16px; }
.service-card > .ready { margin-top: auto; padding-top: 24px; }
.service-notes { display: grid; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.service-notes p { margin-top: 8px; color: var(--secondary); font-size: 16px; }
.process { display: grid; gap: 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.process li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 16px; }
.step-number { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.process p { padding-top: 4px; }
.about-copy { max-width: 65ch; margin-top: 24px; }
.skills { display: grid; gap: 24px; margin-top: 32px; }
.skills dt { font-size: 16px; font-weight: 600; }
.skills dd { margin-top: 8px; color: var(--secondary); font-size: 16px; }
.contact-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact h2 { max-width: 24ch; }
.contact p { margin-top: 16px; color: var(--secondary); }
.contact .button { min-width: 160px; margin-top: 32px; }
.email-address { display: block; max-width: 100%; margin-top: 16px; }
.contact-links { display: flex; justify-content: center; margin-top: 32px; }
.site-footer { padding-block: 24px; border-top: 1px solid var(--border); color: var(--secondary); font-size: 15px; line-height: 1.6; }
.site-footer p { max-width: 1200px; text-align: center; }
.not-found-page { display: flex; flex-direction: column; min-height: 100svh; }
.not-found-header { padding-block: 24px; border-bottom: 1px solid var(--border); }
.not-found-header .location { color: var(--secondary); font-size: 16px; }
.not-found { flex: 1; padding-block: 80px; }
.not-found p { margin-top: 24px; }

/* On phones the first viewport belongs to the introduction and its facts. */
@media (max-width: 599px) {
  .hero-copy { min-height: calc(100svh - 112px); }
}
@media (min-width: 600px) {
  .hero-actions { flex-direction: row; }
  .hero-actions .button { min-width: 160px; }
  .hero-photo { width: 100%; max-width: 720px; justify-self: center; }
  .fact-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact + .fact { padding-inline: 12px; border-left: 1px solid var(--border); }
  .fact:last-child { padding-right: 0; }
  .services-grid { max-width: 600px; margin-inline: auto; }
  .service-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .nav-links { display: flex; align-items: center; gap: 24px; font-size: 16px; font-weight: 500; }
  .nav-links a { display: block; padding-block: 12px; color: var(--secondary); text-decoration: none; }
  .nav-links a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
  .services-grid { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .process li { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1000px) {
  .project { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; grid-template-areas: "photo title" "photo copy" "photo screens"; column-gap: 48px; row-gap: 16px; align-items: start; }
  .project-reverse { grid-template-areas: "title photo" "copy photo" "screens photo"; }
  .screen-details[open] { grid-column: 1 / -1; grid-row: 4; }
  .project:not(.project-reverse) .screen-details[open] > summary { margin-left: calc(50% + 11px); }
  .screen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 32px; }
  .phone-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  body { font-size: 18px; line-height: 1.65; }
  h1 { font-size: clamp(52px, 4.4445vw, 64px); }
  h2 { font-size: 40px; }
  h3 { font-size: 22px; }
  .section { padding-block: 96px; }
  .hero { display: flex; min-height: calc(100svh - 64px); align-items: center; padding-block: 80px; }
  .hero-layout { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); align-items: center; column-gap: 48px; }
  .hero-support { font-size: 20px; line-height: 1.6; }
  .hero-actions { margin-top: 32px; }
  .hero-actions .button { min-height: 52px; font-size: 17px; }
  .hero-photo { max-width: 100%; }
  .projects, .services-grid, .process { margin-top: 48px; }
  .project + .project { margin-top: 80px; padding-top: 80px; }
  .service-notes { column-gap: 64px; }
  .process { gap: 48px; }
  .contact { padding-block: 120px; }
}
@media (max-width: 359px) {
  h1 { font-size: 36px; }
  h1, h2, h3 { overflow-wrap: anywhere; }
  .navigation { gap: 12px; }
  .nav-email { padding-inline: 16px; }
}
@media print {
  @page { size: letter; margin: 12mm; }
  html { scroll-padding-top: 0; }
  body { padding: 0; font-size: 11pt; line-height: 1.45; }
  a { color: inherit; text-decoration: none; }
  .container { width: 100%; max-width: none; }
  .skip-link, .navigation, .hero, .project-photo, .screen-details,
  .includes, .stack, .project-links, .about, .contact, .site-footer,
  .service-notes, .ready { display: none; }
  .print-only { display: block; }
  .site-header { position: static; height: auto; padding-bottom: 12pt; border-bottom: 1px solid var(--border); }
  .print-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16pt; }
  .print-name { font-size: 22pt; font-weight: 800; letter-spacing: -0.02em; }
  .print-reach { margin-top: 4pt; font-size: 9pt; }
  .print-qr { display: flex; align-items: center; gap: 8pt; }
  .print-qr svg { flex-shrink: 0; width: 24mm; height: 24mm; color: #000000; }
  .print-qr p { max-width: 18ch; font-size: 8pt; }
  main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20pt; row-gap: 12pt; align-items: start; padding-top: 14pt; }
  .section { padding: 0; background: none; }
  .work { grid-column: 1; grid-row: 1 / span 2; }
  .services { grid-column: 2; grid-row: 1; }
  .how { grid-column: 2; grid-row: 2; }
  h2 { font-size: 14pt; line-height: 1.2; }
  h3 { font-size: 12pt; line-height: 1.3; }
  .section-intro { margin-top: 4pt; font-size: 10pt; }
  .projects, .services-grid { display: block; margin-top: 10pt; }
  .project { display: block; break-inside: avoid; }
  .project + .project { margin-top: 12pt; padding-top: 12pt; }
  .project-copy > p { margin-top: 5pt; }
  .proof { padding-top: 5pt; font-size: 10pt; }
  .project-copy > .data-note { margin-top: 3pt; font-size: 9pt; }
  .service-card { display: block; padding: 0; border: 0; border-radius: 0; box-shadow: none; break-inside: avoid; }
  .service-card + .service-card { margin-top: 10pt; }
  .service-card > p { margin-top: 3pt; color: var(--text); font-size: 11pt; line-height: 1.45; }
  .process { grid-template-columns: 1fr; gap: 6pt; margin-top: 8pt; }
  .process li { grid-template-columns: 14pt minmax(0, 1fr); gap: 6pt; break-inside: avoid; }
  .process p { padding: 0; }
  .step-number { width: 14pt; height: 14pt; font-size: 8pt; background: none; color: var(--text); }
}
