@font-face {
  font-family: "BoldPixels";
  src: url("../fonts/BoldPixels.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --violet: #46425e;
  --petrol: #15788c;
  --turquoise: #00b9be;
  --cream: #fcebda;
  --salmon: #ffb0a3;
  --coral: #ff6973;
  --highlight: #fff9ed;
  --ink: #302d43;
  --title-font: "BoldPixels", "Courier New", monospace;
  --text-font: "Segoe UI", Arial, sans-serif;
  --window-shadow: 7px 8px 0 rgb(48 45 67 / 50%);
  --section-inset: 32px;
  --action-font-size: 22px;
  --window-radius: 8px;
  --control-radius: 4px;
  --site-header-height: 76px;
}

* { box-sizing: border-box; }
html { min-width: 280px; scrollbar-gutter: stable; }
body { margin: 0; color: var(--violet); background: var(--petrol); font-family: var(--text-font); }
button { font: inherit; }
button, a, [tabindex="0"] { scroll-margin-block: 16px; }
svg { display: block; width: 1em; height: 1em; flex-shrink: 0; }
p, h1, h2 { margin: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--violet); outline-offset: 5px; }
main { scroll-margin-top: var(--site-header-height); }
main > section[id] { scroll-margin-top: calc(var(--site-header-height) + 24px); }
main :where(button, a) { scroll-margin-block-start: calc(var(--site-header-height) + 16px); }
main:focus { outline: none; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--cream); border: 2px solid var(--ink); }
.site-header :where(button, a) { scroll-margin-block: 0; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; max-width: 1392px; padding: 10px 30px; margin-inline: auto; }
.wordmark { display: flex; align-items: center; gap: 12px; font: 400 39px/1 var(--title-font); letter-spacing: 1px; }
.brand-spark { width: 23px; height: 31px; color: var(--coral); }
.header-caption { border-left: 2px solid var(--violet); padding-left: 28px; margin-left: 9px; font: 400 19px/1.3 var(--text-font); }
.language-switch { margin-left: auto; display: flex; align-items: center; gap: 8px; border-left: 2px solid var(--violet); padding-left: 24px; }
.language-switch button { display: grid; place-items: center; flex: none; width: 46px; height: 44px; padding: 0; border: 2px solid var(--violet); background: var(--cream); color: var(--ink); box-shadow: inset 2px 2px 0 var(--highlight), inset -2px -2px 0 rgb(70 66 94 / 20%), 2px 2px 0 var(--violet); cursor: pointer; font: 600 22px/1 var(--text-font); }
.language-switch button[aria-pressed="true"] { background: var(--salmon); }
.language-switch button[aria-pressed="true"], .language-switch button:active { box-shadow: inset 2px 2px 0 rgb(48 45 67 / 45%), inset -1px -1px 0 var(--highlight); }
.language-switch button:hover { border-color: var(--ink); }
.language-divider { font: 22px var(--text-font); }

