@charset "UTF-8";

:root {
  --text:          #333333;
  --text-heading:  #5B7B93;
  --text-muted:    #666666;
  --link:          #5B7B93;
  --link-light:    #7FA3BE;
  --border:        #e0e0e0;
  --border-strong: #999999;
  --surface:       #dce6ee;
  --card-bg:       rgba(0,0,0,.04);
  --card-border:   rgba(0,0,0,.1); }

@-webkit-keyframes wave {
  0% {
    -webkit-filter: brightness(100%) hue-rotate(0deg);
            filter: brightness(100%) hue-rotate(0deg); }
  90% {
    -webkit-filter: brightness(100%) hue-rotate(0deg);
            filter: brightness(100%) hue-rotate(0deg);
    -webkit-animation-timing-function: ease-in-out;
            animation-timing-function: ease-in-out; }
  100% {
    -webkit-filter: brightness(150%) hue-rotate(180deg);
            filter: brightness(150%) hue-rotate(180deg); } }

@keyframes wave {
  0% {
    -webkit-filter: brightness(100%) hue-rotate(0deg);
            filter: brightness(100%) hue-rotate(0deg); }
  90% {
    -webkit-filter: brightness(100%) hue-rotate(0deg);
            filter: brightness(100%) hue-rotate(0deg);
    -webkit-animation-timing-function: ease-in-out;
            animation-timing-function: ease-in-out; }
  100% {
    -webkit-filter: brightness(150%) hue-rotate(180deg);
            filter: brightness(150%) hue-rotate(180deg); } }

@-webkit-keyframes hover {
  0% {
    -webkit-filter: brightness(100%) hue-rotate(0deg);
            filter: brightness(100%) hue-rotate(0deg); }
  50% {
    -webkit-filter: brightness(100%) hue-rotate(360deg);
            filter: brightness(100%) hue-rotate(360deg);
    -webkit-animation-timing-function: ease-in-out;
            animation-timing-function: ease-in-out; }
  100% {
    -webkit-filter: brightness(100%) hue-rotate(0deg);
            filter: brightness(100%) hue-rotate(0deg); } }

@keyframes hover {
  0% {
    -webkit-filter: brightness(100%) hue-rotate(0deg);
            filter: brightness(100%) hue-rotate(0deg); }
  50% {
    -webkit-filter: brightness(100%) hue-rotate(360deg);
            filter: brightness(100%) hue-rotate(360deg);
    -webkit-animation-timing-function: ease-in-out;
            animation-timing-function: ease-in-out; }
  100% {
    -webkit-filter: brightness(100%) hue-rotate(0deg);
            filter: brightness(100%) hue-rotate(0deg); } }

h1,
h2,
h3,
h4,
h5,
ul,
li {
  margin: 0;
  padding: 0;
  list-style: none; }

.hidden {
  display: none; }

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 18px;
  line-height: 1.45;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  margin: 0;
  word-wrap: break-word;
  color: var(--text);
  background: #F5F5F5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-caps: normal; }
  @media only screen and (max-width: 45em) {
    body {
      font-size: 18px; } }

a {
  text-decoration: none;
  color: var(--link); }
  @media (any-hover) {
    a:hover {
      text-decoration: underline;
      -webkit-animation: hover 3s alternate infinite;
      animation: hover 3s alternate infinite; } }

header {
  position: sticky;
  z-index: 1;
  top: 0;
  padding-right: 1.5em;
  border-bottom: solid 1px var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  background: rgba(245, 245, 245, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px); }
  @media only screen and (max-width: 45em) {
    header {
      padding-right: 1em; } }
  header nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    margin-left: 1.5em; }
    @media only screen and (max-width: 45em) {
      header nav {
        margin-left: 1em;
        font-size: clamp(12px, 3.5vw, 18px); }
      header nav a.contact {
        white-space: nowrap; } }
    header nav a {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
      margin-right: .75em;
      font-size: 1.125em;
      padding: 1em 0;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px; }
      @media only screen and (max-width: 45em) {
        header nav a {
          font-size: 1em;
          padding: 0.875em 0; } }
      header nav a:last-of-type {
        margin-right: 0; }
      header nav a.pdf-icon-link {
        display: none;
        font-size: 1em;
        color: var(--text-muted);
        border-bottom-color: transparent !important;
        margin-left: .15em; }
      header nav a.resume.selected + a.pdf-icon-link {
        display: flex; }
        header nav a.pdf-icon-link:hover {
          color: var(--link);
          text-decoration: none; }
      header nav a.contact {
        font-size: 1.5em;
        line-height: 1em;
        font-weight: 700; }
      header nav a.selected {
        text-decoration: none;
        color: var(--text);
        border-bottom-color: var(--text);
        font-weight: 700; }

