/* Penman Labs: a quiet, personal workbench inspired by Osaka Jade. */
:root {
  color-scheme: dark;
  --ink: #e7edca;
  --muted: #b5c5b8;
  --faint: #849b8d;
  --bg: #111c18;
  --panel: #172923;
  --panel-raised: #1c3028;
  --line: #395246;
  --jade: #9ad1b4;
  --yellow: #c8c57c;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
/* Decorative AI tool map, shared by every page and repeated down long articles. */
body { position: relative; isolation: isolate; }
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/assets/images/backgrounds/ai-tool-schematic-v1.png") center top / max(100%, 1400px) auto repeat-y;
  opacity: .11;
  mask-image: linear-gradient(to right, #000, #0009 35%, #0009 65%, #000);
}
@media (max-width: 760px) {
  body::before { background-size: 760px auto; opacity: .08; }
}
@media print, (prefers-contrast: more), (forced-colors: active) {
  body::before { display: none; }
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--jade); text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { color: var(--ink); }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }
::selection { color: var(--bg); background: var(--jade); }
[hidden] { display: none !important; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
main { min-height: 65vh; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 550; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { margin-bottom: 1.4rem; font-size: clamp(2.5rem, 4.6vw, 4.2rem); }
h2 { margin-bottom: 1.15rem; font-size: clamp(1.9rem, 3vw, 2.65rem); }
h3 { margin-bottom: .8rem; font-size: 1.5rem; }
p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }
small { font-size: .82rem; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: .75rem 1rem; color: var(--bg); background: var(--yellow); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 95px; }
.brand { display: inline-flex; gap: .9rem; align-items: center; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; color: var(--jade); border: 1px solid var(--jade); font: 600 .85rem/1 var(--mono); }
.brand-mark img, .brand-mark svg { width: 25px; height: 25px; }
.brand-name { font: 600 1.12rem/1.2 var(--mono); letter-spacing: -.06em; }
.main-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font: .79rem/1.4 var(--mono); text-decoration: none; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--jade); border-bottom-color: var(--jade); }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; padding: .4rem .7rem; background: transparent; border: 1px solid var(--line); color: var(--ink); font: .8rem var(--mono); }
.eyebrow, .meta { font: .72rem/1.55 var(--mono); letter-spacing: .085em; text-transform: uppercase; color: var(--jade); }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.6rem; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--yellow); flex: 0 0 auto; }
.intro-grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: 65px 76px; }
.intro-copy { padding-block: .7rem; }
.intro-copy h1 { max-width: 12ch; }
.lede { max-width: 57ch; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.7; }
.intro-copy .lede { max-width: 40ch; }
.intro-links { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.8rem; margin-top: 1.9rem; }
.intro-links a, .text-link { display: inline-flex; align-items: center; min-height: 44px; font: .8rem/1.5 var(--mono); }
.intro-links a:first-child { padding: .65rem 1rem; background: var(--jade); color: var(--bg); border: 1px solid var(--jade); text-decoration: none; }
.intro-links a:first-child:hover { background: var(--ink); border-color: var(--ink); }
.intro-photo { position: relative; padding: 9px 9px 0; background: var(--panel); border: 1px solid var(--line); }
.intro-photo img { width: 100%; aspect-ratio: 1.08; object-fit: cover; object-position: center 28%; }
figcaption { padding: .85rem .3rem; font: .7rem/1.65 var(--mono); color: var(--muted); }
.intro-photo figcaption { display: flex; justify-content: space-between; gap: 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-top: 2.8rem; margin-bottom: 1.7rem; border-top: 1px solid var(--line); }
.section-head h2 { margin-bottom: 0; }
.section-head a { display: inline-flex; align-items: center; min-height: 44px; font: .75rem/1.5 var(--mono); }
.section-head p { max-width: 54ch; margin-bottom: 0; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 4.5rem; }
.project-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.card-image { display: block; overflow: hidden; border-bottom: 1px solid var(--line); background: #21382e; }
.card-image img { width: 100%; aspect-ratio: 1.42; object-fit: cover; object-position: top center; transition: transform 200ms ease; }
.card-image:hover img { transform: scale(1.025); }
.card-body { padding: 1.4rem 1.35rem 1.15rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-body .meta { margin-bottom: .9rem; font-size: .64rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--jade); }
.card-body p { color: var(--muted); font-size: .94rem; line-height: 1.65; }
.card-body .text-link { margin-top: auto; align-self: flex-start; }
.project-card:hover { border-color: #759b84; }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-bottom: 4.5rem; }
.journal-card { min-width: 0; padding: 1.5rem 0 1.8rem; border-bottom: 1px solid var(--line); }
.journal-card .card-image { border: 1px solid var(--line); margin-bottom: 1.3rem; }
.journal-card .card-image img { aspect-ratio: 1.7; }
.journal-card .card-body { padding: 0; }
.journal-card .meta { margin-bottom: .8rem; }
.journal-card h3 { font-size: 1.35rem; line-height: 1.25; }
.journal-card h3 a { color: var(--ink); text-decoration: none; }
.journal-card h3 a:hover { color: var(--jade); }
.journal-card p { color: var(--muted); font-size: .95rem; }
.now-panel { position: relative; background: var(--panel); padding: 2.3rem 2.5rem; margin-block: 0 4.5rem; border: 1px solid var(--line); border-left: 3px solid var(--yellow); }
.now-panel h2 { font-size: 1.85rem; }
.now-panel .eyebrow { color: var(--yellow); margin-bottom: 1rem; }
.now-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.now-grid p { color: var(--muted); }
.now-grid h3 { font-size: 1.25rem; }
.site-footer { margin-top: 3rem; padding-block: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font: .72rem/1.7 var(--mono); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; gap: 1rem 2rem; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; }
.page-heading { padding-block: 3.8rem 2.6rem; max-width: 850px; }
.page-heading h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 20ch; }
.page-heading .lede { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1.6rem; font: .75rem/1.5 var(--mono); }
.filters { display: none; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.1rem; }
.js .filters { display: flex; }
.filters button, .demo-tabs button { min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--muted); font: .76rem/1.4 var(--mono); }
.filters button:hover, .demo-tabs button:hover { color: var(--ink); border-color: var(--jade); }
.filters button[aria-pressed="true"], .demo-tabs button[aria-selected="true"] { color: var(--bg); background: var(--jade); border-color: var(--jade); }
.filter-count { font: .73rem/1.7 var(--mono); color: var(--muted); margin-bottom: 1.9rem; }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 5rem; align-items: start; margin-bottom: 4rem; }
.story-main { min-width: 0; }
.story-main > p, .prose p { max-width: 69ch; color: var(--muted); line-height: 1.8; }
.prose h2, .story-main > h2 { margin-top: 2.7rem; font-size: 1.85rem; }
.prose h3 { margin-top: 2rem; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--muted); }
.prose li + li { margin-top: .55rem; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 2rem 0; padding: .3rem 0 .3rem 1.5rem; border-left: 2px solid var(--jade); font-size: 1.2rem; }
.prose blockquote p { color: var(--ink); }
.story-aside { padding: 1.6rem; border: 1px solid var(--line); background: var(--panel); }
.story-aside h2, .story-aside h3 { font: .73rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .065em; color: var(--jade); margin-bottom: 1rem; }
.story-aside p, .story-aside li { font-size: .88rem; color: var(--muted); }
.story-aside ul { padding-left: 1.1rem; margin-bottom: 0; }
.story-aside li + li { margin-top: .7rem; }
.story-aside hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.story-aside dl { margin: 0; }
.story-aside dt { color: var(--faint); font: .7rem/1.6 var(--mono); margin-top: 1rem; }
.story-aside dd { margin: .3rem 0 1rem; font-size: .9rem; }
.story-photo { margin-bottom: 2.7rem; border: 1px solid var(--line); background: var(--panel); }
.story-photo img { width: 100%; max-height: 650px; object-fit: cover; }
.story-photo figcaption { padding: .8rem 1rem; }
.story-photo.portrait img { max-height: 720px; object-position: center 25%; }
.full-width { grid-column: 1 / -1; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-block: 1.8rem 2.5rem; }
.gallery-grid a { display: block; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.gallery-grid img { width: 100%; aspect-ratio: 1.5; object-fit: cover; object-position: top; }
.gallery-grid a:hover { border-color: var(--jade); }
.gallery-grid figcaption { padding: .75rem; }
.demo-panel { border: 1px solid var(--line); background: var(--panel); padding: 1.5rem; margin-block: 2rem; }
.demo-panel > h2, .demo-panel > h3 { margin-top: 0; }
.demo-panel > .meta { color: var(--yellow); }
.demo-tabs { display: none; flex-wrap: wrap; gap: .5rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.3rem; }
.js .demo-tabs { display: flex; }
.demo-content[hidden] { display: block !important; }
.js .demo-content[hidden] { display: none !important; }
.demo-content + .demo-content { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.js .demo-content + .demo-content { margin-top: 0; padding-top: 0; border-top: 0; }
.demo-content h3 { font-size: 1.2rem; }
.demo-content p, .demo-content li { font-size: .96rem; color: var(--muted); }
.demo-content pre { font: .8rem/1.8 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.demo-content blockquote { margin: 0; border: 0; padding: 0; }
.flow-list { list-style: none; counter-reset: flow; padding: 0; margin-block: 1.8rem 2.5rem; }
.flow-list li { position: relative; counter-increment: flow; min-height: 55px; padding: .2rem 0 1.5rem 3.5rem; color: var(--muted); }
.flow-list li::before { content: counter(flow, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--panel); font: .72rem var(--mono); color: var(--jade); }
.flow-list li:not(:last-child)::after { content: ""; position: absolute; width: 1px; top: 36px; bottom: 0; left: 17px; background: var(--line); }
.flow-list strong { color: var(--ink); }
.timing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 1.8rem 2.5rem; }
.timing-grid > div { padding: 1.4rem; background: var(--panel); }
.timing-grid strong { display: block; font-size: 1.16rem; margin-bottom: .6rem; }
.timing-grid small { display: block; color: var(--muted); line-height: 1.7; }
details { margin-block: 1.2rem; padding: 0 1.2rem; border: 1px solid var(--line); background: var(--panel); }
summary { cursor: pointer; min-height: 55px; padding-block: 1rem; color: var(--ink); font-size: .97rem; }
summary::marker { color: var(--jade); }
details[open] { padding-bottom: 1.25rem; }
details p { font-size: .95rem; color: var(--muted); }
.contact-box { padding: 2rem; border: 1px solid var(--line); background: var(--panel); margin-block: 2.5rem; }
.contact-box h2 { margin-top: 0; font-size: 1.8rem; }
.contact-box p { color: var(--muted); }
.contact-box a { display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.tag, .status { display: inline-block; padding: .2rem .5rem; border: 1px solid var(--line); color: var(--jade); font: .66rem/1.5 var(--mono); vertical-align: middle; letter-spacing: .015em; }
.status { color: var(--yellow); }
.meta .tag, .meta .status { margin-left: .35rem; }
#image-dialog { width: min(1200px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); padding: 3.7rem 1.3rem 1rem; border: 1px solid var(--line); color: var(--ink); background: var(--bg); overflow: auto; }
#image-dialog::backdrop { background: rgb(4 10 7 / .9); }
#lightbox-image { width: auto; max-width: 100%; max-height: calc(100dvh - 170px); margin-inline: auto; object-fit: contain; }
#lightbox-caption { text-align: center; margin: 1rem 0 0; color: var(--muted); font: .75rem/1.6 var(--mono); }
.lightbox-close { position: absolute; top: .6rem; right: .7rem; min-height: 44px; min-width: 44px; padding: .4rem .8rem; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: .75rem var(--mono); }
.lightbox-close:hover { border-color: var(--jade); }
@media (min-width: 1450px) { .intro-grid { padding-block: 80px 90px; } }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .nav-row { gap: 1rem; }
  .main-nav { gap: 1rem; }
  .intro-grid { gap: 2rem; }
  .intro-copy h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
  .project-grid { gap: 16px; }
  .card-body { padding: 1.2rem 1rem 1rem; }
  .card-body h3 { font-size: 1.3rem; }
  .story-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 2.3rem; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .nav-row { min-height: 78px; flex-wrap: wrap; padding-block: 16px; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 32px; height: 32px; }
  .main-nav { width: 100%; gap: .4rem 1.25rem; }
  .js .nav-toggle { display: inline-block; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; padding-top: .7rem; border-top: 1px solid var(--line); }
  .main-nav a { font-size: .83rem; }
  .intro-grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.5rem 3rem; }
  .intro-copy { padding-block: 0; }
  .intro-copy h1 { max-width: 13ch; font-size: clamp(2.6rem, 8.5vw, 3.7rem); }
  .intro-copy .lede { max-width: 53ch; font-size: 1.1rem; }
  .eyebrow { margin-bottom: 1.3rem; font-size: .66rem; }
  .intro-photo img { aspect-ratio: 1.12; }
  .intro-photo figcaption { font-size: .66rem; }
  .section-head { padding-top: 2rem; gap: .5rem 1rem; margin-bottom: 1.2rem; }
  .section-head h2 { font-size: 1.9rem; }
  .project-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .card-image img { aspect-ratio: 1.5; }
  .card-body { padding: 1.3rem; }
  .card-body h3 { font-size: 1.6rem; }
  .card-body p { font-size: 1rem; }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; margin-bottom: 3rem; }
  .journal-card h3 { font-size: 1.25rem; }
  .now-panel { padding: 1.5rem; margin-bottom: 3rem; }
  .now-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .site-footer { margin-top: 2rem; padding-block: 1.6rem; }
  .site-footer .wrap { display: block; }
  .site-footer nav { margin-top: 1rem; }
  .page-heading { padding-block: 2.5rem 2rem; }
  .page-heading h1 { font-size: clamp(2.4rem, 8.5vw, 3.3rem); }
  .story-layout { grid-template-columns: 1fr; gap: 2rem; }
  .story-aside { border-left: 3px solid var(--jade); }
  .story-photo { margin-bottom: 2rem; }
  .gallery-grid { gap: .75rem; }
  .demo-panel { padding: 1.15rem; }
  .timing-grid > div { padding: 1.1rem; }
  .contact-box { padding: 1.5rem; }
}
@media (max-width: 440px) {
  .journal-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .intro-links { gap: .5rem 1.25rem; }
  .intro-links a { font-size: .75rem; }
  .filters { gap: .5rem; }
  .filters button { padding-inline: .75rem; }
  .timing-grid { grid-template-columns: 1fr; }
  #image-dialog { width: calc(100vw - 20px); padding-inline: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .card-image:hover img { transform: none; }
}
@media print {
  :root { --ink: #111; --muted: #333; --bg: #fff; --panel: #fff; --jade: #174e32; --line: #aaa; }
  body { font-size: 11pt; }
  .wrap { width: 100%; }
  .nav-toggle, .main-nav, .filters, .demo-tabs, #image-dialog { display: none !important; }
  .intro-grid, .story-layout { display: block; }
  .intro-photo { max-width: 280px; }
  .project-card, .story-aside, .demo-panel { break-inside: avoid; }
  .js .demo-content[hidden] { display: block !important; }
  .site-footer { margin-top: 2rem; }
}
/* Editorial diagrams are labelled examples, never imitations of live apps. */
.card-illustration { display: flex; flex-direction: column; justify-content: center; gap: .85rem; min-height: 245px; aspect-ratio: 1.42; padding: 1.5rem 1.7rem; color: var(--ink); background: #1c3128; border-bottom: 1px solid var(--line); text-decoration: none; }
.card-illustration .meta, .card-illustration .note-label { margin: 0; color: var(--yellow); }
.illustration-step { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 38px; padding: .4rem .75rem; border: 1px solid #537460; color: var(--ink); font: .75rem/1.5 var(--mono); background: var(--panel); }
.illustration-step + .illustration-step::before { content: ""; width: 1px; height: .85rem; background: var(--jade); position: absolute; left: 1rem; bottom: 100%; }
.illustration-step span { color: var(--jade); }
.large-number { display: block; margin: .5rem 0; font: 450 clamp(2.3rem, 4vw, 3.8rem)/1.1 var(--mono); letter-spacing: -.08em; color: var(--jade); }
.large-number small { font: .7rem/1.5 var(--mono); letter-spacing: 0; color: var(--muted); }
.feature-strip { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; padding: 2rem; border: 1px solid var(--line); background: var(--panel); margin-block: 0 4rem; }
.feature-strip h2 { font-size: 2rem; }
.feature-strip p { color: var(--muted); }
.feature-photo img { width: 100%; max-height: 400px; aspect-ratio: 1.35; object-fit: cover; object-position: center; }
.feature-photo figcaption { padding-bottom: 0; }
.note-label { display: block; color: var(--yellow); font: .68rem/1.6 var(--mono); letter-spacing: .04em; }
.small-copy { font-size: .85rem; line-height: 1.7; color: var(--muted); }
.card-image img[src*="sticks3/"] { object-position: center 50%; }
.story-photo img[src*="sticks3/"] { object-fit: contain; max-height: 600px; background: #14241d; }
.gallery-grid img[src*="sticks3/"] { aspect-ratio: 1; object-fit: contain; background: #14241d; }
@media (max-width: 760px) {
  .card-illustration { aspect-ratio: 1.5; }
  .feature-strip { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.3rem; margin-bottom: 3rem; }
  .feature-strip h2 { font-size: 1.7rem; }
  .large-number { font-size: 3.3rem; }
}

.card-body h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.card-body h2 a, .journal-card h2 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover, .journal-card h2 a:hover { color: var(--jade); }
.journal-card h2 { font-size: 1.35rem; line-height: 1.25; }

main > .section > .back-link { margin-top: 1.5rem; margin-bottom: 0; }
main > .section.prose, main > .section:not(.wrap) { padding-block: 3rem; }

.story-aside { min-width: 0; }
.card-illustration { width: 100%; min-width: 0; }
.story-aside .card-illustration { aspect-ratio: auto; padding: 1rem; }
@media (max-width: 760px) { .story-layout { grid-template-columns: minmax(0, 1fr); } }

.card-image img[src*="sticks3/"] { object-fit: contain; background: #e4e2ca; }

/* Review revisions: full portrait, pen wordmark and actual interface captures. */
.intro-photo { max-width: 470px; justify-self: end; }
.intro-photo img { aspect-ratio: auto; height: auto; object-fit: contain; }
.brand-mark { padding: 0; border: 0; width: 40px; height: 40px; }
.brand-name { font-size: 1.35rem; letter-spacing: -.05em; }
.brand-labs { color: var(--jade); }
.brand-cursor { color: var(--yellow); }
.card-image img[src*="carplay"] { object-fit: contain; background: #172923; }
.feature-photo img { aspect-ratio: auto; object-fit: contain; }
.gallery-grid img[src*="thinkpad/"], .gallery-grid img[src*="carplay"] { aspect-ratio: 1.6; object-fit: contain; }
.story-photo img[src*="carplay"] { object-fit: contain; }
@media (max-width:760px) { .intro-photo { width: 100%; justify-self: start; } }

/* Full name and pen/flask symbol; two rows of featured work. */
.brand-mark { width: 48px; height: 48px; object-fit: contain; }
.featured-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-image img[src*="opl/"] { object-fit: contain; background: #eaf0f0; }
.gallery-grid img[src*="opl/"] { aspect-ratio: 1.4; object-fit: contain; background: #172923; }
.story-photo img[src*="opl/"] { object-fit: contain; }
@media (max-width: 760px) {
  .featured-projects { grid-template-columns: minmax(0, 1fr); }
  .brand-name { font-size: 1.2rem; }
  .brand-mark { width: 40px; height: 40px; }
}

/* Wide preview frames keep the CarPlay capture flush with its card copy. */
.project-card .card-image { aspect-ratio: 16 / 9; }
.project-card .card-image img { height: 100%; aspect-ratio: auto; }
.card-image img[src*="carplay"] { aspect-ratio: auto; }
.about-photos .story-photo:last-child { margin-bottom: 0; }
.about-photos .story-photo img { max-height: none; object-fit: contain; }
.journal-evidence { max-width: 740px; margin-block: 2rem; }
.journal-evidence img { max-height: none; height: auto; }

.project-card .card-image .card-illustration { height: 100%; min-height: 0; aspect-ratio: auto; gap: .35rem; }
