:root {
  --gold: #FDB927;
  --purple: #552583;
  --ink: #120D02;
  --night: #0F0B14;
  --cut: 22px;
  --cut-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg, var(--night));
  color: var(--fg, #F5F1FA);
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.icon {
  flex: none;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  --bw: 1px;
  --b-line: #2E2340;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.pill:hover {
  --b-fill: #241A30;
  --b-line: var(--gold);
}

.pill-gamedev:hover {
  --b-line: #C9A6F2;
}

.pill-lg {
  min-height: 48px;
  padding: 0 18px;
  --b-fill: #1B1424;
  font-size: 16px;
}

.pill,
.back,
.tab,
.lang,
.ext,
.footer-link,
.door-arrow {
  position: relative;
  isolation: isolate;
}

.pill::before,
.pill::after,
.back::before,
.back::after,
.tab::before,
.tab::after,
.lang::before,
.lang::after,
.ext::before,
.ext::after,
.footer-link::before,
.footer-link::after,
.door-arrow::before,
.door-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  --c: var(--cut-sm);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: background .2s;
}

.pill::before,
.back::before,
.tab::before,
.lang::before,
.ext::before,
.footer-link::before,
.door-arrow::before {
  background: var(--b-line, transparent);
}

.pill::after,
.back::after,
.tab::after,
.lang::after,
.ext::after,
.footer-link::after,
.door-arrow::after {
  inset: var(--bw, 0px);
  --c: calc(var(--cut-sm) - var(--bw, 0px) * .414);
  background: var(--b-fill, transparent);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  --c: 14px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

.logo-tile img {
  width: 56%;
  height: 56%;
  object-fit: contain;
}

.home .site-url {
  font-size: 14px;
  letter-spacing: .04em;
  color: #B8AEC6;
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 72px;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.avatar {
  width: 152px;
  height: auto;
}

.intro-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro h1 {
  font-size: clamp(44px, 8vw, 100px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.03em;
}

.tagline {
  font-size: 24px;
  color: #B8AEC6;
}

.socials {
  justify-content: center;
}

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 24px;
}

.door {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease;
}

.door:hover {
  transform: translateY(-6px);
}

.door-it {
  --card-bg: var(--gold);
  color: var(--ink);
}

.door-it:hover {
  filter: drop-shadow(0 24px 30px rgba(253, 185, 39, .3));
}

.door-gamedev {
  --card-bg: var(--purple);
  color: #FFFFFF;
}

.door-gamedev:hover {
  filter: drop-shadow(0 24px 30px rgba(120, 64, 180, .45));
}

.door-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.door-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.door-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transition: transform .2s ease;
}

.door:hover .door-arrow {
  transform: translateX(4px);
}

.door-it .door-arrow {
  --b-fill: var(--ink);
  color: var(--gold);
}

.door-gamedev .door-arrow {
  --b-fill: #FFFFFF;
  color: var(--purple);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex-grow: 1;
}

.shot-grid img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  --c: var(--cut);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

.theme-it {
  --bg: #FAF8F2;
  --exp-shadow: rgba(253, 185, 39, .7);
  --fg: var(--ink);
  --band: var(--gold);
  --band-fg: var(--ink);
  --band-soft: #3A2C05;
  --surface: #FFFFFF;
  --border: #E8E1CF;
  --muted: #5C4A1E;
  --text-soft: #2E2410;
  --accent: #7A5200;
  --chip-bg: #F3EEDF;
  --chip-fg: #3A2C05;
  --period-bg: var(--gold);
  --period-fg: var(--ink);
  --media-bg: var(--gold);
  --media-fg: var(--ink);
  --marker: var(--gold);
  --marker-ring: var(--ink);
  --rule: var(--ink);
  --tab-current-bg: var(--ink);
  --tab-current-fg: var(--gold);
  --tab-hover: rgba(18, 13, 2, .1);
  --link-border: #E0D6BC;
  --link-hover-bg: var(--ink);
  --link-hover-fg: var(--gold);
  --footer-bg: var(--ink);
  --footer-fg: #FAF8F2;
  --footer-accent: var(--gold);
  --footer-border: #3D3220;
  --footer-hover-fill: var(--gold);
  --footer-hover-fg: var(--ink);
  --switch-bg: var(--purple);
  --switch-fg: #FFFFFF;
  --lang-bg: var(--gold);
  --lang-fg: var(--ink);
  --lang-hover-bg: var(--ink);
  --lang-hover-fg: #FFFFFF;
}

.theme-gamedev {
  --bg: var(--night);
  --exp-shadow: rgba(120, 64, 180, .45);
  --fg: #F5F1FA;
  --band: var(--purple);
  --band-fg: #FFFFFF;
  --band-soft: #E7DAF5;
  --surface: #1B1424;
  --border: #2E2340;
  --muted: #B8AEC6;
  --text-soft: #DCD4E6;
  --accent: #C9A6F2;
  --chip-bg: #2A2036;
  --chip-fg: #E2DAEC;
  --period-bg: var(--purple);
  --period-fg: #FFFFFF;
  --media-bg: var(--purple);
  --media-fg: #FFFFFF;
  --marker: #9B6FD6;
  --marker-ring: transparent;
  --rule: var(--purple);
  --tab-current-bg: #FFFFFF;
  --tab-current-fg: var(--purple);
  --tab-hover: rgba(255, 255, 255, .12);
  --link-border: #3A2C4E;
  --link-hover-bg: var(--purple);
  --link-hover-fg: #FFFFFF;
  --footer-bg: var(--purple);
  --footer-fg: #FFFFFF;
  --footer-accent: #FFFFFF;
  --footer-border: rgba(255, 255, 255, .35);
  --footer-hover-fill: #FFFFFF;
  --footer-hover-fg: var(--ink);
  --switch-bg: var(--gold);
  --switch-fg: var(--ink);
  --lang-bg: var(--purple);
  --lang-fg: #FFFFFF;
  --lang-hover-bg: #FFFFFF;
  --lang-hover-fg: var(--purple);
}

.back,
.tab,
.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
}