section {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: reverse;
     -moz-box-orient: vertical;
     -moz-box-direction: reverse;
      -ms-flex-direction: column-reverse;
          flex-direction: column-reverse;
  line-height: 1.4em;
  margin-top: 1em;
  margin-right: 1.5em;
  margin-left: 1.5em; }
  @media only screen and (max-width: 45em) {
    section {
      margin-top: 1em;
      width: auto;
      margin-left: 1em;
      margin-right: 1em; } }

#resume {
  margin-top: .25em;
  width: 37.5em;
  max-width: 100%;
  padding-bottom: 4em; }
  #resume h5 a,
  #resume ul a,
  #resume p a {
    -webkit-animation: wave 30s alternate infinite;
    animation: wave 30s alternate infinite; }
    #resume h5 a:hover,
    #resume ul a:hover,
    #resume p a:hover {
      -webkit-animation: hover 3s alternate infinite;
      animation: hover 3s alternate infinite; }
  @media (any-hover) {
    #resume a:hover {
      -webkit-animation: none;
              animation: none; } }
  #resume h2 {
    font-size: 1.375em;
    font-weight: 600;
    line-height: 1.25;
    width: 100%;
    margin-top: 1.75em;
    margin-bottom: 0;
    padding-bottom: .25em;
    letter-spacing: 0;
    color: var(--text-heading);
    border-bottom: solid 1px var(--border-strong); }
    #resume h2:not(:has(a)) {
      color: var(--text); }
    @media only screen and (max-width: 45em) {
      #resume h2 {
        font-size: 1.125em; } }
    #resume > h2:first-of-type {
      margin-top: 0;
      margin-bottom: 0;
      border-bottom: none; }
      #resume > h2:first-of-type + p {
        margin-left: 0; }
        #resume > h2:first-of-type + p + p {
          margin-left: 0; }
          #resume > h2:first-of-type + p + p + p {
            margin-left: 0; }
  #resume h2 + h3 {
    margin-top: .5em; }
  #resume h3 {
    font-family: 'Work Sans', sans-serif;
    font-size: .875em;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .02em;
    margin-top: 2em;
    margin-bottom: .875em; }
    @media only screen and (max-width: 45em) {
      #resume h3 {
        font-size: .8em; } }
    #resume h3 em {
      font-size: .875em;
      font-weight: 400;
      white-space: nowrap; }
      #resume h3 em:before {
        padding-right: .4em;
        content: '·';
        white-space: normal; }
  #resume h3 + h3 {
    margin-top: -.5em; }
  #resume h3 + p {
    margin-top: 0; }
    #resume h3 + p a {
      color: var(--text); }
      #resume h3 + p a:hover {
        color: var(--link-light); }
  #resume h4 {
    font-family: 'Work Sans', sans-serif;
    font-size: .7em;
    margin-top: 2em;
    margin-bottom: -2em;
    margin-left: 2em;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted); }
    #resume h4:after {
      content: ':'; }
  #resume h5 {
    font-family: 'Work Sans', sans-serif;
    font-size: .875em;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: -.25em;
    margin-left: 2em; }
  #resume p {
    font-size: .875em;
    margin-top: .5em;
    margin-left: 2em; }
  #resume h3 + p,
  #resume h3 + p + p,
  #resume h3 + p + p + p,
  #resume h3 + p + p + p + p {
    margin-left: 0; }
  #resume h2 + p {
    margin-left: 0; }
  .resume-education {
    margin-top: 4em; }
  #resume .resume-overview {
    margin-top: 1em; }
  #resume .resume-overview h2 {
    margin-top: 0; }
  #resume .resume-overview p {
    margin-left: 0; }
  #resume ul {
    font-size: .875em;
    margin-left: 2em;
    margin-top: .75em; }
    @media only screen and (max-width: 45em) {
      #resume ul {
        margin-left: 1em; } }
  #resume li {
    line-height: 1.5em;
    padding-left: .75em;
    text-indent: -.75em;
    margin-top: .5em; }
    #resume li:before {
      content: '→ ';
      color: var(--text-muted); }
  #resume li > ul,
  #resume li > ul a {
    font-size: 1em;
    margin-top: 0; }
    #resume li > ul::before,
    #resume li > ul a::before {
      content: none; }
  #resume li > ul > li {
    padding-left: 1.125em;
    list-style: none; }
    #resume li > ul > li:before {
      content: none; }
  #resume li > em {
    margin-left: 0;
    margin-left: .25em; }
    #resume li > em:before {
      content: ' – ';
      text-decoration: none; }

