@font-face {
  font-family: "Archivo Black Local";
  src: url("assets/fonts/ArchivoBlack-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #100f29;
  --base: #181637;
  --panel: #24204b;
  --cream: #f3f2f7;
  --muted: #d3d2e6;
  --line: #8d88b8;
  --violet: #7461ed;
  --pink: #ed67c7;
  --mint: #62e9ee;
  --yellow: #d5e791;
  --display-font: "Archivo Black", "Arial Black", "Segoe UI", sans-serif;
  --header-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--base); }

body {
  margin: 0;
  isolation: isolate;
  color: var(--cream);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.site-background {
  --grid-step: 36px;
  --grid-size: var(--grid-step) var(--grid-step);
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(#a9aaff12 1px, transparent 1px) 0 0 / var(--grid-size),
    linear-gradient(90deg, #a9aaff12 1px, transparent 1px) 0 0 / var(--grid-size),
    radial-gradient(ellipse at 4% 99%, #a244eb6b, transparent 38%),
    radial-gradient(ellipse at 85% 12%, #943eee45, transparent 42%),
    radial-gradient(ellipse at 60% 85%, #6646ab36, transparent 57%),
    linear-gradient(108deg, #30205e44, transparent 45%, #41297838),
    var(--base);
}

.site-background::after {
  --light-size: clamp(16rem, 36vw, 28rem);
  --light-left: calc(var(--pointer-x, 0px) - var(--light-size) / 2);
  --light-top: calc(var(--pointer-y, 0px) - var(--light-size) / 2);
  position: absolute;
  top: 0;
  left: 0;
  width: var(--light-size);
  aspect-ratio: 1;
  content: "";
  transform: translate(var(--light-left), var(--light-top));
  background: radial-gradient(circle closest-side, #62e9ee9c 4%, #a4a4ff82 34%, #ed67c768 60%, transparent);
  mask-image: linear-gradient(#000 1px, transparent 1px), linear-gradient(90deg, #000 1px, transparent 1px);
  mask-size: var(--grid-size);
  mask-position: calc(-1 * var(--light-left)) calc(-1 * var(--light-top));
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.site-background.has-grid-light::after { opacity: 1; }

a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; }
[id][tabindex] { scroll-margin-top: calc(var(--actual-header-height, var(--header-height)) + 14px); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

main:focus-visible, section:focus-visible { outline-offset: -5px; }

.shell { width: min(100% - 6rem, 1232px); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 5;
  inset: .6rem auto auto 1rem;
  transform: translateY(-180%);
  padding: .55rem .85rem;
  color: var(--ink);
  background: var(--mint);
  font-weight: 800;
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 4;
  top: 0;
  border-bottom: 1px solid #79649a;
  background: linear-gradient(103deg, #34205a, #201936 41%, #17152c 78%, #30204c);
  box-shadow: 0 4px 18px #110a252e;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
}

.header-inner nav { margin-inline-start: auto; }
.menu-toggle { display: none; }
.menu-toggle[hidden] { display: none; }
.site-header .wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: "Archivo Black Local", "Arial Black", sans-serif;
  font-weight: 400;
}
.site-header .wordmark::before {
  width: 1.35em;
  height: .43em;
  margin-right: .65em;
  transform: skewX(-34deg);
  background: repeating-linear-gradient(90deg, #fff078 0 24%, transparent 24% 37%);
  content: "";
}
.header-inner nav a { position: relative; }
.header-inner nav a[aria-current="location"] { color: #fff078; }
.header-inner nav a[aria-current="location"]::after {
  position: absolute;
  inset: auto 12% 0;
  height: 3px;
  background: currentColor;
  content: "";
}
.language-switch:not([hidden]) {
  display: inline-flex;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: .2rem;
  background: #1c1530;
}
.language-switch button {
  min-width: 42px;
  min-height: 38px;
  padding: 0 .38rem;
  border: 0;
  border-radius: .1rem;
  background: transparent;
  color: var(--muted);
  font: 800 .84rem/1 "IBM Plex Mono", Consolas, monospace;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { background: var(--mint); color: var(--ink); }
.language-switch button[aria-pressed="false"]:hover { color: var(--mint); }

.wordmark {
  font-family: var(--display-font);
  font-weight: 950;
  font-size: 1.22rem;
  font-style: italic;
  letter-spacing: -.045em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark span { color: var(--mint); margin-inline: .28em; font-size: .72em; }

nav { display: flex; flex-wrap: wrap; gap: .3rem clamp(.15rem, 2vw, 1.8rem); }
nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .36em;
  padding-inline: .6rem;
  border-radius: .35rem;
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}
nav a:hover { color: var(--mint); background: #34204e; }
nav a span { color: var(--mint); }

.hero {
  display: grid;
  align-items: center;
  min-height: min(740px, calc(100svh - var(--actual-header-height, var(--header-height))));
  padding-block: clamp(2.8rem, 7vw, 7.3rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.display {
  font-family: var(--display-font);
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.065em;
  line-height: .96;
  color: var(--cream);
}

.hero-title {
  width: fit-content;
  font-family: "Archivo Black Local", "Arial Black", sans-serif;
  font-weight: 400;
  position: relative;
  padding-right: .13em;
  padding-bottom: .14em;
  font-size: clamp(4.6rem, 9.45vw, 9.1rem);
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  text-shadow: -3px 5px var(--ink), -6px 9px var(--pink), -9px 13px var(--ink);
}

.hero-title span { display: block; }

.hero-title::after {
  position: absolute;
  width: 70%;
  height: .065em;
  min-height: 4px;
  bottom: 0;
  left: .12em;
  border-radius: 100% 35% 60% 35%;
  background: var(--mint);
  transform: rotate(-3deg);
  content: "";
}

.specialty {
  margin-top: 1.4rem;
  color: var(--cream);
  font-size: clamp(1rem, 1.65vw, 1.32rem);
  font-weight: 800;
  line-height: 1.3;
}

.intro { margin-top: .65rem; max-width: 43ch; color: var(--muted); }

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  max-width: 100%;
  min-height: 48px;
  margin-top: 1.25rem;
  padding: .55rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 12px 4px 12px 4px;
  box-shadow: 3px 4px 0 var(--pink), 5px 6px 0 var(--ink);
  color: var(--ink);
  background: var(--mint);
  font-weight: 850;
  text-decoration: none;
  transition: translate 140ms ease, background-color 140ms ease;
}

.action:hover { translate: 0 -2px; background: #8af9eb; }
.action:active { translate: 0 2px; }

.action.action-comic {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: 1.15em minmax(0, 1fr) 1.15em;
  align-items: center;
  gap: .35em;
  width: min(96%, 22rem);
  min-height: 3.6rem;
  margin: clamp(1.4rem, 2.3vw, 2.15rem) 0 1.4rem;
  padding: .85em 1.25em;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font: italic 400 clamp(1rem, 1.65vw, 1.4rem)/1.2 "Archivo Black Local", "Arial Black", sans-serif;
  letter-spacing: -.035em;
  text-align: center;
}
.action-comic::before, .action-comic::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.action-comic::before {
  z-index: -2;
  inset: 0 1rem;
  border: 2px solid #f17acb;
  transform: translate(8px, 10px) skewX(-21deg);
}
.action-comic::after {
  z-index: -1;
  inset: 0;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  background: linear-gradient(115deg, #fff392, #fff078 65%, #f5e361);
}
.comic-label { grid-column: 2; }
.comic-arrow { grid-column: 3; width: 1.15em; height: 1.15em; }
.comic-accent {
  position: absolute;
  left: 10%;
  bottom: -9px;
  width: 20%;
  height: 3px;
  background: var(--mint);
  transform: skewX(-21deg);
  pointer-events: none;
}
.action.action-comic:is(:hover, :focus-visible) { background: transparent; }
.action-comic:is(:hover, :focus-visible)::after { background: #fff6a6; }
.action.action-comic:focus-visible { outline-color: #79f3f4; outline-offset: .6rem; }
@media (prefers-reduced-motion: no-preference) {
  .action-comic::before, .comic-arrow { transition: transform 180ms ease-out; }
  .action-comic:is(:hover, :focus-visible)::before { transform: translate(11px, 13px) skewX(-21deg); }
  .action-comic:is(:hover, :focus-visible) .comic-arrow { transform: translateX(3px); }
}
@media (forced-colors: active) {
  .action.action-comic { border: 2px solid LinkText; background: Canvas; color: LinkText; }
  .action-comic::before, .action-comic::after, .comic-accent { display: none; }
}

.hero-scene { position: relative; min-width: 0; }

.window {
  --window-accent: var(--violet);
  border: 2px solid var(--cream);
  border-radius: 1.15rem;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 5px 6px 0 var(--pink), 9px 10px 0 var(--ink);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.2rem;
  padding: .32rem .85rem;
  border-bottom: 2px solid var(--ink);
  background: var(--window-accent);
  color: var(--ink);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: .8rem;
  font-weight: bold;
}

.window-dots, .window-dots::before, .window-dots::after {
  width: .68rem;
  height: .68rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.window-dots { position: relative; display: inline-block; margin-right: 1.7rem; background: var(--yellow); }
.window-dots::before, .window-dots::after { position: absolute; top: -1.5px; content: ""; }
.window-dots::before { left: .74rem; background: var(--pink); }
.window-dots::after { left: 1.54rem; background: var(--mint); }

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 1.5;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 49%, #6c56bb, transparent 65%),
    linear-gradient(145deg, #29245c, #403278 55%, #202040);
}

.art-ring {
  width: 53%;
  aspect-ratio: 1;
  border: 1px dashed #fedaffc9;
  border-radius: 50%;
  box-shadow: 0 0 0 17px #fedaff18, inset 0 0 0 17px #fedaff18;
}

.hero-avatar {
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--cream);
  border-radius: 24%;
  box-shadow: 5px 6px var(--pink), 8px 9px var(--ink);
  transform: rotate(-5deg);
}

.art-cross {
  position: absolute;
  color: var(--mint);
  font: 800 clamp(1rem, 3vw, 2.2rem)/1 Consolas, monospace;
}
.art-cross-left { top: 20%; left: 13%; }
.art-cross-right { bottom: 16%; right: 14%; }
.art-rays {
  position: absolute;
  bottom: 17%;
  left: 11%;
  width: 16%;
  height: 8px;
  background: repeating-linear-gradient(112deg, var(--mint) 0 6px, transparent 6px 12px);
  transform: rotate(-12deg);
}

.hero-cursor {
  position: absolute;
  right: 12%;
  bottom: 12%;
  width: 11%;
  height: auto;
  transform: rotate(35deg);
  filter: drop-shadow(3px 4px 0 var(--ink));
}
.hero-console {
  position: absolute;
  z-index: 1;
  bottom: -1.5rem;
  left: -1rem;
  width: clamp(4.5rem, 11vw, 8.5rem);
  height: auto;
  transform: rotate(-12deg);
  pointer-events: none;
  filter: drop-shadow(3px 4px 0 var(--ink));
}
.hero-console > img { width: 100%; height: auto; }

.sticker, .checker { position: absolute; pointer-events: none; }
.sparkle {
  top: .05em;
  right: -.2em;
  color: var(--pink);
  font: 5.6rem/.8 Georgia, serif;
  -webkit-text-stroke: 2px var(--cream);
  text-shadow: 3px 4px var(--ink);
  transform: rotate(10deg);
}

.checker {
  top: -.7rem;
  right: 3rem;
  width: 6.4rem;
  height: 1.2rem;
  background: repeating-conic-gradient(var(--mint) 0% 25%, var(--ink) 0% 50%) 0 0 / 1.2rem 1.2rem;
  transform: rotate(-10deg) skew(-21deg);
}

.orbit {
  right: .5rem;
  bottom: -.75rem;
  width: 8rem;
  height: 2rem;
  transform: rotate(-19deg);
  border: .25rem solid var(--pink);
  border-left-width: .65rem;
  border-right-width: .65rem;
  border-radius: 50%;
  filter: drop-shadow(2px 3px 0 var(--ink));
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }

.about {
  --profile-cyan: #79f3f4;
  --profile-rule: #b9a0e04d;
}
.about-intro { max-width: 70rem; margin-inline: auto; }
.portfolio-title, .about-heading {
  font-family: "Archivo Black Local", "Arial Black", sans-serif;
  font-weight: 400;
  line-height: 1.05;
}
.portfolio-title {
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(2.55rem, 6.8vw, 6.35rem);
  letter-spacing: -.06em;
  text-shadow: .025em .032em #79f3f4;
}
.profile-window { --window-accent: #ae91ed; margin-top: clamp(1.6rem, 3vw, 2.7rem); }
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3.75rem);
  padding: clamp(1.25rem, 3.8vw, 3.5rem);
  background: radial-gradient(ellipse at 92% 38%, #483368 0, transparent 57%),
    linear-gradient(115deg, #211b38, #19172f);
  box-shadow: 0 5px 0 #100e2480;
}
.about-narrative {
  max-width: 51ch;
  font-size: clamp(1.1rem, 1rem + .38vw, 1.35rem);
  color: var(--cream);
  line-height: 1.65;
  text-wrap: pretty;
}
.about-narrative p:first-child {
  font-size: 1.18em;
  font-weight: 650;
  line-height: 1.45;
}
.about-narrative p + p { margin-top: 1em; }
.about-character {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 19rem;
  margin: 0;
  justify-self: center;
}
.about-character::before {
  position: absolute;
  z-index: -1;
  inset: 12% 2% 13%;
  border: 1px solid #b999f7;
  background: linear-gradient(125deg, #68518e, #493062);
  transform: skewX(-12deg);
  box-shadow: 4px 4px #79f3f44a;
  content: "";
}
.about-character img { display: block; width: 91%; height: auto; margin-inline: auto; }
.about-character figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding-top: .55rem;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}
.about-character figcaption strong { font-family: "Archivo Black Local", sans-serif; font-weight: 400; }
.about-character figcaption span { color: var(--profile-cyan); }
.about.shell { width: min(calc(100% - clamp(1.5rem, 6vw, 6rem)), 84rem); }
.about-details {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(.8rem, 2vw, 1.5rem);
  margin: clamp(2.6rem, 6vw, 5rem) auto 0;
}
.about-heading {
  margin: 0;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--profile-rule);
  color: var(--detail-accent);
  font-size: clamp(1.65rem, 2.7vw, 2.4rem);
  letter-spacing: -.045em;
}
.about-heading::before {
  display: inline-block;
  width: .65em;
  height: .35em;
  margin-inline-end: .42em;
  vertical-align: .13em;
  transform: skewX(-32deg);
  background: repeating-linear-gradient(90deg, var(--detail-accent) 0 40%, transparent 40% 60%);
  content: "";
}
.about-details > .detail {
  --detail-accent: var(--profile-cyan);
  position: relative;
  min-width: 0;
  padding: clamp(1.15rem, 2.5vw, 2.4rem);
  font-size: clamp(1.08rem, 1rem + .25vw, 1.25rem);
  border: 1px solid #736094;
  border-radius: .3rem 1.15rem .3rem .3rem;
  background: linear-gradient(135deg, #32254e, #19172f 68%);
  box-shadow: 0 4px 0 #100e2470;
}
.about-details > .detail::before {
  position: absolute;
  top: -1px;
  left: 1.3rem;
  width: 2.8rem;
  height: 3px;
  background: var(--detail-accent);
  transform: skewX(-30deg);
  transform-origin: left;
  content: "";
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-details > .detail::before { transition: transform 220ms ease-out; }
  .about-details > .detail:hover::before { transform: skewX(-30deg) scaleX(1.5); }
}
.about-details > .about-background { --detail-accent: #e3abff; }
.about-details > .about-areas-section {
  --detail-accent: #fff078;
  grid-column: 1 / -1;
  display: block;
}
.about-areas-section .about-heading { padding: 0; border: 0; margin-bottom: 1.1rem; text-align: center; }
.about-timeline { list-style: none; margin-top: 1.35rem; padding: 0; }
.about-timeline li + li { margin-top: 1.05rem; }
.about-practice .about-timeline li + li { border-top: 1px solid #aa91d52c; padding-top: .85rem; }
.about-credit { display: flow-root; }
.about-credit img { float: right; width: min(30%, 9.5rem); margin: .1rem 0 .55rem 1rem; border-radius: .25rem; }
.about-background .about-timeline { margin-inline-start: .3rem; border-inline-start: 1px solid #a988ce66; }
.about-background li { position: relative; padding-inline-start: 1.15rem; }
.about-background li::before {
  position: absolute; top: .46em; left: -.24rem;
  width: .4rem; height: .4rem; background: var(--detail-accent);
  transform: rotate(45deg); content: "";
}
.about-timeline strong { display: block; color: #fff; font-size: 1.12em; font-weight: 750; line-height: 1.3; }
.about-timeline span { display: block; max-width: 55ch; margin-top: .35rem; color: var(--cream); line-height: 1.6; }
.about-exhibitions { grid-column: 1 / -1; }
.about-exhibitions .about-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
  gap: 1.25rem 2.5rem;
}
.about-exhibitions .about-timeline li { margin: 0; }
.about-exhibitions .work-link { margin-top: 1.1rem; }
.about-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: clamp(.75rem, 1.3vw, 1.2rem);
  padding: 0;
  list-style: none;
}
.about-areas li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #736094;
  border-radius: .25rem .85rem .25rem .25rem;
  background: #211b35;
}
.about-areas img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 35%; }
.about-areas .area-logo { object-fit: contain; padding: .8rem; background: linear-gradient(135deg, #43294f, #25264d); }
.about-areas li > div { min-width: 0; padding: .85rem 1rem; }
.about-areas strong, .about-areas span { display: block; line-height: 1.4; }
.about-areas span { margin-top: .25rem; font-size: .92rem; color: var(--muted); }
.practice-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--profile-rule);
}
.practice-media video { display: block; width: 100%; height: auto; border-radius: .55rem; }
.practice-media figcaption { margin-top: .5rem; color: var(--muted); font-size: .94rem; }
.practice-studies { list-style: none; }
.practice-studies li + li { margin-top: 1rem; }
.practice-studies p { max-width: 54ch; font-size: 1rem; }
@media (hover: hover) {
  .about-areas li:hover { border-color: var(--profile-cyan); box-shadow: 0 4px 14px #79f3f42b; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-areas li { transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out; }
  .about-areas li:hover { transform: translateY(-.22rem); }
}
@media (max-width: 32rem) {
  .about-areas-section .about-heading {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--profile-rule);
    text-align: left;
  }
  .about-areas { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 54rem) {
  .about-details { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 26rem) {
  .about-credit img { float: none; width: 100%; max-width: 14rem; margin: 0 0 .85rem; }
}

.projects.shell, .contact.shell { width: min(calc(100% - clamp(1.5rem, 6vw, 6rem)), 84rem); }
.projects-heading, .contact > .portfolio-title { margin-bottom: clamp(1.8rem, 4vw, 3.25rem); }
.gallery-frame { container-type: inline-size; }
.profile-window.window, .project-window.window, .project-dialog.window, .contact-window.window {
  border: 1px solid color-mix(in srgb, var(--window-accent) 55%, #665680);
  border-radius: 1rem;
  background: #19162c;
  box-shadow: 0 4px 0 #100e2499, 0 12px 30px #0f091d40;
}
.window .window-bar {
  min-height: 2.35rem;
  padding-inline: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--window-accent) 45%, #343049);
  background: linear-gradient(105deg, color-mix(in srgb, var(--window-accent) 78%, #c6afed), color-mix(in srgb, var(--window-accent) 60%, #ae9dd6));
  color: #171329;
}
.about-details > .detail.window { padding: 0; border-radius: 1rem; --window-accent: var(--detail-accent); }
.about-details > .detail.window::before { content: none; }
.detail.window .about-timeline { margin: clamp(1.15rem, 2.5vw, 2.4rem); }
.detail.window .about-heading { min-width: 0; color: inherit; padding: 0; border: 0; font-size: clamp(1.3rem, 2.1vw, 1.9rem); }
.detail.window .about-heading::before { content: none; }
.about .window { overflow: visible; }
.about .window-bar {
  --sticker-size: clamp(4rem, 6.9vw, 6rem);
  position: relative;
  min-height: 3.2rem;
  padding-inline-end: calc(var(--sticker-size) + .65rem);
  border-radius: .95rem .95rem 0 0;
}
.profile-window .about-story { border-radius: 0 0 .95rem .95rem; }
.bar-doodle {
  position: absolute;
  z-index: 1;
  top: -.95rem;
  right: -.05rem;
  width: var(--sticker-size);
  height: auto;
  transform: rotate(6deg);
  filter: drop-shadow(2px 3px 0 var(--ink));
  pointer-events: none;
}
.about-practice .bar-doodle { width: calc(var(--sticker-size) * .82); right: .35rem; border-radius: .45rem; }
.about-details { row-gap: clamp(1.65rem, 2.5vw, 2.2rem); }
.project-window .window-bar::after, .contact-window .window-bar::after {
  flex: none; width: 1.7rem; height: .38rem; margin-inline-start: auto;
  transform: skewX(-32deg);
  background: repeating-linear-gradient(90deg, var(--window-accent) 0 22%, transparent 22% 36%);
  content: "";
}
.project-window .window-dots { flex: none; }
.project-window [data-card-description] { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1.2rem, 2.1vw, 1.85rem);
}
.project-card { --window-accent: var(--violet); min-width: 0; grid-column: span 4; }
.project-window {
  position: relative;
  --window-accent: inherit;
  display: flex;
  height: 100%;
  flex-direction: column;
  transition: box-shadow 180ms ease;
}
.project-window:is(:hover, :focus-within) { border-color: var(--window-accent); box-shadow: 0 4px 0 var(--window-accent), 0 12px 30px #100f295e; }
.card-art { display: grid; position: relative; height: clamp(11rem, 18cqw, 18rem); overflow: hidden; background: #292451; }
.card-art img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.card-art img.art-fit-contain { object-fit: contain; padding: 1rem; }
.project-card[data-layout="battle"] { grid-column: span 7; --window-accent: #ef90d4; }
.project-card[data-layout="floodline"] { grid-column: span 5; --window-accent: var(--mint); }
.project-card[data-layout="battle"] .card-art { background: #422039; }
.project-card[data-layout="battle"] .card-copy { background: linear-gradient(115deg, #422039, #201729); }
.project-card[data-layout="heartware"] { grid-column: span 5; --window-accent: var(--mint); }
.project-card:is([data-layout="battle"], [data-layout="floodline"]) .card-art { height: clamp(13rem, 30cqw, 28rem); }
.project-card[data-layout="heartware"] .project-window { overflow: visible; }
.project-card[data-layout="heartware"] .card-art { background: radial-gradient(ellipse at center, #533473, #25223a 78%); }
.project-card[data-layout="heartware"] .art-fit-contain { padding: 12% 8% 5%; }
.project-card[data-layout="heartware"] .window-bar { border-radius: 1rem 1rem 0 0; }
.project-card[data-layout="heartware"] .window-bar { padding-inline-end: clamp(4.15rem, 8.05vw, 6.9rem); }
.project-card[data-layout="heartware"] .window-bar::after { display: none; }
.project-sticker { position: absolute; z-index: 1; top: -.6rem; right: .25rem; width: clamp(3.45rem, 6.9vw, 6rem); height: auto; transform: rotate(6deg); filter: drop-shadow(2px 3px 0 var(--ink)); pointer-events: none; }
.project-card[data-layout="afterlight"] { grid-column: span 7; --window-accent: #aaa9ff; }
.project-card[data-layout="afterlight"] .card-copy {
  align-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: linear-gradient(135deg, #343056, #19162c 80%);
}
.project-card[data-layout="afterlight"] h3 { font-size: clamp(1.8rem, 4.2vw, 3.75rem); }
.project-card[data-layout="afterlight"].has-image .card-copy { padding: .55rem clamp(.85rem, 1.6vw, 1.4rem); }
.project-card[data-layout="afterlight"].has-image h3 { font-size: clamp(1.2rem, 1.85vw, 1.8rem); }
@media (any-hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-window { transform: translate(var(--project-x, 0px), var(--project-y, 0px)); transition: transform 160ms ease-out, box-shadow 180ms ease; }
}

.card-art[hidden] { display: none; }
.card-copy p { align-self: start; max-width: 52ch; padding-bottom: .6rem; color: var(--muted); line-height: 1.45; }
.card-copy { flex: 1; display: grid; align-items: center; padding: .55rem clamp(.85rem, 1.6vw, 1.4rem); }
.card-copy h3 { font: italic 400 clamp(1.2rem, 1.85vw, 1.8rem)/1.16 "Archivo Black Local", sans-serif; letter-spacing: -.04em; }
.card-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  width: 100%;
  min-height: 44px;
  padding: .35rem 0;
  border: 0;
  background: none;
  text-align: start;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.card-select::after { position: absolute; inset: 0; content: ""; }
.card-detail-arrow { flex: none; align-self: center; color: var(--window-accent); font: 700 1.45rem/1 "Segoe UI", sans-serif; }
.card-select:focus-visible { outline: none; }
.project-window:has(.card-select:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 4px; }

@media (hover: hover) {
  .card-select:hover { color: var(--mint); }
}

html:has(.project-dialog[open]) { overflow: hidden; }

.project-dialog {
  position: fixed;
  inset: 0;
  width: min(76rem, calc(100% - 2.5rem));
  height: fit-content;
  max-width: none;
  max-height: calc(100dvh - 2.5rem);
  margin: auto;
  padding: 0;
  color: var(--cream);
}
.project-dialog[open] { display: flex; flex-direction: column; }
.project-dialog::backdrop { background: #10091fe0; animation: project-backdrop 260ms ease-out; }
@keyframes project-backdrop { from { opacity: 0; } }

.project-dialog-bar {
  flex: none;
  min-height: 3.15rem;
  padding-block: .2rem;
  padding-inline-end: .4rem;
}
.project-close {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  margin-inline-start: auto;
  padding: 0;
  border: 1px solid #9283a7;
  border-radius: .45rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.project-close:hover { background: var(--cream); color: var(--ink); }
.project-close:focus-visible { outline-offset: -4px; }

.project-dialog-body {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-content: start;
  align-items: center;
  padding: clamp(1rem, 2.75vw, 2.3rem);
  gap: clamp(1.2rem, 3.3vw, 3rem);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.project-dialog-body:focus-visible { outline: 2px solid var(--mint); outline-offset: -3px; }
.project-dialog-art {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  height: clamp(13rem, 46dvh, 31rem);
  padding: clamp(.7rem, 1.5vw, 1.3rem);
  border: 1px solid #665476;
  border-radius: .35rem .95rem .35rem .35rem;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--window-accent) 21%, #30233c), #211c33 85%);
}
.project-dialog-art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.project-dialog-figure { min-width: 0; }
.project-dialog-figure figcaption { margin-top: .55rem; color: var(--muted); line-height: 1.4; }
.project-dialog-figure[hidden] + .project-dialog-copy { grid-column: 1 / -1; }
.project-dialog-body:has(.project-dialog-figure[hidden]) { max-width: 60rem; margin-inline: auto; }
.project-dialog-body:has(.has-poster) {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
}
.project-dialog-figure:has(.has-poster) { width: 100%; max-width: 26rem; justify-self: center; }
.project-dialog-art.has-poster {
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}
.project-dialog-art.has-poster img {
  position: static;
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: min(68dvh, 42rem);
  padding: 0;
  border-radius: .3rem;
  object-fit: contain;
}
.project-dialog-body:has(.has-poster) .project-dialog-copy { align-self: start; padding-top: .25rem; }
.project-dialog-body:has(.has-poster) .project-dialog-copy h3 { font-size: clamp(1.65rem, 3vw, 2.85rem); }
.project-dialog-body:has(.has-poster) .project-dialog-copy p { font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.55; }
.project-dialog-body:has(.has-poster) .project-facts { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.project-dialog-body:has(.has-poster) .project-facts > div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: baseline; gap: .5rem; padding: .45rem .75rem; }
.project-dialog-body:has(.has-poster) .project-facts dd { margin: 0; font-size: .95rem; }
.project-dialog-art.has-extra-art {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: .5rem;
  padding: clamp(1rem, 3vw, 2rem);
}
.project-dialog-copy { min-width: 0; overflow-wrap: anywhere; }
.project-dialog-copy h3 { font: italic 400 clamp(1.7rem, 3.5vw, 3.25rem)/1.06 "Archivo Black Local", sans-serif; letter-spacing: -.05em; }
.project-dialog-copy p { max-width: 54ch; margin-top: .85rem; color: var(--cream); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; }
.project-notes h4, .project-detail-gallery h4 { margin: 0; color: #83eff0; font: italic 400 clamp(1.1rem, 1.6vw, 1.45rem)/1.25 "Archivo Black Local", sans-serif; }
.project-notes { grid-column: 1 / -1; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.project-notes section { border-left: 2px solid var(--window-accent); padding-left: 1rem; min-width: 0; overflow-wrap: anywhere; }
.project-notes p { margin-top: .65rem; line-height: 1.6; white-space: pre-line; }
.project-notes section:has([data-detail-availability]) { grid-column: 1 / -1; }
.project-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; list-style: none; }
.work-link { display: inline-block; padding-block: .4rem; color: var(--mint); text-decoration: underline; text-underline-offset: .22em; }
.work-link:hover { color: #c4ffff; }
.project-detail-gallery { grid-column: 1 / -1; border-top: 1px solid #69567c; padding-top: 1.25rem; }
.project-detail-gallery[hidden] { display: none; }
.project-detail-gallery h4 { margin: 0 0 1rem; }
.project-detail-gallery-grid { display: flex; flex-wrap: wrap; gap: 1.35rem 1rem; }
.project-detail-gallery-grid figure { flex: 1 1 max(28%, 15rem); min-width: 0; }
.project-detail-gallery-grid figure:nth-child(-n+2) { flex-basis: max(43%, 16rem); }
.project-detail-gallery-grid img { width: 100%; height: auto; aspect-ratio: auto 16 / 9; border: 1px solid #69567c; border-radius: .65rem; }
.project-detail-gallery-grid figcaption { margin-top: .45rem; padding-inline-start: .6rem; border-inline-start: 2px solid var(--window-accent); color: var(--cream); font-size: .95rem; }
#detalle-proyecto[data-project="heartware"] .project-detail-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#detalle-proyecto[data-project="heartware"] .project-detail-gallery-grid img { aspect-ratio: 1; object-fit: contain; background: #29223b; }
.project-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: .75rem;
  margin: 1.25rem 0 0;
}
.project-facts[hidden] { display: none; }
.project-facts > div { border-left: 2px solid var(--window-accent); padding: .5rem .8rem; background: #342a46; }
.project-facts dt { color: #d6cae7; font-size: .85rem; }
.project-facts dd { margin: .2rem 0 0; color: var(--cream); font-weight: 650; line-height: 1.4; }

.project-collections { grid-column: 1 / -1; display: grid; gap: 2rem; min-width: 0; }
.project-collections[hidden] { display: none; }
.project-collection { border-top: 1px solid #69567c; padding-top: 1.25rem; min-width: 0; }
.project-collection h4 { margin: 0 0 1rem; color: #83eff0; font: italic 400 clamp(1.1rem, 1.6vw, 1.45rem)/1.25 "Archivo Black Local", sans-serif; }
.collection-credit { margin: -.35rem 0 1rem; color: var(--muted); font-size: .95rem; }
.project-collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.project-collection-grid figure { min-width: 0; }
.project-collection-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: .75rem; border: 1px solid #69567c; border-radius: .65rem; background: #2d233e; }
.project-collection-grid img.collection-image-light { background: #fff; }
.project-collection-grid figcaption { margin-top: .5rem; color: var(--cream); font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.project-collection[data-kind="awards"] .project-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 640px) {
  .project-dialog { width: calc(100% - 1.1rem); max-height: calc(100dvh - 1.1rem); }
  .project-dialog-body, .project-dialog-body:has(.has-poster) { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .project-dialog-copy { grid-row: 1; }
  .project-dialog-art { height: clamp(11rem, 54vw, 19rem); }
  .project-dialog-art.has-poster { height: auto; }
  .project-dialog-art.has-poster img { max-height: min(62dvh, 32rem); }
  .project-detail-gallery-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
  #detalle-proyecto[data-project="heartware"] .project-detail-gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .project-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-collection[data-kind="awards"] .project-collection-grid { grid-template-columns: minmax(0, 1fr); }
}

.contact { padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.contact-window { --window-accent: #a6a0ff; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  background: radial-gradient(ellipse at 89% 70%, #45346980, transparent 48%), linear-gradient(115deg, #201b39, #17172e 72%);
}
.contact-copy { min-width: 0; align-self: center; padding: clamp(1.4rem, 4.6vw, 4rem); }
.contact-copy h3 {
  max-width: 15ch;
  color: var(--cream);
  font: italic 400 clamp(2rem, 4.1vw, 4rem)/1.05 "Archivo Black Local", sans-serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.25rem;
  margin-top: 1.5rem;
  padding: .65rem 1.25rem;
  border: 1px solid #b7ffff;
  border-radius: .35rem .85rem .35rem .35rem;
  background: var(--mint);
  color: var(--ink);
  box-shadow: 3px 3px 0 #8664c3;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 750;
  text-decoration: none;
}
.contact-email svg { flex: none; width: 1.35em; height: 1.35em; }
.contact-email:is(:hover, :focus-visible) { background: #a6f7fa; }
.contact-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 17rem;
  margin: clamp(.9rem, 2vw, 1.7rem);
  isolation: isolate;
  pointer-events: none;
}
.contact-art::before {
  position: absolute;
  inset: 4% 7%;
  z-index: -1;
  transform: skewX(-11deg);
  border: 1px solid #a29bea80;
  border-radius: .3rem;
  background:
    linear-gradient(145deg, transparent 47%, #b98ffe2e 47.3%, #7461ed18 63%, transparent 63.2%),
    radial-gradient(ellipse at 72% 19%, #51448a, #2b2550 65%, #1e213c);
  content: "";
}
.contact-art::after {
  position: absolute;
  top: 5%; left: 15%;
  width: 2.7rem; height: .45rem;
  transform: skewX(-34deg);
  background: repeating-linear-gradient(90deg, #fff078 0 23%, transparent 23% 36%);
  content: "";
}
.mail-sticker {
  position: relative;
  width: min(53%, 18rem);
  aspect-ratio: 1.6;
  overflow: hidden;
  transform: rotate(-10deg);
  border: 2px solid #201a3c;
  border-radius: .45rem;
  outline: 3px solid var(--cream);
  box-shadow: 5px 7px 0 var(--mint), 8px 11px 0 #15132e;
  background: conic-gradient(from .17turn at 50% 57%, #9a83e7 0 18%, #bb9df3 18% 47%, #8170cd 47% 82%, #9a83e7 82%);
}
.mail-sticker::before, .mail-sticker::after {
  position: absolute;
  inset: 0;
  content: "";
}
.mail-sticker::before { clip-path: polygon(0 0, 100% 0, 50% 65%); background: #2e2354; }
.mail-sticker::after { clip-path: polygon(2% 0, 98% 0, 50% 60%); background: linear-gradient(120deg, #d9fbff, #c8bdff 63%, #f3c6f4); }
.mail-cursor {
  position: absolute;
  bottom: 17%; right: 19%;
  width: clamp(1.55rem, 8%, 3.4rem);
  transform: rotate(-34deg);
  filter: drop-shadow(2px 3px 1px #17132888);
}
.mail-trail {
  position: absolute;
  width: 82%; height: 28%;
  transform: rotate(-23deg);
  border: 1px solid #afa2ff;
  border-inline: 2px solid #7deef0;
  border-radius: 50%;
  box-shadow: 0 0 .65rem #9385ff45;
}
.mail-spark {
  position: absolute;
  top: 17%; right: 16%;
  color: #ffb1e6;
  font: clamp(1.75rem, 4vw, 3.5rem)/1 Georgia, serif;
  text-shadow: 2px 2px var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .mail-sticker, .mail-cursor { transition: transform 200ms ease-out; }
  .contact-layout:has(.contact-email:is(:hover, :focus-visible)) .mail-sticker { transform: translateY(-4px) rotate(-7deg); }
  .contact-layout:has(.contact-email:is(:hover, :focus-visible)) .mail-cursor { transform: translate(-3px, -3px) rotate(-34deg); }
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin-top: 1.55rem;
  padding-top: .65rem;
  border-top: 1px solid #57506f;
  list-style: none;
}
.socials a {
  font-size: clamp(1.1rem, 1.65vw, 1.35rem);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .42rem;
  color: var(--cream);
  font-weight: 650;
  text-decoration: none;
}
.socials svg { flex: none; width: 1.3em; height: 1.3em; color: #79f3f4; }
.socials a:is(:hover, :focus-visible) { color: #9cf4f4; text-decoration: underline; }
@media (max-width: 46rem) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-copy { padding-bottom: .75rem; }
  .contact-art { width: min(100% - 2.5rem, 28rem); min-height: 0; aspect-ratio: 2 / 1; margin: .5rem auto 1.25rem; }
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem 2rem;
  padding-block: 1.4rem;
  border-top: 1px solid #633c85;
}
.footer-branding { min-width: 0; }
.footer-copyright { margin-top: .35rem; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.back-to-top {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: .3rem .75rem .3rem .3rem;
  background: #211b35;
  color: var(--cream);
  font-weight: 750;
  text-decoration: none;
}
.back-to-top svg { flex: none; width: 1.2rem; height: 1.2rem; color: var(--mint); }
.back-to-top:is(:hover, :focus-visible) { border-color: var(--mint); background: #30264e; }
@media (max-width: 560px) {
  .site-footer { flex-direction: column; align-items: stretch; }
  .back-to-top { justify-content: space-between; }
}

@media (max-width: 900px) {
  .shell { width: calc(100% - 4rem); }
  .hero-layout { gap: 1.75rem; }
  .hero-title { font-size: clamp(4.35rem, 10vw, 6.2rem); }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 2.5rem); }
  .hero { min-height: auto; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .hero-title { font-size: clamp(3.75rem, 13.5vw, 6.3rem); }
  .hero-title span { display: inline; }
  .specialty { margin-top: 1rem; }
  .sparkle { font-size: 4rem; }
  .orbit { width: 5rem; height: 1.55rem; }
}

@media (max-width: 50rem) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card[data-layout] { grid-column: span 1; }
  .project-card[data-layout="battle"] .card-art { height: auto; aspect-ratio: 16 / 9; }
  .project-card[data-layout] .card-art { height: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 900px) {
  :root { --header-height: 96px; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 0; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; margin-inline-start: 0; }
  .language-switch { justify-self: end; }
  .header-inner .wordmark { justify-self: start; padding-inline: .35rem; }
  nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: .1rem; font-size: clamp(.75rem, 2vw, .93rem); }
  nav a { justify-content: center; padding-inline: .1rem; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  nav { gap: 0; font-size: .84rem; }
  nav a { padding-inline: .15rem; }
}

@media (max-width: 340px) {
  .header-inner { column-gap: .25rem; }
  .header-inner .wordmark { font-size: .95rem; }
  .language-switch button { min-width: 36px; }
}

@media (max-width: 250px) {
  .header-inner { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .header-inner .language-switch { grid-row: 2; justify-self: start; }
  .header-inner nav { grid-row: 3; }
}

@media (max-width: 900px) {
  .site-header.has-mobile-menu { --header-height: 68px; }
  .has-mobile-menu .header-inner {
    width: calc(100% - 1.5rem);
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: .4rem;
    padding-block: .35rem;
  }
  .has-mobile-menu .header-inner .wordmark {
    grid-column: 1; grid-row: 1;
    padding: 0;
    font-size: clamp(.95rem, 3.8vw, 1.22rem);
  }
  .has-mobile-menu .wordmark::before { width: 1.15em; margin-right: .4em; }
  .has-mobile-menu .header-inner .language-switch { grid-column: 2; grid-row: 1; }
  .site-header.has-mobile-menu .menu-toggle {
    display: grid;
    place-items: center;
    grid-column: 3; grid-row: 1;
    width: 44px; min-height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: .2rem;
    background: #1c1530;
    color: var(--mint);
    cursor: pointer;
  }
  .menu-icon { position: relative; display: block; width: 22px; height: 18px; transform: skewX(-12deg); }
  .menu-icon > span { position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
  .menu-icon > span:nth-child(1) { top: 0; }
  .menu-icon > span:nth-child(2) { top: 8px; }
  .menu-icon > span:nth-child(3) { top: 16px; }
  .is-menu-open .menu-icon { transform: none; }
  .is-menu-open .menu-icon > span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .is-menu-open .menu-icon > span:nth-child(2) { opacity: 0; }
  .is-menu-open .menu-icon > span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .has-mobile-menu .menu-toggle:is(:hover, :focus-visible), .is-menu-open .menu-toggle { color: #fff078; border-color: #fff078; }
  .has-mobile-menu .header-inner nav {
    display: none;
    position: absolute;
    top: 100%; left: .75rem; right: .75rem;
    width: auto;
    margin: .35rem 0 0;
    padding: .65rem;
    grid-template-columns: minmax(0, 1fr);
    gap: .25rem;
    max-height: calc(100dvh - var(--actual-header-height, 68px) - 1rem);
    overflow-y: auto;
    border: 1px solid #8d88b8;
    border-radius: .3rem .85rem .3rem .3rem;
    background: linear-gradient(120deg, #342553, #19162e);
    box-shadow: 0 8px 20px #100f2970;
  }
  .has-mobile-menu.is-menu-open .header-inner nav { display: grid; }
  .has-mobile-menu nav a { justify-content: flex-start; padding: .65rem 1rem; font-size: 1rem; line-height: 1.35; }
  .has-mobile-menu .header-inner nav a[aria-current="location"] { background: #ffffff09; }
  .has-mobile-menu .header-inner nav a[aria-current="location"]::after { inset: 20% auto 20% 0; width: 3px; height: auto; }
}

@media (max-width: 250px) {
  .has-mobile-menu .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .has-mobile-menu .header-inner .wordmark { grid-column: 1 / -1; }
  .has-mobile-menu .header-inner .language-switch { grid-column: 1; grid-row: 2; justify-self: start; }
  .site-header.has-mobile-menu .menu-toggle { grid-column: 2; grid-row: 2; }
}

@media (max-width: 560px) {
  .about-story { grid-template-columns: minmax(0, 1fr); }
  .about-character { max-width: 13rem; }
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .project-card[data-layout="heartware"] .card-art, .card-art { height: auto; aspect-ratio: 16 / 9; }
  .project-card[data-layout="heartware"] .art-fit-contain { padding: 5% 10%; }
}

@media (max-width: 460px) {
  .hero { padding-top: 2.4rem; }
  .hero-title { font-size: clamp(2.25rem, 12.4vw, 3.65rem); text-shadow: -2px 3px var(--ink), -4px 6px var(--pink), -6px 8px var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-background::after { display: none; }
  .action, .project-window { transition: none; }
  .project-dialog::backdrop { animation: none; }
  .action:hover, .action:active { translate: none; }
}
