@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --surface: #fbfaf7;
  --ink: #18251f;
  --muted: #747b72;
  --line: #d8d9d1;
  --blue: #2945b7;
  --yellow: #f2c94c;
  --acid: #d8f36a;
  --mono: "Courier New", monospace;
  --serif: Georgia, "Times New Roman", serif;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.site-header {
  height: 78px;
  padding: 0 5.2vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 25px; font-weight: 800; letter-spacing: -1.8px; }
.wordmark span { color: var(--yellow); }
.header-note, .eyebrow, .grid-caption, .grid-footer, .dialog-index, .preview-url, .preview-hint, .case-column h3, .local-label, .dialog-foot, .card-meta, .card-bottom, .art-number {
  font-family: var(--mono);
  letter-spacing: .075em;
}
.header-note { color: #7b8178; font-size: 9px; }
.contact-link {
  display: flex;
  gap: 19px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #b8bcb3;
  font-size: 11px;
  transition: background .18s ease, color .18s ease;
}
.contact-link:hover { background: var(--ink); color: var(--paper); }
.contact-link span { color: var(--blue); font-size: 16px; }
.contact-link:hover span { color: var(--acid); }

.work-section { min-height: calc(100dvh - 146px); padding: 66px 5.2vw 80px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 35px; }
.eyebrow { margin: 0; color: #697268; font-size: 9px; }
.signal { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--blue); vertical-align: 1px; }
.section-head h1 { margin: 16px 0 0; font: 400 clamp(46px, 6vw, 78px)/.95 var(--serif); letter-spacing: -.065em; }
.heading-star { display: inline-block; margin-left: 14px; color: var(--blue); font: 20px Arial, sans-serif; vertical-align: top; }
.section-note { max-width: 270px; margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.category-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #adb2a8; border-bottom: 1px solid #adb2a8; }
.category-tab { min-height: 57px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 0; border-right: 1px solid var(--line); background: transparent; color: #697168; text-align: left; font-size: 11px; cursor: pointer; }
.category-tab:last-child { border-right: 0; }
.category-tab b { color: #889087; font: 9px var(--mono); }
.category-tab.active { background: var(--ink); color: var(--paper); }
.category-tab.active b { color: var(--acid); }
.project-search { min-height: 49px; margin-top: 19px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.37); }
.project-search>span { color: var(--blue); font-size: 21px; }
.project-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.project-search input:focus-visible { outline: 0; }
.project-search input::placeholder { color: #8b9088; }
.project-search kbd { color: #8b9088; font: 8px var(--mono); letter-spacing: .08em; }
.grid-caption, .grid-footer { display: flex; justify-content: space-between; gap: 14px; color: #858b81; font-size: 8px; }
.grid-caption { padding: 19px 1px 13px; }
.grid-caption span:last-child span { color: var(--blue); font-size: 14px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.project-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #d4d6ce; background: var(--surface); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.project-card:hover { transform: translateY(-3px); border-color: #929b90; box-shadow: 0 13px 28px rgba(32,46,37,.075); }
.project-art { position: relative; display: block; overflow: hidden; aspect-ratio: 1.63; border-bottom: 1px solid #d4d6ce; background: #e9e9e1; }
.project-card-preview { position: absolute; top: 0; left: 50%; width: 1280px; height: 800px; display: block; border: 0; background: white; pointer-events: none; transform-origin: top center; }
.project-art[data-kind="app"] .project-card-preview { width: 390px; height: 844px; }
.art-number { position: absolute; right: 7px; bottom: 6px; padding: 4px 5px; background: rgba(251,250,247,.88); color: #59645a; font-size: 7px; }
.card-info { padding: 14px 15px 11px; display: block; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; color: #8a9086; font-size: 7px; }
.card-meta span:last-child { color: var(--blue); }
.card-title { display: block; margin-top: 10px; font: 400 clamp(18px, 2vw, 25px)/1.12 var(--serif); letter-spacing: -.035em; }
.card-description { display: block; min-height: 38px; margin-top: 6px; color: #747b72; font-size: 10px; line-height: 1.55; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 9px; border-top: 1px solid #e2e3dc; color: #899087; font-size: 7px; }
.card-arrow { color: var(--blue); font: 16px Arial, sans-serif; }
.empty-state { grid-column: 1/-1; padding: 60px 18px; border: 1px dashed #c8cbc1; color: var(--muted); text-align: center; font-size: 13px; }
.grid-footer { margin-top: 17px; padding-top: 14px; border-top: 1px solid #d1d3cb; }
.grid-footer b { color: var(--blue); font-weight: 400; }
.site-footer { min-height: 68px; padding: 14px 5.2vw; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #82887f; font: 8px var(--mono); letter-spacing: .06em; }
.site-footer .wordmark { color: var(--ink); font: 800 19px Arial, sans-serif; letter-spacing: -1.4px; }
.site-footer>a:last-child { color: var(--blue); }
.local-launch-notice { width: min(680px, 90vw); min-height: 100dvh; margin: 0 auto; padding: 15vh 0 60px; }
.local-launch-notice h1 { margin: 25px 0 17px; font: 400 clamp(38px, 7vw, 64px)/.98 var(--serif); letter-spacing: -.055em; }
.local-launch-notice>p:not(.eyebrow) { color: #69736a; font-size: 14px; line-height: 1.7; }
.local-launch-notice code { overflow-wrap: anywhere; color: var(--ink); font: 12px var(--mono); }
.local-launch-notice>a { min-height: 50px; margin-top: 22px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; background: var(--blue); color: white; font-size: 12px; }
.local-launch-notice>a span { color: var(--acid); font-size: 18px; }

.project-dialog { width: min(1460px, 96vw); height: min(920px, 94dvh); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid #bec2b8; background: var(--paper); box-shadow: 0 24px 100px rgba(14,24,19,.28); }
.project-dialog::backdrop { background: rgba(16,23,19,.66); backdrop-filter: blur(3px); }
.dialog-shell { height: 100%; display: flex; flex-direction: column; }
.dialog-top { height: 62px; flex: 0 0 auto; padding: 0 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); }
.dialog-top .wordmark { font-size: 20px; }
.dialog-index { color: #798076; font-size: 8px; }
.icon-close { justify-self: end; width: 34px; height: 34px; border: 1px solid #cdd0c7; background: transparent; font-size: 21px; cursor: pointer; }
.dialog-content { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .74fr); gap: 28px; padding: 24px; overflow: auto; }
.preview-column { min-width: 0; display: flex; flex-direction: column; }
.preview-toolbar { height: 42px; flex: 0 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 0 10px; border: 1px solid #d2d5cb; border-bottom: 0; background: #eeeee8; }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c2c8bc; }
.browser-dots i:first-child { background: #d89985; }
.preview-url { overflow: hidden; color: #777f74; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.view-switch { display: flex; gap: 3px; }
.view-button { min-height: 25px; padding: 0 8px; border: 1px solid transparent; background: transparent; color: #778074; font-size: 9px; cursor: pointer; }
.view-button.active { border-color: #c6cbc0; background: var(--surface); color: var(--ink); }
.preview-stage { min-height: 300px; height: clamp(390px, 61vh, 720px); padding: 10px; display: grid; place-items: stretch; overflow: hidden; border: 1px solid #d2d5cb; background: #e7e8e1; }
.live-frame { width: 100%; height: 100%; overflow: hidden; border: 1px solid #c3c8bd; background: white; box-shadow: 0 6px 22px rgba(20,31,25,.12); transition: width .22s ease, height .22s ease, border-radius .22s ease; }
.live-frame.is-mobile { width: min(390px, 100%); height: min(100%, 700px); justify-self: center; align-self: center; border: 6px solid #26312b; border-radius: 22px; background: #26312b; }
.live-frame iframe { width: 100%; height: 100%; display: block; border: 0; background: white; }
.preview-rail { min-height: 61px; margin-top: 9px; display: flex; gap: 8px; overflow-x: auto; }
.page-thumb { min-width: 102px; padding: 5px 7px; display: flex; align-items: center; gap: 8px; border: 1px solid #d2d5cb; background: #efefe9; color: #687166; text-align: left; font-size: 9px; cursor: pointer; }
.page-thumb.active { border-color: var(--blue); background: #f9f9f4; color: var(--ink); }
.thumb-paper { width: 28px; height: 38px; flex: 0 0 auto; padding: 5px 3px; display: grid; align-content: start; gap: 4px; border: 1px solid #d3d5ce; background: white; }
.thumb-paper i { height: 3px; background: #e6e7e0; }
.thumb-paper i:first-child { width: 70%; background: var(--tone); }
.preview-hint { margin: 8px 0 0; color: #82897f; font-size: 7px; }
.case-column { min-width: 0; padding: 9px 3px 6px 0; overflow-y: auto; }
.case-column>.eyebrow { color: var(--blue); }
.case-column h2 { margin: 17px 0 12px; font: 400 clamp(31px, 3.4vw, 48px)/.98 var(--serif); letter-spacing: -.055em; }
.case-intro { margin: 0; color: #69736a; font-size: 12px; line-height: 1.65; }
.case-rule { height: 1px; margin: 21px 0; background: var(--line); }
.case-column h3 { margin: 18px 0 8px; color: #838a7f; font-size: 8px; }
.case-problem { margin: 0; color: #4f5c52; font-size: 11px; line-height: 1.65; }
.feature-list { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.feature-list li { position: relative; padding-left: 15px; color: #536056; font-size: 10px; line-height: 1.5; }
.feature-list li::before { position: absolute; left: 0; color: var(--blue); content: "↗"; }
.stack-wrap { margin: 19px 0; }
.stack-list { display: flex; flex-wrap: wrap; gap: 6px; }
.stack-list span { padding: 6px 8px; border: 1px solid #d3d6cc; color: #687267; font: 8px var(--mono); }
.open-project-button { width: 100%; min-height: 50px; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; background: var(--blue); color: white; font-size: 11px; }
.open-project-button:hover { background: #1d348f; }
.open-project-button span { color: var(--acid); font-size: 18px; }
.local-label { margin: 11px 0 0; color: #82897f; font-size: 7px; }
.local-label .signal { width: 6px; height: 6px; background: #429d73; }
.dialog-foot { min-height: 43px; flex: 0 0 auto; padding: 8px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: #82897f; font-size: 7px; }
.text-close { padding: 7px 0; border: 0; background: transparent; color: #697268; font-size: 10px; cursor: pointer; }
.text-close span { margin-left: 8px; color: var(--blue); }

@media (max-width: 1000px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-content { grid-template-columns: minmax(0, 1.15fr) minmax(265px, .85fr); gap: 19px; padding: 18px; }
  .preview-stage { height: clamp(350px, 55vh, 650px); }
}
@media (max-width: 680px) {
  .site-header { height: 65px; padding: 0 18px; }
  .wordmark { font-size: 22px; }
  .header-note { display: none; }
  .contact-link { gap: 8px; padding: 10px; font-size: 10px; }
  .work-section { padding: 40px 17px 58px; }
  .section-head { display: block; margin-bottom: 27px; }
  .section-head h1 { font-size: clamp(46px, 13vw, 64px); }
  .section-note { max-width: 340px; margin-top: 16px; }
  .category-tab { min-height: 52px; padding: 0 8px; font-size: 10px; }
  .project-search { min-height: 45px; margin-top: 14px; }
  .project-search kbd { display: none; }
  .project-grid { gap: 10px; }
  .project-art { padding: 8% 7%; }
  .art-title { font-size: 11px; }
  .card-info { padding: 10px 9px 9px; }
  .card-meta { font-size: 6px; }
  .card-title { min-height: 38px; font-size: 17px; }
  .card-description { min-height: 58px; font-size: 9px; }
  .card-bottom { font-size: 6px; }
  .grid-caption, .grid-footer { font-size: 6px; }
  .grid-caption { padding-top: 15px; }
  .site-footer { min-height: 64px; padding: 12px 17px; flex-wrap: wrap; font-size: 7px; }
  .site-footer span { order: 3; width: 100%; }
  .project-dialog { width: 100vw; height: 100dvh; border: 0; }
  .dialog-top { height: 55px; padding: 0 14px; }
  .dialog-content { display: flex; flex-direction: column; gap: 19px; padding: 12px; overflow-y: auto; }
  .preview-toolbar { height: 38px; gap: 7px; padding: 0 7px; }
  .preview-url { font-size: 6px; }
  .view-button { min-height: 24px; padding: 0 5px; font-size: 8px; }
  .preview-stage { min-height: 300px; height: 45dvh; padding: 7px; }
  .live-frame.is-mobile { width: min(330px, 100%); }
  .preview-rail { min-height: 52px; }
  .page-thumb { min-width: 91px; font-size: 8px; }
  .case-column { padding: 2px 5px 14px; overflow: visible; }
  .case-column h2 { margin: 11px 0 8px; font-size: 36px; }
  .case-column h3 { margin-top: 15px; }
  .dialog-foot { min-height: 39px; padding: 7px 12px; font-size: 6px; }
  .text-close { font-size: 9px; }
}
@media (max-width: 380px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-art { aspect-ratio: 1.8; }
  .category-tab { padding: 0 6px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
