@font-face {
  font-family: Cabinet;
  src: url('/assets/brand/cabinet-grotesk-500.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: Switzer;
  src: url('/assets/brand/switzer.woff2') format('woff2');
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #fafbf9;
  --ink: #181b1d;
  --muted: #626a6d;
  --line: #d9dfdd;
  --surface: #f0f3f1;
  --visual: #e8edeb;
  --accent: #14213d;
  --button-ink: #ffffff;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #171a1c;
  --ink: #f5f6f4;
  --muted: #abb3b4;
  --line: #3d4547;
  --surface: #202628;
  --visual: #263033;
  --accent: #d4deef;
  --button-ink: #171a1c;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
section[id], footer[id] { scroll-margin-top: 68px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.5 Switzer, Arial, sans-serif; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: Cabinet, Arial, sans-serif; font-weight: 500; letter-spacing: 0; line-height: 1.09; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.page-width { width: min(100% - 64px, 1180px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 50; top: -60px; left: 12px; padding: 8px 12px; background: var(--ink); color: var(--page); }
.skip-link:focus { top: 12px; }
.section-space { padding-block: 112px; }
.section-kicker, .category-label { font-size: 12px; line-height: 1.35; text-transform: uppercase; letter-spacing: 0; }
.section-kicker { color: var(--muted); }
.category-label { width: fit-content; display: inline-block; padding: 5px 7px; border-radius: 4px; background: var(--surface); color: var(--muted); }
.inline-link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding-bottom: 2px; border-bottom: 1px solid currentColor; text-decoration: none; font-size: 15px; font-weight: 500; }
.inline-link:hover { color: var(--accent); }
.inline-link svg { width: 17px; height: 17px; }

.site-header { position: sticky; z-index: 20; top: 0; background: var(--page); border-bottom: 1px solid var(--line); }
.header-inner { height: 68px; display: flex; align-items: center; gap: 36px; }
.brand { font-family: Cabinet, Arial, sans-serif; font-size: 19px; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 31px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); }
.icon-button:hover, .menu-toggle:hover { background: var(--surface); }
.icon-button svg { width: 18px; height: 18px; }
.menu-toggle { display: none; min-width: 53px; height: 34px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 14px; }

.hero { padding-top: 45px; }
.hero-copy { max-width: 820px; }
.hero h1 { max-width: 800px; margin-bottom: 21px; font-size: 53px; }
.hero-copy > p { max-width: 620px; margin-bottom: 25px; color: var(--muted); font-size: 18px; line-height: 1.5; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 43px; padding: 10px 15px; border: 1px solid var(--ink); border-radius: 7px; text-decoration: none; font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.button svg { width: 16px; height: 16px; }
.button-primary { background: var(--ink); color: var(--button-ink); }
.button-primary:hover { background: var(--accent); border-color: var(--accent); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--surface); }
.hero-showcase { position: relative; height: clamp(220px, 30vh, 385px); margin-top: 35px; overflow: hidden; background: var(--visual); border-radius: 8px; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-image[data-hero-image] { visibility: hidden; }
.hero-image[data-hero-image].is-ready { visibility: visible; }
.hero-showcase noscript .hero-image { position: absolute; inset: 0; }

.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; margin-bottom: 59px; }
.work-section { padding-top: 65px; }
.section-intro .section-kicker { margin-bottom: 16px; }
.section-intro h2 { margin-bottom: 0; font-size: 44px; }
.section-intro > p { max-width: 465px; margin: 0 0 2px; color: var(--muted); font-size: 17px; }
.work-feature { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: 'copy visual'; align-items: center; gap: 7%; margin-top: 90px; }
.work-feature[hidden] { display: none; }
.work-feature:first-of-type { margin-top: 0; }
.work-feature.reverse { grid-template-areas: 'visual copy'; }
.work-visual { grid-area: visual; aspect-ratio: 1.42; overflow: hidden; border-radius: 8px; background: var(--visual); }
.work-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.work-visual:hover img { transform: scale(1.025); }
.visual-susinsight img { object-position: center 22%; }
.visual-wecollect img { object-position: center center; }
.visual-culerson img { object-position: center top; }
.visual-translayte img { object-position: center top; }
.visual-fairbnb img { object-position: center 35%; }
.visual-zeproc img, .visual-eze img { object-position: center top; }
.work-copy { grid-area: copy; max-width: 470px; }
.work-meta { display: flex; align-items: center; justify-content: flex-start; gap: 6px; margin-bottom: 18px; }
.work-meta .category-label { margin: 0; white-space: nowrap; }
.work-date { flex: 0 0 auto; padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; white-space: nowrap; }
.work-copy h3 { margin: 0 0 18px; font-size: 39px; }
.work-copy > p:not(.work-scope) { max-width: 440px; margin-bottom: 20px; font-size: 18px; }
.work-scope { margin-bottom: 26px; color: var(--muted); font-size: 14px; }

.projects-section { background: var(--surface); }
.projects-section .category-label { background: var(--page); }
.project-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; align-items: center; color: var(--ink); text-decoration: none; }
.lead-image { aspect-ratio: 1.54; overflow: hidden; border-radius: 8px; background: #1e2327; }
.lead-image img { width: 100%; height: 100%; object-fit: cover; }
.lead-copy { max-width: 490px; }
.lead-copy h3 { margin: 24px 0 16px; font-size: 36px; }
.lead-copy p { max-width: 440px; margin-bottom: 26px; color: var(--muted); font-size: 17px; }
.project-lead:hover .inline-link { color: var(--accent); }
.project-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 70px 0 26px; }
.project-lead[hidden] + .project-filters { padding-top: 12px; }
.project-filters button { min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--ink); font-size: 13px; }
.project-filters button:hover { border-color: var(--ink); }
.project-filters button[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: var(--button-ink); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 21px; row-gap: 48px; }
.project-card { display: block; min-width: 0; text-decoration: none; }
.card-image { aspect-ratio: 1.55; overflow: hidden; border-radius: 7px; background: var(--visual); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.code-cover { display: grid; place-items: center; padding: 22px; }
.cover-substack { background: #dce9e3; }
.cover-substack-wp { background: #dfe6ef; }
.cover-snippets { background: #263136; }
.code-cover-panel { display: flex; flex-direction: column; gap: 11px; width: min(78%, 260px); min-height: 135px; padding: 17px; border: 1px solid rgba(16, 40, 36, .12); border-radius: 6px; background: #ffffff; box-shadow: 0 15px 28px rgba(18, 40, 39, .12); }
.code-cover-panel svg { width: 21px; height: 21px; margin-bottom: 5px; color: #355b51; stroke-width: 1.7; }
.code-cover-line { display: block; height: 7px; border-radius: 2px; background: #d8e0de; }
.code-cover-line.line-wide { width: 80%; }
.code-cover-line.line-medium { width: 62%; }
.code-cover-line.line-short { width: 46%; }
.code-cover-field { display: block; height: 24px; margin-top: 5px; border: 1px solid #cbd8d3; border-radius: 4px; background: #f7faf8; }
.cover-substack-wp .code-cover-panel svg { color: #335c80; }
.cover-substack-wp .code-cover-line { background: #d9e2ea; }
.cover-substack-wp .code-cover-field { border-color: #cbd8e3; background: #f7f9fb; }
.cover-snippets .code-cover-panel { border-color: #435756; background: #162022; box-shadow: 0 15px 28px rgba(0, 0, 0, .25); }
.cover-snippets .code-cover-panel svg { color: #82c7b7; }
.cover-snippets .code-cover-line { background: #49605f; }
.project-card:hover .card-image img { transform: scale(1.035); }
.card-copy { position: relative; padding-top: 15px; padding-right: 25px; }
.card-copy h3 { margin: 14px 0 9px; font-size: 22px; }
.card-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.card-arrow { position: absolute; top: 50px; right: 0; }
.card-arrow svg { width: 17px; height: 17px; }
.project-card:hover h3 { color: var(--accent); }
.project-card[hidden], .project-lead[hidden] { display: none; }
.show-more-wrap { display: flex; justify-content: center; margin-top: 62px; }
.show-more-wrap[hidden] { display: none; }
.show-more-button { padding: 0 0 4px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; }
.show-more-button:hover { color: var(--accent); }
.show-more-button[hidden] { display: none; }

.practice-intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: 70px; align-items: start; }
.practice-intro .section-kicker { grid-column: 1 / -1; margin-bottom: 16px; }
.practice-intro h2 { max-width: 510px; margin-bottom: 0; font-size: 43px; }
.practice-intro > p:last-child { max-width: 490px; color: var(--muted); font-size: 18px; }
.ways-heading { display: flex; justify-content: space-between; gap: 25px; align-items: end; margin-top: 90px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.ways-heading h3 { margin: 0; font-size: 26px; }
.ways-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.way { padding-top: 26px; }
.way > svg { width: 25px; height: 25px; margin-bottom: 25px; stroke-width: 1.5; }
.way h4 { margin-bottom: 11px; font-size: 22px; }
.way p { max-width: 330px; margin-bottom: 0; color: var(--muted); font-size: 15px; }
.founder-profile { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: center; gap: 42px; margin-top: 75px; padding-top: 45px; border-top: 1px solid var(--line); }
.founder-profile img { width: 230px; height: 288px; object-fit: cover; object-position: center top; border-radius: 8px; }
.founder-copy { max-width: 650px; }
.founder-copy .section-kicker { margin-bottom: 13px; }
.founder-copy h3 { margin-bottom: 14px; font-size: 29px; }
.founder-copy > p:not(.section-kicker) { max-width: 620px; margin-bottom: 20px; color: var(--muted); font-size: 16px; }

.site-footer { padding-top: 75px; background: #14213d; color: #f5f7f7; }
.site-footer .section-kicker { color: #b8c4d6; }
.footer-main { display: flex; justify-content: space-between; gap: 70px; padding-bottom: 82px; }
.footer-main h2 { max-width: 560px; margin: 18px 0; font-size: 42px; }
.footer-main p:not(.section-kicker) { max-width: 460px; color: #c7d0dc; }
.footer-email { display: inline-flex; align-items: center; gap: 14px; margin-top: 25px; padding-bottom: 3px; border-bottom: 1px solid currentColor; text-decoration: none; font-family: Cabinet, Arial, sans-serif; font-size: 26px; }
.footer-email svg { width: 21px; height: 21px; }
.footer-email:hover, .footer-side a:hover { color: #c7d8ef; }
.footer-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 170px; padding-top: 10px; font-size: 14px; }
.footer-side span { margin-bottom: 22px; color: #c7d0dc; }
.footer-side a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 21px; border-top: 1px solid rgba(255,255,255,.25); color: #b8c4d6; font-size: 12px; }

body.drawer-open { overflow: hidden; }
.work-drawer { position: fixed; inset: 0 0 0 auto; width: 50vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; background: var(--page); color: var(--ink); box-shadow: -12px 0 40px rgba(0, 0, 0, .12); }
.work-drawer::backdrop { background: rgba(12, 18, 20, .55); }
.drawer-bar { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 36px; border-bottom: 1px solid var(--line); background: var(--page); color: var(--muted); font-size: 12px; text-transform: uppercase; }
.drawer-close { flex: 0 0 auto; }
.drawer-body { width: min(100% - 72px, 700px); margin: 0 auto; padding: 49px 0 70px; }
.drawer-body > .section-kicker { margin-bottom: 15px; }
.drawer-body h2 { margin-bottom: 12px; font-size: 47px; }
.drawer-lead { max-width: 560px; margin-bottom: 25px; font-family: Cabinet, Arial, sans-serif; font-size: 25px; line-height: 1.25; }
.drawer-visit { min-width: 170px; }
.drawer-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 45px 0 38px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.drawer-facts div { min-width: 0; }
.drawer-facts dt, .drawer-section-index { margin-bottom: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.drawer-facts dd { margin: 0; font-size: 14px; line-height: 1.35; }
.drawer-media { margin: 27px 0 0; }
.drawer-media-first { margin-top: 0; }
.drawer-media img { width: 100%; height: auto; border-radius: 6px; background: var(--visual); }
.drawer-media figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; }
.drawer-section { padding-top: 37px; margin-top: 39px; border-top: 1px solid var(--line); }
.drawer-section h3 { max-width: 560px; margin-bottom: 17px; font-size: 29px; }
.drawer-section > p:not(.drawer-section-index) { max-width: 590px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.drawer-section .inline-link { margin-top: 23px; }
.drawer-end { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .section-space { padding-block: 80px; }
  .hero h1 { font-size: 45px; }
  .work-feature { gap: 5%; margin-top: 76px; }
  .work-copy h3 { font-size: 34px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-drawer { width: min(100vw, 600px); }
}

@media (max-width: 640px) {
  section[id], footer[id] { scroll-margin-top: 61px; }
  .page-width { width: min(100% - 36px, 1180px); }
  .header-inner { height: 61px; gap: 12px; }
  .brand { font-size: 16px; }
  .header-actions { margin-left: auto; gap: 3px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; margin: 0; padding: 18px; background: var(--page); border-bottom: 1px solid var(--line); }
  .site-header.menu-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 0; font-size: 16px; }
  .section-space { padding-block: 66px; }
  .hero { padding-top: 30px; }
  .hero h1 { font-size: 32px; line-height: 1.13; }
  .hero-copy > p { margin-bottom: 23px; font-size: 16px; }
  .hero-actions { gap: 8px; }
  .button { min-height: 41px; padding: 9px 11px; gap: 10px; font-size: 13px; }
  .hero-showcase { height: clamp(165px, 27vh, 230px); margin-top: 22px; }
  .work-section { padding-top: 40px; }
  .section-intro { display: block; margin-bottom: 36px; }
  .section-intro h2 { margin-bottom: 17px; font-size: 36px; }
  .section-intro > p { font-size: 16px; }
  .work-feature, .work-feature.reverse { grid-template-columns: 1fr; grid-template-areas: 'visual' 'copy'; gap: 22px; margin-top: 56px; }
  .work-feature:first-of-type { margin-top: 0; }
  .work-visual { aspect-ratio: 1.34; }
  .work-meta { margin-bottom: 12px; }
  .work-copy h3 { margin: 0 0 12px; font-size: 31px; }
  .work-copy > p:not(.work-scope) { font-size: 16px; }
  .work-scope { margin-bottom: 18px; }
  .project-lead { grid-template-columns: 1fr; gap: 24px; }
  .lead-image { aspect-ratio: 1.46; }
  .lead-copy h3 { margin: 17px 0 10px; font-size: 31px; }
  .lead-copy p { margin-bottom: 20px; font-size: 16px; }
  .project-filters { padding: 50px 0 23px; }
  .project-lead[hidden] + .project-filters { padding-top: 6px; }
  .project-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .show-more-wrap { margin-top: 42px; }
  .card-copy h3 { font-size: 22px; }
  .practice-intro { display: block; }
  .practice-intro h2 { margin-bottom: 21px; font-size: 34px; }
  .practice-intro > p:last-child { font-size: 16px; }
  .ways-heading { display: block; margin-top: 55px; }
  .ways-heading h3 { margin-bottom: 7px; }
  .ways-grid { grid-template-columns: 1fr; gap: 0; }
  .way { padding: 23px 0; border-bottom: 1px solid var(--line); }
  .way > svg { margin-bottom: 17px; }
  .founder-profile { grid-template-columns: 1fr; gap: 24px; margin-top: 45px; padding-top: 35px; }
  .founder-profile img { width: min(230px, 100%); }
  .site-footer { padding-top: 62px; }
  .footer-main { display: block; padding-bottom: 62px; }
  .footer-main h2 { font-size: 36px; }
  .footer-email { font-size: 23px; overflow-wrap: anywhere; }
  .footer-side { margin-top: 65px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: 5px; }
  .work-drawer { width: 100vw; }
  .drawer-bar { min-height: 61px; padding-inline: 18px; }
  .drawer-body { width: min(100% - 36px, 700px); padding: 32px 0 55px; }
  .drawer-body h2 { font-size: 37px; }
  .drawer-lead { font-size: 22px; }
  .drawer-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; margin: 36px 0 30px; }
  .drawer-facts div:last-child { grid-column: 1 / -1; }
  .drawer-section { padding-top: 30px; margin-top: 32px; }
  .drawer-section h3 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .work-visual img, .card-image img { transition: none; }
}