.back {
  padding-left: 6px;
  font-size: 17px;
  font-weight: 700;
}

.back:hover {
  --b-fill: var(--tab-hover);
}

.tab {
  transition: color .2s;
}

a.tab:hover {
  --b-fill: var(--switch-bg);
  color: var(--switch-fg);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 500;
}

.tab.is-current {
  --b-fill: var(--tab-current-bg);
  color: var(--tab-current-fg);
  font-weight: 700;
}

.topbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.lang {
  --b-fill: var(--lang-bg);
  color: var(--lang-fg);
  font-size: 17px;
  font-weight: 500;
  transition: color .2s;
}

.lang:hover {
  --b-fill: var(--lang-hover-bg);
  color: var(--lang-hover-fg);
}

.flag {
  display: block;
  flex: none;
}

.band {
  background: var(--band);
  color: var(--band-fg);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 56px;
  padding-bottom: 64px;
  text-align: center;
}

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: max(28px, min(88px, calc((min(100vw, 1280px) - 48px) / (var(--len) * .5))));
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.03em;
}

.hero-intro {
  font-size: 19px;
  line-height: 1.55;
  color: var(--band-soft);
}

.door,
.skill,
.exp {
  position: relative;
  isolation: isolate;
}

.door::before,
.skill::before,
.skill::after,
.exp::before,
.exp::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  --c: var(--cut);
  background: var(--card-bg);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

.skill::before,
.exp::before {
  --card-bg: var(--border);
}

.skill::after,
.exp::after {
  inset: 1px;
  --c: calc(var(--cut) - .4px);
  --card-bg: var(--surface);
}

.exp {
  transition: filter .25s ease;
}

.exp:hover {
  filter: drop-shadow(0 0 24px var(--exp-shadow));
}

.exp:hover::before {
  --card-bg: var(--accent);
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  padding: 48px 0 56px;
}

.skill {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.skill-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.skill .details {
  gap: 6px;
  margin-top: 0;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 80px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rule);
}

.section-head h2 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exp {
  display: flex;
  flex-wrap: wrap;
  padding: 1px;
}

.exp-media {
  position: relative;
  flex: 1 1 0;
  min-width: min(100%, 240px);
  min-height: 260px;
  background: var(--media-bg);
  --c: calc(var(--cut) - .4px);
  clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c));
}

.exp-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .4s ease;
}

.exp-media.is-centered {
  display: flex;
  align-items: center;
}

.exp:hover .exp-media img {
  transform: scale(1.05);
}

.exp-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  color: var(--media-fg);
}

.exp-label {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
}

.exp-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exp-logos .logo-tile {
  width: 64px;
  height: 64px;
}

.exp-logos .logo-tile img {
  width: 38px;
  height: 38px;
}

.exp-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 3 1 0;
  min-width: min(100%, 300px);
  padding: 28px 32px 30px;
}

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.period {
  flex: none;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--period-bg);
  color: var(--period-fg);
  font-size: 13px;
  font-weight: 700;
}

.studio {
  font-size: 14px;
  color: var(--muted);
}

.exp h3 {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.role {
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
}

.details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  list-style: none;
}

.details li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
  color: var(--text-soft);
}

.details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--marker);
  box-shadow: 0 0 0 2px var(--marker-ring);
}

.exp-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.stack li {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 12px;
  font-weight: 500;
}

.exp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ext {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  --bw: 1px;
  --b-line: var(--link-border);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, filter .25s;
}

.ext .icon {
  width: 14px;
  height: 14px;
}

.exp:hover .ext {
  filter: drop-shadow(0 0 8px var(--exp-shadow));
}

.exp .ext:hover {
  --b-fill: var(--link-hover-bg);
  --b-line: var(--link-hover-bg);
  color: var(--link-hover-fg);
}

.edu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
}

.edu {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.edu h3 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
}

.edu p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  --bw: 1px;
  --b-line: var(--footer-border);
  transition: color .2s;
}

.footer-link:hover {
  --b-fill: var(--footer-hover-fill);
  --b-line: var(--footer-accent);
  color: var(--footer-hover-fg);
}

.footer-link .icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .door {
    padding: 22px;
  }

  .exp-body {
    padding: 22px;
  }

  .exp h3 {
    font-size: 24px;
  }

  .section-head h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