#portfolio {
  display: grid;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  grid-gap: .33em;
  grid-template-columns: repeat(auto-fill, minmax(24%, 1fr));
  margin-top: .25em;
  -webkit-box-pack: space-evenly;
     -moz-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  margin-bottom: 1em; }
  @media (max-aspect-ratio: 70/100) {
    #portfolio {
      grid-template-columns: repeat(auto-fill, minmax(32%, 1fr)); } }
  @media (min-aspect-ratio: 110/100) {
    #portfolio {
      grid-template-columns: repeat(auto-fill, minmax(19%, 1fr)); } }
  @media (any-hover) {
    #portfolio a:hover:after {
      font-size: .66em;
      position: relative;
      float: left;
      margin-top: calc(-50% - 2em);
      margin-left: calc(50% - 1.5em);
      content: '';
      cursor: pointer;
      pointer-events: none;
      opacity: 1;
      border-width: 2em 0 2em 3.5em;
      border-style: solid;
      border-color: transparent transparent transparent white; } }
  #portfolio img {
    cursor: pointer;
    width: 100%;
    display: block;
    -webkit-transition: -webkit-filter .33s;
    transition: -webkit-filter .33s;
    transition: filter .33s;
    transition: filter .33s, -webkit-filter .33s;
    -webkit-filter: saturate(90%) brightness(90%) grayscale(10%);
            filter: saturate(90%) brightness(90%) grayscale(10%); }
    @media (any-hover) {
      #portfolio img:hover {
        -webkit-box-shadow: 0 0 0.25em 0.125em rgba(0, 0, 0, 0.2);
                box-shadow: 0 0 0.25em 0.125em rgba(0, 0, 0, 0.2);
        -webkit-filter: saturate(110%) brightness(110%) grayscale(0%);
                filter: saturate(110%) brightness(110%) grayscale(0%); } }

.portfolio-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3%; }

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3em .75em .6em;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s; }

.portfolio-overlay-title {
  color: #fff;
  font-size: .85em;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,.8); }

.portfolio-overlay-desc {
  color: rgba(255,255,255,.9);
  font-size: .72em;
  line-height: 1.35;
  margin-top: .3em;
  text-shadow: 0 1px 3px rgba(0,0,0,.8); }

@media (any-hover) {
  .portfolio-thumb:hover .portfolio-overlay {
    opacity: 1; } }

#contact {
  min-height: calc(100vh - 4em);
  margin-top: .25em;
  padding-bottom: 4em;
  box-sizing: border-box; }
  #contact h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: .4em;
    border-bottom: none; }
  #contact h3 {
    font-size: .75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-top: 3em;
    margin-bottom: 1em; }
  #contact p {
    font-size: .9em;
    margin-top: .4em;
    max-width: 30em;
    line-height: 1.7; }
  #contact a {
    -webkit-animation: wave 10s alternate infinite;
    animation: wave 10s alternate infinite; }
  #contact a:hover {
    -webkit-animation: hover 3s alternate infinite;
    animation: hover 3s alternate infinite; }

.contact-card {
  margin: 1.5em 0 2em; }

.contact-links {
  margin-top: .75em;
  display: flex;
  gap: 1.5em;
  font-size: .875em; }

#play-games {
  list-style: none;
  margin: .5em 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4em; }
  #play-games li::before {
    content: '→ ';
    color: var(--text-muted); }

@media only screen and (max-width: 45em) {
  #contact {
    padding-bottom: 3em; } }

.portfolio-item {
  display: block; }

.portfolio-stub-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border-radius: 3%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: .875em;
  color: var(--text-muted);
  text-align: center;
  padding: .5em;
  -webkit-box-sizing: border-box;
          box-sizing: border-box; }

#portfolio-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: .25em 0 .5em 0;
  margin-bottom: .25em;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none; }

#portfolio-filters::-webkit-scrollbar {
  display: none; }

#resume-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: .25em 0 .5em 0;
  margin-bottom: .25em;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none; }

#resume-filters::-webkit-scrollbar {
  display: none; }

.filter-btn {
  font-family: 'Work Sans', sans-serif;
  font-size: .875em;
  color: var(--text-muted);
  background: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  padding: .25em .75em;
  margin-right: .33em;
  margin-bottom: .33em;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color .15s, color .15s; }
  @media (any-hover) {
    .filter-btn:hover {
      border-color: var(--text-heading);
      color: var(--text); } }
  .filter-btn.selected {
    color: #fff;
    border-color: transparent;
    background: var(--text-heading); }
  .filter-btn:nth-child(1).selected {
    -webkit-animation: filter-hue-0 60s linear infinite;
    animation: filter-hue-0 60s linear infinite; }
  .filter-btn:nth-child(2).selected {
    -webkit-animation: filter-hue-120 60s linear infinite;
    animation: filter-hue-120 60s linear infinite; }
  .filter-btn:nth-child(3).selected {
    -webkit-animation: filter-hue-240 60s linear infinite;
    animation: filter-hue-240 60s linear infinite; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5,
header nav a {
  font-family: 'Lora', serif; }

/* ── Blob background ──────────────────────────────────────── */
.blobs-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  will-change: transform, filter; }

