:root {
  color-scheme:light;
  --ink:#242528;
  --muted:#74767c;
  --line:#dedfe2;
  --paper:#f6f6f7;
  --accent:#5b6eaa
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:85px
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:.9375rem/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit;
  cursor:pointer
}
a:focus-visible,button:focus-visible {
  outline:3px solid #416ac9;
  outline-offset:5px
}
a:hover {
  color:var(--accent)
}
.wrap,.nav-inner {
  width:min(1200px,calc(100% - 80px));
  margin:auto
}
.header {
  position:absolute;
  inset:0 0 auto;
  z-index:10;
  color:#fff;
  background:rgba(12,15,18,.28);
  -webkit-backdrop-filter:blur(36px) saturate(140%);
  backdrop-filter:blur(36px) saturate(140%);
  border-bottom:1px solid #ffffff30
}
.nav-inner {
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.logo {
  font-size:1.1875rem;
  font-weight:750;
  letter-spacing:-1px
}
.logo span {
  color:#a4a5ab
}
nav {
  display:flex;
  gap:8px
}
nav a {
  padding:8px 22px;
  border-radius:7px;
  color:var(--muted);
  font-size:0.875rem
}
nav a[aria-current] {
  background:#e7e8eb;
  color:var(--ink)
}
.work-link {
  font-size:0.8125rem
}
.work-link span {
  margin-left:15px
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  padding:50px 0 30px
}
.eyebrow {
  margin:0 0 8px;
  font-size:0.6875rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted)
}
h1,h2,h3,p {
  margin-top:0
}
h1 {
  font-size:clamp(2.25rem,5vw,3.75rem);
  line-height:1.1;
  letter-spacing:-.055em;
  margin-bottom:0;
  font-weight:600
}
h1 span {
  color:#9b9da6
}
.page-heading>p {
  color:var(--muted);
  font-size:0.8125rem;
  margin-bottom:5px
}
.featured {
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:#fff
}
.hero-image {
  height:clamp(250px,34vh,430px);
  position:relative;
  background:#e3e5eb
}
.hero-image img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block
}
.placeholder {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(ellipse at 65% 30%,#f2f3f7,transparent 65%),#e0e3eb;
  overflow:hidden
}
.developer .placeholder {
  background:radial-gradient(ellipse at 65% 30%,#edf2ee,transparent 65%),#dce4df
}
.placeholder-mark {
  font-size:9.375rem;
  line-height:1;
  font-weight:650;
  letter-spacing:-.08em;
  color:#b9c0d0;
  user-select:none
}
.developer .placeholder-mark {
  color:#b0bfb6
}
.hero-image .placeholder-mark {
  font-size:13.75rem
}
.preview-note {
  position:absolute;
  bottom:18px;
  left:24px;
  font-size:0.6875rem;
  color:#687183;
  letter-spacing:.04em
}
.hero-caption {
  padding:24px 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}
.hero-caption h2 {
  font-size:1.6875rem;
  letter-spacing:-.035em;
  line-height:1.2;
  margin:0;
  font-weight:550
}
.hero-caption h2 span {
  color:#9c9fa8;
  font-size:1.25rem
}
.details-link {
  font-size:0.75rem;
  white-space:nowrap
}
.details-link span {
  margin-left:20px
}
.carousel-controls {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:16px;
  padding:0 24px 18px;
  font-size:0.6875rem;
  color:var(--muted)
}
[hidden] {
  display:none!important
}
.carousel-controls button {
  border:1px solid var(--line);
  border-radius:50%;
  background:transparent;
  width:32px;
  height:32px;
  color:var(--ink)
}
.carousel-controls button:hover {
  background:#eceef2
}
.projects {
  padding-top:55px
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:18px;
  border-bottom:1px solid var(--line)
}
.section-heading h2 {
  font-size:1.125rem;
  letter-spacing:-.03em;
  margin:0;
  font-weight:550
}
.section-heading h2 span {
  font-size:0.6875rem;
  margin-left:10px;
  color:var(--muted)
}
.section-heading>span {
  font-size:0.75rem;
  color:var(--muted)
}
.project {
  display:grid;
  grid-template-columns:30% 1fr 155px;
  gap:32px;
  padding:30px 0;
  border-bottom:1px solid var(--line);
  scroll-margin-top:100px
}
.project-media {
  align-self:start;
  border-radius:10px;
  overflow:hidden;
  background:#edeef1
}
.card-slide {
  aspect-ratio:16/10
}
.card-slide img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block
}
.card-slide .placeholder-mark {
  font-size:5.625rem
}
.card-slide .preview-note {
  bottom:12px;
  left:16px;
  font-size:0.625rem
}
.project-media .carousel-controls {
  padding:10px 12px;
  justify-content:center
}
.project-copy {
  padding:8px 0
}
.project h3 {
  font-size:1.4375rem;
  font-weight:550;
  letter-spacing:-.035em;
  line-height:1.25;
  margin-bottom:12px
}
.project-copy>p:not(.eyebrow) {
  color:var(--muted);
  font-size:0.875rem;
  max-width:520px;
  margin-bottom:12px
}
.tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.tags span {
  font-size:0.625rem;
  border:1px solid var(--line);
  border-radius:5px;
  padding:2px 7px;
  color:var(--muted)
}
.project-info {
  padding-top:8px;
  display:flex;
  flex-direction:column;
  align-items:start;
  justify-content:space-between;
  gap:20px;
  font-size:0.75rem
}
.project-info p {
  margin:6px 0;
  color:var(--muted)
}
.project-link {
  border-bottom:1px solid #aeb0b7;
  padding-bottom:4px
}
.project-link span {
  margin-left:12px
}
footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:35px!important;
  padding-bottom:35px!important;
  color:var(--muted);
  font-size:0.75rem
}
.empty {
  padding:50px 24px;
  color:var(--muted)
}
.skip {
  position:fixed;
  top:-100px;
  left:20px;
  z-index:20;
  background:white;
  padding:10px
}
.skip:focus {
  top:10px
}
.slides>[data-slide]+[data-slide] {
  border-top:1px solid var(--line)
}
.carousel.is-ready .slides>[data-slide] {
  border:0
}
@media(min-width:1500px) {
  .wrap,.nav-inner {
    width:min(1360px,calc(100% - 120px))
  }
}
@media(max-width:760px) {
  .wrap,.nav-inner {
    width:calc(100% - 36px)
  }
  .nav-inner {
    height:64px
  }
  .logo {
    font-size:1.0625rem
  }
  nav a {
    font-size:0.75rem;
    padding:7px 12px
  }
  .work-link {
    display:none
  }
  .page-heading {
    padding:34px 0 24px;
    display:block
  }
  .page-heading>p {
    margin:14px 0 0
  }
  .hero-caption {
    padding:20px;
    align-items:start
  }
  .hero-caption h2 {
    font-size:1.4375rem
  }
  .details-link {
    font-size:0.6875rem
  }
  .details-link span {
    margin-left:5px
  }
  .project {
    grid-template-columns:36% 1fr;
    gap:18px;
    padding:24px 0
  }
  .project h3 {
    font-size:1.25rem
  }
  .project-info {
    grid-column:2;
    padding:0;
    gap:12px
  }
  .project-copy {
    padding:0
  }
  .project-copy>p:not(.eyebrow) {
    font-size:0.8125rem
  }
  .preview-note {
    font-size:0.5625rem
  }
  .card-slide {
    aspect-ratio:1
  }
  .card-slide .preview-note {
    left:10px;
    font-size:0.5625rem
  }
  .card-slide .placeholder-mark {
    font-size:4.0625rem
  }
  .projects {
    padding-top:35px
  }
}
@media(max-width:460px) {
  .project {
    grid-template-columns:1fr
  }
  .card-slide {
    aspect-ratio:16/9
  }
  .project-info {
    grid-column:1;
    flex-direction:row;
    align-items:center
  }
  .hero-caption {
    display:block
  }
  .details-link {
    display:inline-block;
    margin-top:16px
  }
  .section-heading>span {
    display:none
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
}

/* Full-width spotlight and foreground project content. */
:root {
  --surface:#fff;
  --nav:#f6f6f7f2;
  --selected:#e7e8eb;
  --vignette:rgba(33,37,48,.12);
  --artwork-panel:rgba(246,246,247,.94);
  --artwork-brightness:1;
  --artwork-opacity:.35
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --ink:#f1f2f5;
  --muted:#b0b3bd;
  --line:#383b45;
  --paper:#17191e;
  --surface:#20232a;
  --nav:#17191ef2;
  --selected:#343844;
  --accent:#a8baff;
  --vignette:rgba(0,0,0,.65);
  --artwork-panel:rgba(23,25,30,.94);
  --artwork-brightness:.38;
  --artwork-opacity:1
}
@media(prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    color-scheme:dark;
    --ink:#f1f2f5;
    --muted:#b0b3bd;
    --line:#383b45;
    --paper:#17191e;
    --surface:#20232a;
    --nav:#17191ef2;
    --selected:#343844;
    --accent:#a8baff;
    --vignette:rgba(0,0,0,.65);
    --artwork-panel:rgba(23,25,30,.94);
    --artwork-brightness:.38;
    --artwork-opacity:1
  }
}
body::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:linear-gradient(90deg,var(--vignette),transparent 24%,transparent 76%,var(--vignette))
}
.header nav a { color:var(--muted) }
.header nav a[aria-current] { color:var(--ink); background:var(--selected) }
.header .logo span { color:var(--muted) }
.header a:hover { color:var(--ink); text-decoration:underline }
.header .theme-toggle { color:var(--ink); background:var(--surface); border-color:var(--line) }
.header :focus-visible { outline-color:var(--accent) }
.hero-slide::after {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:100px;
  pointer-events:none;
  background:linear-gradient(rgba(0,0,0,.8),transparent)
}
nav a[aria-current] { background:var(--selected) }
.theme-toggle {
  color:var(--ink);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:6px 13px;
  font-size:0.75rem
}
.featured {
  position:relative;
  z-index:1;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:var(--surface)
}
.hero-slide { position:relative }
.hero-image { height:auto; overflow:hidden }
.hero-image img {
  width:100%;
  height:auto;
  display:block;
  filter:blur(var(--hero-blur,0px));
  opacity:1
}
.hero-image.placeholder { height:auto; aspect-ratio:16/9 }
.featured.scroll-hero { position:sticky; top:var(--hero-top,0px) }
.hero-caption {
  position:absolute;
  inset:auto 0 0;
  padding:22px max(24px,calc((100% - 1200px)/2));
  justify-content:center;
  color:#fff;
  background:linear-gradient(transparent,rgba(0,0,0,.88))
}
.hero-caption .eyebrow { color:#e0e2e9 }
.hero-caption a:hover { color:#fff; text-decoration:underline }
.content-layer,footer { position:relative; z-index:2 }
.content-layer {
  background:transparent;
  border-top:1px solid var(--line);
  min-height:100svh
}
.scroll-cue {
  display:inline-flex;
  align-items:center;
  gap:16px;
  padding:8px 16px;
  border:1px solid #ffffff60;
  border-radius:24px;
  background:#080b0860;
  font-size:0.75rem
}
.scroll-cue span { font-size:1.25rem; line-height:1 }
@media(prefers-reduced-motion:reduce) {
  .featured.scroll-hero { position:relative }
  .hero-image img { filter:none; opacity:1 }
}
.projects { padding-top:12px }
.project-media { background:var(--surface) }
.card-slide { aspect-ratio:16/9 }
.carousel-controls button:hover { background:var(--selected) }
.skip { color:var(--ink); background:var(--surface) }
@media(max-width:760px) {
  .nav-inner { gap:8px }
  nav { gap:0 }
  nav a { padding:7px 8px }
  .theme-toggle { padding:5px 8px; font-size:0.6875rem; white-space:nowrap }
  .hero-caption { padding:20px }
  .projects { padding-top:8px }
}
@media(max-width:380px) {
  .logo { font-size:0.875rem }
  nav a { font-size:0.6875rem; padding:7px 5px }
}
.logo { white-space:nowrap; flex-shrink:0 }

@media(max-width:460px) {
  .hero-caption { padding:10px; display:flex }
  .scroll-cue { font-size:0.6875rem; padding:5px 12px }
}

/* Artwork remains visible behind the transparent project list. */
.artwork-backdrop {
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
  background:var(--paper)
}
.artwork-backdrop img {
  width:100%;
  height:100%;
  object-fit:cover;
  filter:blur(20px) brightness(var(--artwork-brightness));
  opacity:var(--artwork-opacity);
  transform:scale(1.06)
}
body.has-artwork .content-layer,body.has-artwork footer {
  color:var(--ink)
}
body.has-artwork .featured { opacity:var(--hero-visibility,1) }
body.has-artwork .content-layer .project-copy,body.has-artwork .content-layer .page-heading {
  text-shadow:none
}
body.has-artwork .hero-image img { filter:blur(var(--hero-blur,0px)) brightness(var(--hero-brightness,1)) }
body.has-artwork .hero-caption { opacity:var(--cue-opacity,1) }
@media(prefers-reduced-motion:reduce) {
  body.has-artwork .hero-image img { filter:none }
}

/* Support stays readable in both themes, with or without scripts. */
.support-page .header {
  position:relative;
  color:var(--ink);
  background:var(--nav);
  border-color:var(--line)
}
.support-page .header nav a { color:var(--muted) }
.support-page .header a:hover { color:var(--ink) }
.support-page .header .theme-toggle {
  color:var(--ink);
  border-color:var(--line);
  background:var(--surface)
}
.support-page .header :focus-visible { outline-color:var(--accent) }
.support-main { position:relative; z-index:1; padding-top:64px; padding-bottom:40px }
.support-intro { max-width:680px; margin-bottom:42px }
.support-intro h1 { margin-bottom:22px }
.support-main p,.support-main li { color:var(--muted) }
.support-main h2 { font-size:1.5rem; line-height:1.3; letter-spacing:-.03em }
.support-section { padding:28px 0; border-top:1px solid var(--line); max-width:800px }
.support-section ol { padding-left:22px }
.support-section li { margin-bottom:12px }
.support-section a { text-decoration:underline; text-underline-offset:4px; overflow-wrap:anywhere }
.support-contact { display:inline-block; font-size:1.1875rem; margin:6px 0 14px }
.support-links { display:flex; flex-wrap:wrap; gap:24px }
@media(max-width:760px) {
  .support-main { padding-top:36px }
  .support-page footer { flex-wrap:wrap; gap:16px }
}

/* Project pages keep artwork and store widgets within the viewport. */
.project-gallery { display:grid; gap:20px; max-width:800px; margin-bottom:28px }
.project-gallery img { display:block; width:100%; height:auto; border-radius:12px }
.store-embed { display:block; max-width:100%; border:0 }
@media(max-width:580px) { .itch-embed { height:230px } }

.project-summary { max-width:800px; margin-bottom:28px }
.project-summary p { color:var(--ink); font-size:1.0625rem; line-height:1.7 }

.support-form { max-width:640px; display:grid; gap:20px }
.form-field { display:grid; gap:8px }
.form-field label { font-weight:600 }
.support-form select,.support-form textarea {
  width:100%; min-width:0; padding:12px; border:1px solid var(--muted);
  border-radius:8px; background:var(--surface); color:var(--ink); font:inherit
}
.support-form textarea { resize:vertical }
.support-form :focus-visible { outline:3px solid var(--accent); outline-offset:3px }
.support-form button { justify-self:start; padding:10px 22px; border:1px solid var(--ink); border-radius:8px; background:var(--ink); color:var(--paper) }
.errorlist { color:var(--ink); padding-left:22px; border-left:3px solid var(--accent) }
.form-success { padding:14px; border:1px solid var(--accent); border-radius:8px }
@media(max-width:460px) {
  .nav-inner { height:auto; min-height:64px; flex-wrap:wrap; padding:10px 0; gap:8px }
  .header nav { order:3; width:100%; justify-content:center }
  .header nav a { padding:6px 14px }
}

/* Owner-provided portrait remains uncropped at its original proportions. */
.about { padding:48px 0 24px; scroll-margin-top:100px }
.about-portrait {
  display:block;
  width:100%;
  max-width:482px;
  height:auto;
  margin-top:24px;
  border-radius:12px
}
@media(min-width:761px) {
  .header nav a { padding-inline:14px }
}
@media(max-width:460px) {
  .header nav a { padding-inline:10px }
}

/* Profile navigation stays left; site links and theme control stay right. */
.nav-inner { gap:20px }
.nav-profiles,.nav-actions { display:flex; align-items:center; gap:20px }
.nav-actions { margin-left:auto }
.theme-toggle { flex-shrink:0; white-space:nowrap }
@media(max-width:1000px) {
  .nav-inner { width:calc(100% - 36px); gap:12px }
  .nav-profiles,.nav-actions { gap:10px }
  .header nav a { padding:7px 8px; font-size:0.75rem }
}
@media(max-width:760px) {
  .nav-inner { height:auto; min-height:72px; flex-wrap:wrap; padding:12px 0 }
  .nav-profiles { width:100%; justify-content:space-between }
  .nav-actions { width:100%; justify-content:flex-end }
  .header nav { order:initial; width:auto; justify-content:initial }
  .header nav a { padding:7px 8px }
}

.about-content { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); gap:40px; align-items:center; margin-top:24px }
.about-content .about-portrait { margin-top:0 }
.about-copy { max-width:640px; font-size:1.0625rem; line-height:1.8 }
.about-copy p:last-child { margin-bottom:0 }
@media(max-width:760px) {
  .about-content { grid-template-columns:1fr; gap:24px }
}

/* Native language selection remains usable without JavaScript. */
.visually-hidden {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;
}
.language-selector { display:flex; align-items:center; gap:6px; margin:0; min-width:0 }
.language-selector select,.language-selector button {
  font:inherit; font-size:0.75rem; color:inherit; background:transparent;
  border:1px solid currentColor; border-radius:8px; padding:7px 8px;
}
.language-selector select { max-width:170px; min-width:80px; cursor:pointer }
.language-selector option { color:#171717; background:#fff }
.language-selector :focus-visible { outline:3px solid #63aaff; outline-offset:3px }
.language-selector button { cursor:pointer }
.translation-notice { margin-block:24px; font-size:0.8125rem; line-height:1.6 }
@media(max-width:1100px) {
  .nav-inner { height:auto; min-height:72px; flex-wrap:wrap; padding-block:10px }
  .nav-actions { flex-wrap:wrap; justify-content:flex-end; gap:10px }
}
@media(max-width:460px) {
  .nav-actions { justify-content:space-between }
  .nav-actions nav { width:100%; justify-content:flex-end }
  .language-selector select { max-width:155px }
}

/* Shared accessibility controls and resilient layouts. */
:root { --muted:#60636b }
:focus-visible { outline:3px solid var(--accent); outline-offset:4px }
main:focus { outline:none }
.header { position:relative; background:var(--nav); color:var(--ink); border-color:var(--line) }
.nav-inner,footer.wrap { width:100%; padding-inline:clamp(18px,2vw,40px) }
.nav-inner { height:auto; min-height:72px; flex-wrap:wrap; padding-block:12px }
.nav-profiles,.nav-actions,nav { flex-wrap:wrap; min-width:0 }
.nav-actions { justify-content:flex-end }
footer { flex-wrap:wrap; gap:20px }
main, .project>* { min-width:0 }
p,li,h1,h2,h3,a,label { overflow-wrap:anywhere }
button,select,summary { min-height:44px }
.carousel-controls button { min-width:44px; height:44px }
.accessibility-menu { position:relative; font-size:.875rem; color:var(--ink) }
.accessibility-menu summary { display:list-item; padding:9px 12px; cursor:pointer; border:1px solid #8993a8; border-radius:8px; background:var(--surface); color:var(--ink) }
.accessibility-panel { position:absolute; right:0; top:100%; z-index:30; width:min(22rem,calc(100vw - 36px)); max-height:70vh; overflow:auto; padding:18px; background:var(--surface); color:var(--ink); border:2px solid var(--muted); border-radius:8px; box-shadow:0 8px 24px #0005 }
.accessibility-panel form { display:grid; gap:12px }
.accessibility-panel label { display:block }
.accessibility-panel input { width:22px; height:22px; vertical-align:middle; accent-color:var(--accent) }
.accessibility-panel select,.accessibility-panel button { font:inherit; padding:8px; width:100%; background:var(--paper); color:var(--ink); border:1px solid var(--muted); border-radius:4px }
.accessibility-panel a { display:inline-block; margin-top:16px; text-decoration:underline }
html[data-text-size="large"] { font-size:125% }
html[data-text-size="largest"] { font-size:150% }
.a11y-links a { text-decoration:underline!important; text-underline-offset:.2em }
.a11y-spacing body { line-height:1.8; letter-spacing:.08em; word-spacing:.16em }
.a11y-spacing :is(h1,h2,h3,p,a,label,button,select) { line-height:1.8; letter-spacing:.08em; word-spacing:.16em }
.a11y-spacing p { margin-bottom:2em }
:is(.a11y-reading,.a11y-contrast) .artwork-backdrop,
:is(.a11y-reading,.a11y-contrast) body::before { display:none }
:is(.a11y-reading,.a11y-contrast) body.has-artwork :is(.content-layer,footer) { --ink:inherit; --muted:inherit; --line:currentColor; --accent:inherit; color:inherit; background:var(--paper); text-shadow:none }
:is(.a11y-reading,.a11y-contrast) .content-layer :is(.project-copy,.page-heading) { text-shadow:none!important }
:is(.a11y-reading,.a11y-contrast,.a11y-motion) .featured { position:relative!important; opacity:1!important }
:is(.a11y-reading,.a11y-contrast,.a11y-motion) .hero-image img { filter:none!important }
:is(.a11y-reading,.a11y-contrast,.a11y-motion) .hero-caption { opacity:1!important }
.a11y-reading .featured { display:none }
.a11y-reading .wrap { max-width:70ch }
.a11y-reading .project { grid-template-columns:1fr }
.a11y-reading .project-info { grid-column:auto; gap:16px }
.a11y-reading .project-copy>p { max-width:none }
.a11y-reading .project-media { max-width:32rem; width:100% }
.a11y-reading .about-content { grid-template-columns:1fr }
.a11y-reading :is(.header,.accessibility-panel) { backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:none }
html:root.a11y-contrast { color-scheme:light; --ink:#000; --muted:#000; --paper:#fff; --surface:#fff; --nav:#fff; --selected:#ddd; --line:#000; --accent:#003b80 }
.a11y-contrast body :is(.header,.header nav a,.header .theme-toggle,footer,.content-layer,.support-main p,.support-main li) { color:#000; background:#fff; border-color:#000 }
.a11y-contrast body :is(a,button,select,textarea,summary) { color:#000; border-color:#000 }
.a11y-contrast a { text-decoration:underline }
.a11y-contrast :focus-visible { outline:3px solid #003b80!important }
.a11y-contrast .hero-caption a { color:#fff }
.a11y-motion,.a11y-motion * { scroll-behavior:auto!important; animation:none!important; transition:none!important }
.a11y-motion .header { backdrop-filter:none; -webkit-backdrop-filter:none }
.a11y-motion .artwork-backdrop img { filter:brightness(var(--artwork-brightness)); transform:none }
.a11y-cursor,.a11y-cursor * { cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M5 3L5 39L15 30L23 45L30 41L22 27L36 27Z' fill='white' stroke='black' stroke-width='3'/%3E%3C/svg%3E") 5 3,auto!important }
@media(max-width:760px) {
  .nav-actions { justify-content:flex-start }
  .project { grid-template-columns:1fr }
  .project-info { grid-column:auto; flex-wrap:wrap }
  .about-content { grid-template-columns:1fr }
  .accessibility-menu { position:static }
  .accessibility-panel { right:18px; top:auto }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important }
}
/* A stable backing keeps foreground text readable over every artwork. */
body.has-artwork .content-layer,body.has-artwork footer { background:var(--artwork-panel) }
.translation-notice { background:var(--paper); color:var(--ink); padding:12px }
.accessibility-panel label:has(input) { min-height:44px; display:flex; align-items:center; gap:8px }
.accessibility-panel input { flex-shrink:0 }

.software-resume { max-width:960px; overflow-wrap:anywhere }
.resume-section { padding:32px 0; scroll-margin-top:32px }
.resume-section h2 { margin-bottom:24px }
.resume-section p, .resume-section li, .resume-skills { line-height:1.75 }
.resume-contacts { display:flex; flex-wrap:wrap; gap:12px 24px; font-style:normal }
.resume-skills { margin:0 }
.resume-skills > div { display:grid; grid-template-columns:minmax(140px,1fr) minmax(0,3fr); gap:16px; padding:12px 0 }
.resume-skills dt { font-weight:700 }
.resume-skills dd { margin:0 }
.resume-job { padding:24px 0; border-bottom:1px solid var(--line) }
.resume-job h3 { margin-bottom:8px }
.resume-job li + li { margin-top:8px }
.resume-job ul, .resume-section > ul { padding-left:24px }
@media (max-width:600px) {
  .resume-skills > div { grid-template-columns:1fr; gap:4px }
  .resume-contacts { flex-direction:column; gap:12px }
}
.project-video { display:block; width:100%; max-width:960px; height:auto; margin-top:24px; background:#000 }

.logo small { font-size:.7em; font-weight:400 }
.blog-entry { max-width:800px; padding:28px 0; border-bottom:1px solid var(--line) }
.blog-post, .blog-body { max-width:960px; overflow-wrap:anywhere }
.blog-body { margin:28px 0; line-height:1.85 }
.blog-post h1 { overflow-wrap:anywhere }
.blog-attachment { margin:28px 0; max-width:960px }
.blog-attachment img, .blog-attachment video { display:block; max-width:100%; width:auto; height:auto }
.blog-attachment video { width:100%; background:#000 }
.blog-attachment figcaption { margin:10px 0; line-height:1.6 }
.blog-pagination { display:flex; gap:24px; margin:24px 0 }
.blog-form { max-width:800px }
.blog-form label { display:block; font-weight:600; margin-bottom:8px }
.blog-form :is(input:not([type=checkbox]),textarea) { width:100%; max-width:100%; padding:12px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:8px; font:inherit }
.blog-form input[type=checkbox] { width:1.25rem; height:1.25rem }
.blog-form .errorlist { color:var(--ink); font-weight:700 }
.blog-page button { padding:10px 16px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:8px; font:inherit; cursor:pointer }
.blog-editor-layout { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,1fr); gap:40px; margin-top:24px }
.blog-editor-layout aside ul { padding-left:20px; overflow-wrap:anywhere }
@media (max-width:768px) { .blog-editor-layout { grid-template-columns:1fr } }

.project { position:relative }
.project-title-link::after { content:""; position:absolute; inset:0; z-index:1; cursor:pointer }
.project-info a,.project .carousel-controls { position:relative; z-index:2 }
.project-title-link:focus-visible::after { outline:3px solid var(--accent); outline-offset:4px }
.project-status,.project-copy>p.project-status {
  display:table; max-width:100%; margin:12px 0; padding:5px 10px;
  border:1px solid var(--line); border-radius:6px;
  background:var(--surface); color:var(--ink); font-size:.75rem; line-height:1.5;
}

.chat-entry{position:fixed;right:20px;bottom:20px;z-index:30;padding:12px 20px;border:2px solid currentColor;border-radius:24px;background:var(--paper);color:var(--ink);font-weight:700}
.chat-history{display:grid;gap:16px;margin:24px 0;max-width:800px}
.chat-message{border:1px solid currentColor;border-radius:12px;padding:16px;overflow-wrap:anywhere}
.chat-message p{white-space:pre-wrap;margin:8px 0}
.chat-owner{border-inline-start-width:5px}
.chat-message time{font-size:.85rem}
.chat-form textarea{display:block;width:100%;max-width:800px;min-height:120px;background:var(--paper);color:var(--ink);border:1px solid currentColor;padding:12px;font:inherit}
.chat-form button{padding:12px 20px;font:inherit;cursor:pointer}
body:has(.chat-history) .chat-entry{display:none}