.desktop { min-height: calc(100svh - 138px); display: flex; flex-direction: column; justify-content: center; padding: 48px 40px 26px; background-image: radial-gradient(ellipse at 55% 45%, rgb(0 185 190 / 13%), transparent 75%); }
.desktop:focus { outline: none; }
.hero { width: 100%; max-width: 1236px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 38px; align-items: center; }
.window { min-width: 0; padding: 5px; border: 2px solid var(--ink); background: var(--cream); box-shadow: inset 2px 2px 0 var(--highlight), inset -2px -2px 0 #b1a28c, var(--window-shadow); }
.window-titlebar { display: flex; align-items: center; gap: 11px; min-height: 41px; padding: 7px 12px; background: var(--violet); color: var(--cream); border: 1px solid var(--ink); }
.title-icon { color: var(--ink); width: 23px; height: 27px; }
.window-filename { min-width: 0; font: 400 20px/1.25 var(--title-font); overflow-wrap: anywhere; }
.titlebar-lines { width: 34px; height: 15px; margin-left: auto; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgb(252 235 218 / 33%) 2px 3px); }
.hello-window { transform: translateY(14px); }
.hello-content { padding: 32px 30px 30px; border: 1px solid #b1a28c; margin-top: 4px; }
.greeting { position: relative; padding-bottom: 23px; }
h1 { position: relative; z-index: 1; }
h1 span { display: block; }
.specialty { margin-top: 3px; font-size: 25px; line-height: 1.25; }
.introduction { margin-top: 24px; max-width: 40ch; font-size: 19px; line-height: 1.5; }
.availability { display: flex; align-items: center; gap: 12px; margin-top: 29px; font-size: 23px; font-weight: 700; line-height: 1.4; }
.status-light { display: grid; place-items: center; width: 15px; height: 15px; border: 2px solid var(--violet); background: var(--turquoise); box-shadow: inset 2px 2px 0 var(--highlight), 1px 1px 0 var(--violet); flex-shrink: 0; }
.status-light::before { content: ""; box-sizing: border-box; width: 5px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.window-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-top: 5px; padding: 4px 9px; border: 1px solid #b1a28c; box-shadow: inset 1px 1px 0 rgb(70 66 94 / 25%); font: 400 16px/1.25 var(--text-font); }
.hello-status { font-size: 14px; }
.paint-infobar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 8px; border-bottom: 1px solid var(--violet); font: 400 17px/1 var(--text-font); }
.paint-workspace { display: grid; grid-template-columns: 66px minmax(0, 1fr); padding: 10px 5px 2px; gap: 10px; }
.paint-decoration { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 5px 9px 0 0; border-right: 1px solid var(--violet); pointer-events: none; user-select: none; }
.tool-illustration { display: flex; flex-direction: column; align-items: center; gap: 21px; }
.tool-illustration svg { width: 30px; height: 30px; color: var(--ink); }
.paint-palette { display: grid; grid-template-columns: repeat(2, 20px); gap: 4px; margin-top: auto; padding-bottom: 5px; }
.paint-palette i { width: 20px; height: 20px; border: 1px solid var(--violet); background: var(--violet); box-shadow: inset 1px 1px 0 rgb(255 255 255 / 35%); }
.paint-palette i:nth-child(2) { background: var(--petrol); }
.paint-palette i:nth-child(3) { background: var(--turquoise); }
.paint-palette i:nth-child(4) { background: var(--cream); }
.paint-palette i:nth-child(5) { background: var(--salmon); }
.paint-palette i:nth-child(6) { background: var(--coral); }
.paint-status { margin-left: 81px; }
.status-grid { font-size: 19px; opacity: .55; }
.desktop-note { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 34px auto 0; color: var(--highlight); font: 400 16px/1.3 var(--text-font); text-align: center; }
.desktop-note svg { width: 10px; height: 14px; color: var(--salmon); }
.taskbar { padding: 6px 24px; border: 2px solid var(--ink); box-shadow: inset 0 2px 0 var(--highlight); background: var(--cream); }
.taskbar-inner { max-width: 1392px; min-height: 46px; margin-inline: auto; display: flex; align-items: center; gap: 14px; }
.taskbar-monogram { display: grid; place-items: center; width: 34px; height: 34px; color: var(--coral); background: var(--violet); border: 2px solid var(--ink); box-shadow: inset 2px 2px 0 rgb(252 235 218 / 30%); font: 700 29px/1 var(--text-font); }
.taskbar-label { font: 500 22px/1 var(--text-font); }
.taskbar-document { display: flex; align-items: center; gap: 7px; margin-left: 8px; padding-left: 20px; border-left: 2px solid var(--violet); font: 400 19px/1 var(--text-font); }
.taskbar-document svg { width: 17px; height: 21px; }
.taskbar-copyright { font: 400 14px/1.3 var(--text-font); }
.location { display: flex; align-items: center; gap: 17px; margin-left: auto; font: 400 17px/1.3 var(--text-font); }
.timezone { border-left: 1px solid var(--violet); padding-left: 17px; white-space: nowrap; }

@media (max-width: 1000px) {
  .desktop { padding: 38px 24px 25px; }
  .hero { gap: 24px; }
  .hello-content { padding: 26px 22px; }
  .specialty { font-size: 22px; }
  .introduction { font-size: 17px; }
  .paint-workspace { grid-template-columns: 48px minmax(0, 1fr); gap: 7px; }
  .paint-decoration { padding-right: 5px; }
  .paint-palette { grid-template-columns: repeat(2, 17px); }
  .paint-palette i { width: 17px; height: 17px; }
  .paint-status { margin-left: 60px; }
}

@media (max-width: 1099px) {
  .header-inner { min-height: 68px; padding: 9px 20px; gap: 12px; }
  .wordmark { font-size: 34px; gap: 9px; }
  .brand-spark { width: 19px; height: 26px; }
  .language-switch { padding-left: 14px; gap: 5px; }
  .language-switch button { width: 44px; font-size: 20px; }
  .desktop { min-height: 0; padding: 30px 24px 27px; }
  .hero { max-width: 550px; grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .hello-window { transform: none; }
  .hello-content { padding: 29px 26px 25px; }
  .specialty { font-size: 23px; }
  .introduction { font-size: 18px; margin-top: 21px; }
  .availability { margin-top: 25px; font-size: 15px; }
  .paint-workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 8px 5px 3px; }
  .paint-decoration { flex-direction: row; justify-content: space-between; gap: 16px; padding: 0 6px 9px; border-right: 0; border-bottom: 1px solid var(--violet); }
  .tool-illustration { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .tool-illustration svg { width: 26px; height: 26px; }
  .paint-palette { grid-template-columns: repeat(3, 16px); gap: 3px; margin-top: 0; padding-bottom: 0; }
  .paint-palette i { width: 16px; height: 16px; }
  .paint-status { margin-left: 0; margin-top: 2px; border: 0; box-shadow: none; font-size: 15px; }
  .desktop-note { max-width: 30ch; margin-top: 27px; font-size: 15px; }
  .taskbar { padding: 7px 18px; }
  .taskbar-inner { gap: 10px; flex-wrap: wrap; }
  .taskbar-label { font-size: 19px; }
  .taskbar-document { display: none; }
  .location { flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; }
  .timezone { border: 0; padding: 0; }
}

@media (max-width: 599px) {
  .taskbar-copyright { flex: 0 0 100%; order: 1; }
}

@media (max-width: 370px) {
  .header-inner { padding-inline: 12px; gap: 8px; }
  .wordmark { font-size: 29px; gap: 6px; letter-spacing: 0; }
  .brand-spark { width: 15px; }
  .language-switch { padding-left: 9px; gap: 1px; }
  .language-switch button { width: 38px; }
  .desktop { padding-inline: 14px; }
  .hello-content { padding: 26px 19px; }
  .specialty { font-size: 21px; }
  .window-filename { font-size: 20px; }
  .titlebar-lines { width: 22px; }
  .tool-illustration { gap: 10px; }
  .tool-illustration svg { width: 23px; height: 23px; }
  .paint-decoration { gap: 10px; padding-inline: 2px; }
  .taskbar { padding-inline: 12px; }
  .taskbar-monogram { width: 29px; height: 30px; }
}

@media (prefers-reduced-motion: no-preference) {
  .language-switch button { transition: background-color 120ms ease; }
}

/* Projects extend the existing desktop without changing its window styling. */
.header-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-nav .retro-link { min-height: 44px; padding: 6px 10px; font-size: 20px; white-space: nowrap; }
.header-nav a:hover { background: var(--salmon); }
.language-switch { margin-left: 0; }
.retro-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 49px; padding: 10px 16px; border: 2px solid var(--violet); background: var(--coral); color: var(--ink); box-shadow: inset 2px 2px 0 var(--highlight), inset -2px -2px 0 var(--salmon), 3px 3px 0 var(--violet); font: 600 var(--action-font-size)/1.2 var(--text-font); text-decoration: none; }
.retro-link:hover { background: var(--salmon); }
.retro-link:active { box-shadow: inset 2px 2px 0 var(--violet); }
.site-header .header-nav-toggle { display: none; }

@media (max-width: 1239px) {
  .header-caption { display: none; }
}

@media (800px <= width <= 999px) {
  .header-inner { gap: 8px; padding-inline: 12px; }
  .wordmark { font-size: 30px; }
  .header-nav { gap: 7px; }
  .header-nav .retro-link { padding-inline: 6px; font-size: 17px; }
  .language-switch { padding-inline-start: 9px; }
  .language-switch button { width: 38px; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 23px; }
.retro-link-secondary { justify-content: center; background: var(--cream); }
.projects-section, .gallery-section { width: 100%; max-width: 1316px; margin-inline: auto; padding: 32px 40px; }
.projects-section:focus, .gallery-section:focus { outline: none; }
.projects-content { padding: var(--section-inset); }
.projects-heading { margin-bottom: 28px; }
.projects-heading h2, .gallery-content h2 { overflow-wrap: anywhere; }
.projects-heading h2, .gallery-content h2, .contact-primary h2 {
  font: 400 clamp(32px, 5vw, 48px)/1.15 var(--title-font);
  font-synthesis: none;
}
.projects-heading p { margin-top: 11px; font-size: 19px; line-height: 1.5; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.project-card { min-width: 0; border: 2px solid var(--violet); background: var(--cream); padding: 7px; }
.project-overview { display: grid; grid-template-columns: minmax(0, 1.26fr) minmax(0, .74fr); gap: 16px; align-items: center; min-height: 214px; }
.project-cover { position: relative; display: block; width: 100%; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); border: 1px solid var(--violet); border-radius: var(--control-radius); }
.project-cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.project-identity { min-width: 0; padding: 15px 8px 15px 0; }
.project-identity h3 { margin: 0; font: 400 24px/1.18 var(--title-font); overflow-wrap: anywhere; }
.project-role { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.project-proposal { width: fit-content; margin: 0 0 8px; padding: 3px 6px; border: 1px solid var(--violet); border-radius: var(--control-radius); background: var(--salmon); color: var(--ink); font: 500 14px/1.2 var(--text-font); }
.project-cover-credit { margin-top: 6px; font-size: 13px; line-height: 1.4; }
.project-open { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--violet); border-radius: var(--control-radius); background: var(--highlight); box-shadow: inset 1px 1px 0 white, 2px 2px 0 var(--violet); color: var(--violet); cursor: pointer; font: 500 20px/1.25 var(--text-font); }
.project-open:hover { background: var(--salmon); }
.project-open:active { box-shadow: inset 2px 2px 0 rgb(70 66 94 / 35%); }
.project-open:focus-visible { outline-offset: 3px; }
.project-summary { margin: 16px 0 0; border: 1px solid var(--violet); border-radius: var(--control-radius); background: var(--highlight); }
.project-summary > div { display: grid; grid-template-columns: minmax(0, 136px) minmax(0, 1fr); gap: 10px 14px; padding: 10px 12px; }
.project-summary > div + div { border-top: 1px solid rgb(70 66 94 / 25%); }
.project-summary dt { font: 400 16px/1.25 var(--title-font); }
.project-summary dd { margin: 0; font-size: 16px; line-height: 1.5; }
.project-contributions { display: grid; gap: 7px; margin: 0; padding-inline-start: 17px; }
.project-contributions strong { display: block; font: 400 16px/1.25 var(--title-font); }
.project-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.project-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.project-media figure { min-width: 0; margin: 0; }
.project-media img { display: block; width: 100%; height: auto; object-fit: contain; background: var(--ink); border: 1px solid var(--violet); border-radius: var(--control-radius); }
.project-media figcaption { margin-top: 6px; font-size: 14px; line-height: 1.35; }
.project-media-single { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.project-clip { margin: 18px 0 0; }
.project-clip figcaption { margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.clip-player { border: 1px solid var(--violet); border-radius: var(--control-radius); background: var(--ink); }
.clip-media { position: relative; }
.clip-player video { display: block; width: 100%; height: auto; max-height: min(60svh, 480px); object-fit: contain; background: var(--ink); }
.clip-media .clip-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; pointer-events: none; }
.clip-media .clip-poster[hidden] { display: none; }
.clip-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; padding: 8px; border-top: 1px solid var(--violet); background: var(--cream); }
.clip-transport { display: grid; flex: 1 1 250px; grid-template-columns: auto minmax(36px, 1fr) auto; align-items: center; gap: 7px; min-width: 0; }
.clip-options { display: flex; flex-wrap: wrap; gap: 7px; }
.clip-message { flex-basis: 100%; margin: 0; font-size: 15px; }
.clip-controls[hidden], .clip-controls [hidden] { display: none; }
.clip-controls button { min-height: 40px; padding: 5px 8px; border: 1px solid var(--violet); border-radius: var(--control-radius); background: var(--highlight); color: var(--ink); box-shadow: inset 1px 1px 0 white, 2px 2px 0 var(--violet); font: 600 16px/1.2 var(--text-font); cursor: pointer; }
.clip-controls .clip-play { min-width: 100px; background: var(--salmon); }
.clip-controls button:hover { background: var(--salmon); }
.clip-controls button:active { box-shadow: inset 2px 2px 0 rgb(70 66 94 / 35%); }
.clip-controls button:focus-visible, .clip-seek:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.clip-seek { width: 100%; min-width: 0; height: 34px; margin: 0; accent-color: var(--petrol); cursor: pointer; }
.clip-seek:disabled { cursor: default; }
.clip-time { white-space: nowrap; font: 600 12px/1.2 var(--text-font); font-variant-numeric: tabular-nums; }
.clip-player:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; }
.clip-player:fullscreen .clip-media { flex: 1; min-height: 0; }
.clip-player:fullscreen video { height: 100%; max-height: none; }
.hero-artwork { position: relative; width: 100%; aspect-ratio: 1322 / 902; min-width: 0; min-height: 438px; margin: 0; overflow: hidden; background: var(--ink); border: 2px solid var(--violet); border-radius: var(--control-radius); }
.hero-artwork img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
/* Frame the quadruped within the in-game shot. */
.hero-artwork[data-preview="mars"] img { transform: translate(6%, 18%) scale(3.6); }
.projects-status { margin: 0 4px 3px; font-size: 16px; }

.gallery-window > .window-titlebar { background: var(--petrol); color: var(--cream); }
.gallery-content { padding: var(--section-inset); }
.gallery-content h2 { margin-bottom: 22px; }
.gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 22px; padding: 10px 12px; background: var(--highlight); border: 1px solid var(--violet); border-radius: var(--control-radius); }
#gallery-collection-label { font: 600 21px/1.1 var(--text-font); }
.gallery-collection-picker { position: relative; flex: 0 1 340px; min-width: 0; max-width: 100%; }
.gallery-filter-trigger {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 13px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  border-radius: var(--control-radius);
  background: var(--salmon);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink), inset 1px 1px 0 var(--highlight);
  font: 600 19px/1.15 var(--text-font);
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.gallery-filter-trigger svg { width: 20px; height: 19px; }
.gallery-filter-trigger:disabled { cursor: default; }
.gallery-filter-trigger[aria-expanded="true"], .gallery-filter-trigger:active { box-shadow: inset 2px 2px 0 rgb(48 45 67 / 30%); }
.gallery-filter-arrow { width: 9px; height: 9px; justify-self: center; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
[aria-expanded="true"] > .gallery-filter-arrow { transform: translateY(2px) rotate(225deg); }
.gallery-collection-menu {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(100% + 5px);
  inset-inline: 0;
  max-height: min(464px, var(--gallery-menu-space, 60svh));
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 2px solid var(--ink);
  border-radius: var(--control-radius);
  background: var(--highlight);
  box-shadow: 4px 4px 0 rgb(48 45 67 / 40%);
}
.gallery-collection-menu.gallery-menu-above { inset-block: auto calc(100% + 5px); }
.gallery-collection-categories { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgb(70 66 94 / 30%); }
.gallery-collection-option {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: 400 15px/1.25 var(--text-font);
  text-align: start;
  cursor: pointer;
  scroll-margin: 3px;
}
.gallery-collection-option:hover { background: var(--cream); }
.gallery-collection-option[aria-pressed="true"] { background: var(--salmon); border-color: var(--violet); font-weight: 700; }
.gallery-collection-option:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.gallery-collection-name { overflow-wrap: anywhere; }
.gallery-collection-count { font-variant-numeric: tabular-nums; }
.gallery-collection-check { visibility: hidden; font-weight: 700; }
[aria-pressed="true"] > .gallery-collection-check { visibility: visible; }
#gallery-status { margin-left: auto; font-size: 14px; }
#gallery-error a { margin-block-start: 6px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gallery-piece { min-width: 0; }
.gallery-card { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 5px; border: 1px solid var(--violet); border-radius: 6px; background: var(--cream); color: var(--ink); cursor: pointer; font: inherit; text-align: start; text-decoration: none; }
.gallery-card:hover { box-shadow: 2px 2px 0 var(--violet); }
.gallery-preview { aspect-ratio: 4 / 3; background: var(--ink); border: 1px solid var(--violet); border-radius: var(--control-radius); overflow: hidden; }
.gallery-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-caption { display: flex; flex-direction: column; flex: 1; gap: 5px; min-width: 0; padding: 10px 7px 4px; overflow-wrap: anywhere; }
.gallery-category { color: var(--violet); font: 500 16px/1.2 var(--text-font); }
.gallery-piece-title { margin-bottom: 6px; font: 400 16px/1.3 var(--title-font); }
.gallery-credit { margin-bottom: 7px; color: var(--violet); font-size: 14px; line-height: 1.4; }

@media (max-width: 1099px) {
  :root { --section-inset: 24px; }
  .projects-section, .gallery-section { padding-inline: 24px; }
  .project-overview { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 13px; }
  .project-identity h3 { font-size: 22px; }
}

@media (max-width: 999px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 799px) {
  :root { --section-inset: 22px; --action-font-size: 20px; }
  .projects-section, .gallery-section { max-width: 598px; padding-top: 24px; padding-bottom: 24px; }
  .gallery-toolbar {
    position: sticky;
    top: var(--site-header-height);
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(32%, 7rem));
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px 8px;
    box-shadow: 0 2px 0 rgb(48 45 67 / 16%);
  }
  #gallery-collection-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .gallery-collection-picker { position: static; }
  .gallery-filter-trigger { padding-block: 4px; }
  .gallery-filter-trigger:focus-visible { outline-offset: 2px; }
  .gallery-collection-menu { inset-inline: 8px; }
  #gallery-status { margin-left: 0; font-size: 13px; line-height: 1.2; text-align: end; }
  main .gallery-card { scroll-margin-block-start: calc(var(--site-header-height) + var(--gallery-toolbar-height, 56px) + 12px); }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .projects-heading { margin-bottom: 22px; }
  .projects-heading p { font-size: 17px; }
  .project-overview { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .project-identity { padding: 20px 9px 13px; }
  .project-identity h3 { font-size: 24px; }
  .project-role { margin-top: 9px; }
  .hero-projects-link { display: flex; }
  .hero-actions { flex-direction: column; }
}

@media (max-width: 1099px) {
  .hero-artwork { grid-row: 1; min-height: 0; }
}

@media (max-width: 599px) {
  .projects-section { padding-inline: 12px; }
  .projects-content { padding-inline: 8px; }
  .project-card { padding: 6px; }
  .project-media { grid-template-columns: minmax(0, 1fr); }
  .gallery-content { padding-inline: 12px; }
  .gallery-filter-trigger { font-size: 18px; }
  .gallery-collection-option { min-height: 44px; }
  .gallery-grid { gap: 10px; }
  .gallery-card { padding: 4px; }
  .gallery-preview { aspect-ratio: 1; }
  .gallery-caption { padding-inline: 4px; }
  .gallery-piece-title { font-size: 16px; }
  .gallery-credit { font-size: 13px; }
}

@media (max-width: 374px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 799px) {
  :root { --site-header-height: 72px; }
  .header-inner { gap: 8px; }
  .site-header .header-nav-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    min-height: 44px;
    margin-inline-start: auto;
    padding: 0;
    cursor: pointer;
  }
  .header-nav-toggle svg { width: 24px; height: 24px; }
  .header-nav-toggle[aria-expanded="true"] { background: var(--salmon); box-shadow: inset 2px 2px 0 var(--violet); }
  .header-nav-toggle[aria-expanded="false"] + .header-nav { display: none; }
  .header-nav {
    position: absolute;
    inset-block-start: calc(100% + 2px);
    inset-inline-end: 10px;
    width: min(240px, calc(100% - 20px));
    max-height: calc(100dvh - var(--site-header-height) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 10px;
    background: var(--cream);
    border: 2px solid var(--ink);
    border-radius: var(--window-radius);
    box-shadow: var(--window-shadow);
  }
  .header-nav .retro-link:focus-visible { outline-offset: 2px; }
}

@media (max-width: 370px) {
  :root { --section-inset: 18px; }
  .projects-section, .gallery-section { padding-inline: 14px; }
  .project-description { padding-inline: 9px; }
  .projects-status { font-size: 14px; }
}

.about-section { width: 100%; max-width: 1316px; margin-inline: auto; padding: 32px 40px; }
.about-section:focus { outline: none; }
.about-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 410px); grid-template-areas: "heading specialties" "copy specialties" "experience specialties" "availability specialties" "examples examples"; gap: 22px 48px; align-items: start; padding: 36px var(--section-inset); }
.about-heading { grid-area: heading; }
.profile-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 500 18px/1.2 var(--text-font); }
.profile-kicker::before { content: ""; width: 22px; height: 4px; background: var(--coral); }
.about-heading h2 { font: 400 48px/1.1 var(--title-font); font-synthesis: none; }
.about-copy { grid-area: copy; }
.about-experience { grid-area: experience; }
.about-specialties { grid-area: specialties; display: grid; gap: 20px; min-width: 0; }
.about-availability { grid-area: availability; padding: 12px 16px; border: 1px solid var(--violet); border-inline-start: 5px solid var(--coral); border-radius: var(--control-radius); background: var(--highlight); }
:is(.about-copy, .about-experience, .about-workflow) { max-width: 70ch; min-width: 0; }
:is(.about-copy, .about-experience, .about-workflow, .about-availability) p { font: 400 17px/1.55 var(--text-font); }
:is(.about-copy, .about-workflow) p + p { margin-top: 8px; }
:is(.about-experience, .about-workflow, .about-availability, .about-examples) h3 { margin: 0 0 10px; font: 400 24px/1.2 var(--title-font); }
.about-role { display: grid; gap: 4px; padding-block: 10px; border-top: 1px solid rgb(70 66 94 / 25%); }
.about-role h4 { margin: 0; font: 400 16px/1.25 var(--title-font); }
.about-role .about-period { font-size: 14px; }
.about-tools { min-width: 0; padding: 22px; border: 2px solid var(--ink); border-radius: 6px; color: var(--cream); background: var(--violet); box-shadow: inset 2px 2px 0 rgb(252 235 218 / 18%), 4px 5px 0 rgb(70 66 94 / 20%); }
.about-tools h3 { margin: 0 0 14px; font: 400 24px/1.2 var(--title-font); }
.about-tool-group + .about-tool-group { margin-top: 13px; padding-top: 13px; border-top: 1px solid rgb(252 235 218 / 35%); }
.about-tool-group h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 400 16px/1.25 var(--title-font); }
.about-tool-group svg { width: 24px; height: 24px; color: var(--turquoise); }
.about-tool-group ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.about-tool-group li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  inline-size: max-content;
  max-inline-size: 100%;
  min-inline-size: 0;
  padding: 4px 7px 4px 4px;
  border: 1px solid rgb(252 235 218 / 42%);
  border-radius: var(--control-radius);
  font: 400 15px/1.35 var(--text-font);
}
.about-tool-group li > span:last-child { overflow-wrap: anywhere; word-break: normal; }
.software-mark { display: grid; place-items: center; min-inline-size: 26px; min-block-size: 26px; padding-inline: 1px; border: 1px solid currentColor; border-radius: 3px; color: var(--software-accent, var(--cream)); background: var(--ink); font: 700 16px/1 var(--text-font); white-space: nowrap; }
.software-mark-blender { --software-accent: #ffc17d; }
.software-mark-painter { --software-accent: #c7f58b; }
.software-mark-toolbag { --software-accent: #ffe3a1; }
.software-mark-illustrator { --software-accent: #ffae67; }
.software-mark-photoshop { --software-accent: #83d9ff; }
.software-mark-krita { --software-accent: #f6afe8; }
.software-mark-solidworks { --software-accent: var(--salmon); }
.software-mark-godot { --software-accent: #b0c3ff; }
.about-examples { grid-area: examples; min-width: 0; }
.about-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-example { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--violet); border-top: 3px solid var(--turquoise); border-radius: var(--control-radius); background: var(--highlight); }
.about-example h4 { margin: 0; font: 400 24px/1.2 var(--title-font); overflow-wrap: anywhere; }
.about-example .about-example-action { align-self: flex-start; margin-top: auto; min-height: 44px; gap: 10px; padding: 7px 10px; font-size: 17px; }
.about-preview { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--violet); border-radius: var(--control-radius); background: var(--ink); }
.about-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1099px) {
  .about-section { padding-inline: 24px; }
  .about-content { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 22px 32px; }
  .about-tools { padding: 21px; }
}

@media (max-width: 799px) {
  .about-section { max-width: 598px; padding-top: 24px; padding-bottom: 24px; }
  .about-content { gap: 21px; padding-block: 24px; }
  .about-heading h2 { font-size: 32px; }
  .about-tools { padding: 16px; }
  .about-example-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 999px) {
  .about-content { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "copy" "experience" "specialties" "availability" "examples"; }
}

@media (max-width: 599px) {
  .about-section { padding-inline: 14px; }
  .about-content { padding-inline: 14px; }
}

.contact-section { width: 100%; max-width: 1316px; margin-inline: auto; padding: 32px 40px 64px; }
.contact-section:focus { outline: none; }
.contact-content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 42px; align-items: center; padding: var(--section-inset) var(--section-inset) 16px; }
.contact-primary { min-width: 0; }
.contact-invitation { max-width: 43ch; margin-top: 18px; font-size: 19px; line-height: 1.6; }
.email-card { display: flex; align-items: center; gap: 20px; margin-top: 28px; padding: 20px; border: 2px solid var(--violet); background: var(--highlight); box-shadow: inset 2px 2px 0 white, 3px 3px 0 rgb(70 66 94 / 25%); }
.email-card > div { flex: 1; min-width: 0; }
.email-icon { width: 46px; height: 36px; }
.email-label { margin-bottom: 7px; font: 500 23px/1.2 var(--text-font); }
.email-address { font-size: clamp(18px, 1.75vw, 25px); line-height: 1.4; letter-spacing: -.4px; overflow-wrap: anywhere; user-select: text; }
.contact-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.contact-actions .retro-link { text-align: center; }
.email-card .email-copy { display: grid; place-items: center; flex: 0 0 44px; min-height: 44px; padding: 0; cursor: pointer; }
.email-copy svg { width: 24px; height: 24px; }
.email-copy[aria-disabled="true"] { cursor: progress; opacity: .7; }
.email-help { margin-top: 12px; font-size: 14px; line-height: 1.4; }
.copy-feedback { min-height: 3em; margin-top: 12px; font-size: 15px; line-height: 1.5; }
.profiles-window { align-self: center; padding: 4px; box-shadow: inset 2px 2px 0 var(--highlight), inset -2px -2px 0 #b1a28c, 4px 5px 0 rgb(48 45 67 / 25%); }
.profiles-window .window-titlebar { padding-inline: 12px; }
.profiles-window .window-filename { margin: 0; }
.professional-profiles { display: grid; gap: 15px; padding: 22px 17px; margin: 0; list-style: none; }
.professional-profiles .retro-link { display: flex; justify-content: flex-start; gap: 15px; min-height: 76px; padding: 12px 14px; font-size: 25px; overflow-wrap: anywhere; }
.profile-monogram { display: grid; place-items: center; width: 39px; height: 39px; flex-shrink: 0; background: var(--violet); color: var(--cream); font: 500 22px/1 var(--text-font); }
.professional-profiles li:nth-child(2) .profile-monogram { background: var(--petrol); color: var(--highlight); }
.professional-profiles li:nth-child(3) .profile-monogram { background: var(--salmon); color: var(--violet); }
.profile-handle { display: block; margin-top: 5px; font: 400 14px/1.3 var(--text-font); }
.profile-arrow { margin-left: auto; }
.contact-status { margin: 0 4px 3px; }

@media (max-width: 1099px) {
  .contact-section { padding-inline: 24px; }
  .contact-content { gap: 28px; }
  .email-card { gap: 13px; padding: 17px; }
  .email-icon { width: 33px; }
  .professional-profiles { padding-inline: 12px; }
  .professional-profiles .retro-link { padding-inline: 11px; gap: 10px; }
}

@media (max-width: 999px) {
  .contact-content { grid-template-columns: minmax(0, 1fr); padding-bottom: 26px; gap: 8px; }
  .profiles-window { width: 100%; max-width: 510px; }
  .contact-invitation { max-width: 55ch; }
  .email-card { max-width: 590px; }
}

@media (max-width: 799px) {
  .contact-section { max-width: 598px; padding-top: 24px; padding-bottom: 48px; }
  .contact-invitation { font-size: 17px; }
  .email-card { gap: 6px; padding: 17px 8px; }
  .email-icon { display: none; }
  .email-address { font-size: 17px; }
  .contact-actions { flex-direction: column; }
  .contact-actions .retro-link { justify-content: center; min-height: 49px; }
  .professional-profiles { padding: 18px 12px; }
  .professional-profiles .retro-link { font-size: 23px; }
  .contact-status { font-size: 14px; }
}

@media (max-width: 440px) {
  .header-inner { padding-inline: 12px; }
  .language-switch { padding-inline-start: 9px; }
}

@media (max-width: 320px) {
  .header-inner { padding-inline: 8px; }
  .wordmark { font-size: 25px; }
  .language-switch button { width: 34px; }
}

@media (max-width: 370px) {
  .contact-section { padding-inline: 10px; }
  .contact-content { padding-inline: 10px; }
  .email-address { font-size: clamp(16px, 5vw, 17px); }
  .contact-actions .retro-link > span[aria-hidden="true"] { display: none; }
  .professional-profiles { padding-inline: 9px; }
  .professional-profiles .retro-link { gap: 9px; padding-inline: 9px; }
  .profile-monogram { width: 32px; height: 34px; font-size: 19px; }
  .profiles-window .window-filename { font-size: 19px; }
  .profiles-window .titlebar-lines { display: none; }
}

/* Donovan's requested refinements: restrained curves, color and original interface doodles. */
.window { border-radius: var(--window-radius); }
.window-titlebar, .hello-content, .window-status,
.retro-link, .language-switch button,
.profile-monogram { border-radius: var(--control-radius); }
.project-card, .email-card { border-radius: 6px; }
.hello-window > .window-titlebar { background: var(--petrol); color: var(--highlight); }
.paint-infobar { background: var(--salmon); border-radius: 4px 4px 0 0; }
.about-window > .window-titlebar { background: var(--salmon); color: var(--ink); }
.contact-window > .window-titlebar { background: var(--coral); color: var(--ink); }
.projects-doodle { pointer-events: none; user-select: none; }
.projects-heading { position: relative; padding-right: 120px; }
.projects-doodle { position: absolute; top: 0; right: 10px; width: 98px; height: 74px; color: var(--ink); }
.project-card:hover { box-shadow: 3px 3px 0 rgb(70 66 94 / 25%); }
.projects-status { background: rgb(0 185 190 / 14%); }
.email-card { border-left: 6px solid var(--turquoise); }
.retro-link-secondary:hover { background: var(--turquoise); }
.projects-doodle { color: var(--coral); }

/* Native modal keeps the surrounding page inert and its content out of the grid. */
body.dialog-open { overflow: hidden; }
:is(.project-dialog, .gallery-viewer) { position: fixed; inset: 0; max-width: none; max-height: min(860px, calc(100dvh - 40px)); margin: auto; color: var(--violet); overflow: hidden; }
:is(.project-dialog, .gallery-viewer)[open] { display: flex; flex-direction: column; }
:is(.project-dialog, .gallery-viewer)::backdrop { background: rgb(29 34 50 / 72%); }
:is(.project-dialog, .gallery-viewer) .window-titlebar { flex-shrink: 0; gap: 10px; padding: 5px 8px 5px 12px; }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; gap: 13px; flex-shrink: 0; margin-left: auto; min-height: 44px; padding: 7px 12px; border: 2px solid var(--ink); border-radius: var(--control-radius); background: var(--salmon); color: var(--ink); box-shadow: inset 2px 2px 0 var(--highlight), inset -2px -2px 0 rgb(70 66 94 / 30%); cursor: pointer; font: 500 20px/1.2 var(--text-font); }
.dialog-close:hover { background: var(--coral); }
.dialog-close:active { box-shadow: inset 2px 2px 0 rgb(70 66 94 / 50%); }
.dialog-close:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }
.dialog-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--section-inset); }
.dialog-scroll:focus-visible { outline: 2px dashed var(--violet); outline-offset: -7px; }
.dialog-project-title { font: 400 clamp(24px, 4vw, 32px)/1.2 var(--title-font); overflow-wrap: anywhere; }
.project-dialog { --project-dialog-width: 900px; width: min(var(--project-dialog-width), calc(100% - 40px)); }
.project-dialog:has(.project-media-single) { --project-dialog-width: 760px; }
.project-dialog .dialog-scroll { padding: clamp(14px, 2vw, 26px); }
.gallery-viewer {
  --viewer-panel-width: clamp(240px, 24vw, 292px);
  --viewer-art-height: min(68dvh, 610px);
  --viewer-art-width: min(var(--viewer-natural-width, 600px), calc(var(--viewer-art-height) * var(--viewer-ratio, 1)));
  width: min(calc(var(--viewer-art-width) + var(--viewer-panel-width) + 60px), 1120px, calc(100% - 40px));
}
.gallery-viewer .window-titlebar { background: var(--petrol); color: var(--cream); }
.gallery-viewer-content { display: grid; grid-template-columns: minmax(0, 1fr) var(--viewer-panel-width); align-items: center; gap: 16px; padding: 14px; }
.gallery-viewer-art { display: grid; justify-self: center; min-width: 0; max-width: 100%; place-items: center; border: 1px solid var(--violet); border-radius: var(--control-radius); background: var(--ink); }
.gallery-viewer-art img { display: block; width: auto; height: auto; max-width: 100%; max-height: var(--viewer-art-height); object-fit: contain; }
.gallery-viewer-info { display: grid; min-width: 0; gap: 11px; overflow-wrap: anywhere; }
.gallery-viewer-info h2 { font: 400 24px/1.2 var(--title-font); }
.gallery-viewer-info p, #gallery-viewer-credits { font-size: 15px; line-height: 1.45; }
#gallery-viewer-credits { margin: 0; }
#gallery-viewer-credits > div { padding: 6px 0; border-top: 1px solid rgb(70 66 94 / 25%); }
#gallery-viewer-credits dt { font-weight: 700; }
#gallery-viewer-credits dd { margin: 0; }
.gallery-viewer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.project-dialog .retro-link, .gallery-viewer-actions .retro-link, #gallery-error .retro-link { justify-content: flex-start; gap: 8px; min-height: 44px; max-width: 100%; padding: 7px 10px; font-size: 17px; text-align: start; }
.gallery-viewer-actions [hidden] { display: none; }