.blob-1 {
  width: 90vw;
  height: 90vw;
  top: -50vw;
  left: -40vw;
  background: radial-gradient(circle, rgba(255,60,110,1) 0%, rgba(255,140,50,0.8) 35%, transparent 45%);
  animation: blob1-move 15s ease-in-out infinite, blob-hue-0 28s linear infinite; }

.blob-2 {
  width: 80vw;
  height: 90vw;
  bottom: -45vw;
  right: -35vw;
  background: radial-gradient(circle, rgba(255,60,110,1) 0%, rgba(255,140,50,0.8) 35%, transparent 45%);
  animation: blob2-move 18s ease-in-out infinite, blob-hue-120 34s linear infinite; }

.blob-3 {
  width: 80vw;
  height: 80vw;
  top: 25vh;
  left: 5vw;
  background: radial-gradient(circle, rgba(255,60,110,1) 0%, rgba(255,140,50,0.8) 35%, transparent 45%);
  animation: blob3-move 14s ease-in-out infinite, blob-hue-240 24s linear infinite; }

/* Paper texture sits on top of blobs, soft-light blend lets it interact with blob colors */
.blob-texture {
  position: absolute;
  inset: 0;
  background-image: url('/images/seamless_paper_texture.png');
  background-repeat: repeat;
  opacity: 0;
  mix-blend-mode:screen; }

/* Four waypoints per blob — blobs converge around center at ~25%, diverge by ~75%,
   creating the merging/separating rhythm */
@keyframes blob1-move {
  0%   { transform: translate(0vw, 0vh); }
  25%  { transform: translate(42vw, 35vh); }
  50%  { transform: translate(55vw, 10vh); }
  75%  { transform: translate(30vw, -20vh); }
  100% { transform: translate(0vw, 0vh); } }

@keyframes blob2-move {
  0%   { transform: translate(0vw, 0vh); }
  25%  { transform: translate(-38vw, -30vh); }
  50%  { transform: translate(-50vw, -50vh); }
  75%  { transform: translate(-25vw, -15vh); }
  100% { transform: translate(0vw, 0vh); } }

@keyframes blob3-move {
  0%   { transform: translate(0vw, 0vh); }
  25%  { transform: translate(15vw, -28vh); }
  50%  { transform: translate(-20vw, -40vh); }
  75%  { transform: translate(8vw, 20vh); }
  100% { transform: translate(0vw, 0vh); } }

/* Smooth hue-rotate — 360° wraps seamlessly, blobs start 120° apart */
@keyframes blob-hue-0 {
  from { filter: blur(90px) hue-rotate(0deg); }
  to   { filter: blur(90px) hue-rotate(360deg); } }

@keyframes blob-hue-120 {
  from { filter: blur(90px) hue-rotate(120deg); }
  to   { filter: blur(90px) hue-rotate(480deg); } }

@keyframes blob-hue-240 {
  from { filter: blur(90px) hue-rotate(240deg); }
  to   { filter: blur(90px) hue-rotate(600deg); } }

/* Filter button triadic hue rotation — linear keeps the 120° gap constant */
@keyframes filter-hue-0 {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); } }

@keyframes filter-hue-120 {
  from { filter: hue-rotate(120deg); }
  to   { filter: hue-rotate(480deg); } }

@keyframes filter-hue-240 {
  from { filter: hue-rotate(240deg); }
  to   { filter: hue-rotate(600deg); } }

/* ── Dark mode ────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --text:          #E8E8E8;
    --text-heading:  #DB7093;
    --text-muted:    #A3A3A3;
    --link:          #7FA3BE;
    --link-light:    #9bc5ec;
    --border:        rgba(255,255,255,.14);
    --border-strong: rgba(255,255,255,.3);
    --surface:       rgba(255,255,255,.08);
    --card-bg:       rgba(255,255,255,.06);
    --card-border:   rgba(255,255,255,.1); }

  body {
    background: #1E2A3A; }

  header {
    background: rgba(30, 42, 58, 0.5); }

  .blob {
    mix-blend-mode: color-burn;
    opacity: 0.05; }
  .blob-texture {
    mix-blend-mode: multiply;
    opacity: 0; }

  .filter-btn.selected {
    color: #fff; } }