@media (max-width: 799px) {
  :is(.project-dialog, .gallery-viewer) .window-filename { font-size: 18px; }
  :is(.project-dialog, .gallery-viewer) .title-icon { display: none; }
  .dialog-close { gap: 8px; padding-inline: 9px; font-size: 19px; }
  .gallery-viewer { --viewer-art-height: min(54dvh, 480px); width: min(620px, calc(100% - 12px)); }
  .gallery-viewer-content { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 10px; }
  .gallery-viewer-info { gap: 10px; padding: 0 2px 5px; }
}
@media (max-width: 599px) {
  :is(.project-dialog, .gallery-viewer) { width: calc(100% - 12px); max-height: calc(100dvh - 12px); }
  .project-dialog .dialog-scroll { padding: 12px 10px; }
  .project-summary > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .clip-controls button { min-height: 44px; }
  .projects-heading { padding-right: 0; }
  .projects-doodle { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .retro-link, .project-open, .dialog-close { transition: background-color 120ms ease, translate 120ms ease, box-shadow 120ms ease; }
  .retro-link:hover, .project-open:hover { translate: 0 -1px; }
  .retro-link:active, .project-open:active, .dialog-close:active { translate: 1px 1px; }
  .window-enter { animation: window-enter 180ms ease-out; }
  .window-enter:focus-within { animation: none; }
  :is(.project-dialog, .gallery-viewer)[open] { animation: dialog-enter 160ms ease-out; }
  @keyframes window-enter { from { opacity: .85; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
  @keyframes dialog-enter { from { opacity: .9; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
}

/* Art direction: identity first, an offset canvas and one process study above it. */
.desktop { min-height: 0; padding: 56px 40px 38px; }
.hero { position: relative; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.hello-window { position: relative; z-index: 1; transform: none; }
.hello-content { padding: 32px 30px 28px; }
.greeting { padding-bottom: 22px; }
.identity-intro { margin-bottom: 18px; font: 500 24px/1.15 var(--text-font); }
.identity-name { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.identity-brain { width: clamp(96px, 11vw, 150px); }
.identity-brain img { display: block; width: 100%; height: auto; }
.hello-window h1 { font: 400 clamp(64px, 6vw, 80px)/1 var(--title-font); font-synthesis: none; }
.hello-window .specialty { width: fit-content; margin-top: 0; padding: 2px 0 3px 13px; border-left: 5px solid var(--coral); font-size: 27px; line-height: 1.2; font-weight: 650; letter-spacing: -.6px; }
.hello-window .introduction { margin-top: 22px; font-size: 18px; line-height: 1.55; }
.hello-window .hero-actions { gap: 14px; margin-top: 27px; align-items: center; }
.hero-projects-link { min-height: 57px; min-width: 244px; gap: 13px; padding: 12px 15px; font-size: 24px; }
.hero-projects-link svg { width: 25px; height: 23px; }
.hero-action-arrow { margin-left: auto; }
.hero-contact-link { min-height: 47px; padding: 9px 12px; font-size: 20px; }
.hello-window .availability { margin-top: 26px; }
.paint-window { position: relative; z-index: 1; margin-top: 124px; }
.process-study { position: absolute; top: -14px; right: 35px; width: 260px; margin: 0; padding: 10px 14px 9px; border: 1px solid var(--ink); border-radius: 3px; background: var(--cream); color: var(--violet); box-shadow: 4px 5px 0 rgb(48 45 67 / 28%); transform: rotate(-4deg); pointer-events: none; user-select: none; }
.process-study figcaption { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid rgb(70 66 94 / 25%); font: 500 16px/1.1 var(--text-font); }
.study-registration { color: var(--petrol); }
.process-study > svg { width: 100%; height: 78px; }
.study-caption { display: block; font: 400 11px/1.2 var(--text-font); text-align: right; }
.desktop-note { margin-top: 26px; }

@media (max-width: 1199px) and (min-width: 1100px) {
  .hero { gap: 32px; }
  .hello-content { padding-inline: 24px; }
  .hello-window h1 { font-size: 64px; }
  .hero-projects-link { min-width: 100%; }
}
@media (max-width: 1099px) {
  .desktop { padding: 32px 24px 27px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .paint-window { margin-top: 0; }
  .process-study { display: none; }
  .hello-window h1 { font-size: 64px; }
  .hello-content { padding: 28px 26px 26px; }
}
@media (max-width: 799px) {
  .hello-window h1 { font-size: clamp(40px, 12.3vw, 64px); }
  .hello-content { padding: 25px 25px 24px; }
  .identity-intro { margin-bottom: 20px; font-size: 22px; }
  .identity-name { column-gap: 8px; }
  .identity-brain { width: clamp(58px, 20vw, 118px); }
  .greeting { padding-bottom: 22px; }
  .hello-window .specialty { font-size: 23px; padding-left: 10px; }
  .hello-window .introduction { font-size: 17px; line-height: 1.55; margin-top: 20px; }
  .hello-window .hero-actions { align-items: stretch; margin-top: 23px; gap: 13px; }
  .hero-projects-link { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); min-width: 0; font-size: 23px; min-height: 55px; }
  .hero-projects-link [data-i18n="viewProjects"] { grid-column: 2; text-align: center; }
  .hero-projects-link .hero-action-arrow { grid-column: 3; justify-self: end; }
  .hero-projects-link svg { display: none; }
  .hero-contact-link { min-height: 45px; }
  .hello-window .availability { margin-top: 23px; font-size: 14px; }
}
@media (max-width: 370px) {
  .desktop { padding-inline: 14px; }
  .hello-content { padding-inline: 18px; }
  .hello-window h1 { font-size: clamp(32px, 12.3vw, 45px); }
  .hello-window .specialty { font-size: 21px; }
  .hero-projects-link { font-size: 21px; gap: 10px; padding-inline: 12px; }
  .hero-projects-link svg { width: 21px; }
  .hero-action-arrow { display: none; }
  .about-tools h3 { font-size: 24px; }
}

/* Emergency wrapping for the existing long section heading on very narrow screens. */
@media (max-width: 300px) {
  .projects-heading h2 { overflow-wrap: anywhere; }
}

.project-trailer { display: grid; gap: 10px; width: 100%; max-width: 680px; margin: 20px auto 0; text-align: center; }
.project-trailer h3 { margin: 0; font: 400 24px/1.2 var(--title-font); }
.trailer-poster, .trailer-frame { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--violet); border-radius: var(--control-radius); background: var(--ink); }
.trailer-poster img, .trailer-frame :is(iframe, video) { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.trailer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.project-trailer [hidden] { display: none; }
.trailer-message { font-size: 15px; }
.font-credit { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 9px 14px; }
.font-credit .retro-link { min-height: 44px; padding: 6px 9px; font-size: 13px; }
.font-credit .retro-link:focus-visible { outline-color: var(--highlight); }

